| java.lang.Object org.openharmonise.commons.dsi.DBConnectionPooler
DBConnectionPooler | public class DBConnectionPooler (Code) | | A singleton class which provides access to database connection pools. A single
static method provides access to each instance, each instance then provides access to an
individual pool for connections to any one database.
author: Michael Bell version: $Revision: 1.1 $ |
freeConnection | public void freeConnection(Connection conn)(Code) | | Returns the connection to the pool.
Parameters: conn - the connection to be returned to the pool |
getInstance | public static synchronized DBConnectionPooler getInstance(String driver, String dsn, String usr, String pwd) throws DataStoreException(Code) | | Returns the instance of the pooler that corresponds to the given
database parameters.
Parameters: driver - the JDBC driver class name Parameters: dsn - the database URI Parameters: usr - the database user name Parameters: pwd - the database user password the instance of the pooler that corresponds to the givendatabase parameters throws: DataStoreException - if an error occurs creating the connection pool |
getNumConnections | public int getNumConnections()(Code) | | Returns the number of connection in the pool.
the number of connection in the pool |
|
|