com.ds.fw.dbcon
Class FwConnPoolWrapper

java.lang.Object
  |
  +--com.ds.fw.dbcon.FwConnPoolWrapper

public class FwConnPoolWrapper
extends java.lang.Object


Constructor Summary
FwConnPoolWrapper()
          Constructor of the FwConnPoolRapper class
 
Method Summary
 java.sql.Connection getConnection()
          Returns a connection from the first connection pool with an index 0 The method performs innitialisation of the connection pool, if it is not already done.
 java.sql.Connection getConnection(int k)
          Returns a connection from the connection pool with an index k
 com.ds.fw.dbcon.FwConnPool getConnectionPool()
          Returns the Connection Pool with an index equal to 0
 com.ds.fw.dbcon.FwConnPool getConnectionPool(int k)
          Returns a Connection Pool with a certain index
 com.ds.fw.dbcon.FwConnPool getConnectionPool(java.lang.String k)
           
static com.ds.fw.co.databroker.FwCoDataBroker getDataBroker()
           
static com.ds.fw.dbcon.FwConnPoolWrapper getInstance()
           
 void KillAllConnPools()
          Kills all of the Connection Pools, releases all the resources
static void setDataBroker(com.ds.fw.co.databroker.FwCoDataBroker coDB)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FwConnPoolWrapper

public FwConnPoolWrapper()
Constructor of the FwConnPoolRapper class

Method Detail

getDataBroker

public static com.ds.fw.co.databroker.FwCoDataBroker getDataBroker()

setDataBroker

public static void setDataBroker(com.ds.fw.co.databroker.FwCoDataBroker coDB)

getInstance

public static com.ds.fw.dbcon.FwConnPoolWrapper getInstance()

getConnectionPool

public com.ds.fw.dbcon.FwConnPool getConnectionPool(int k)
Returns a Connection Pool with a certain index

Parameters:
k - the index of the connection pool.Starts from 0.
Returns:
a FwConnPool object corresponding to k

getConnectionPool

public com.ds.fw.dbcon.FwConnPool getConnectionPool(java.lang.String k)

getConnectionPool

public com.ds.fw.dbcon.FwConnPool getConnectionPool()
Returns the Connection Pool with an index equal to 0

Returns:
a FwConnPool object

getConnection

public java.sql.Connection getConnection(int k)
Returns a connection from the connection pool with an index k

Parameters:
k - the index of the Connection Pool in the conn pool Vector.
Returns:
a Connection object of the appropriate pool, defined by k

getConnection

public java.sql.Connection getConnection()
Returns a connection from the first connection pool with an index 0 The method performs innitialisation of the connection pool, if it is not already done.

Returns:
a Connection object.

KillAllConnPools

public void KillAllConnPools()
Kills all of the Connection Pools, releases all the resources