|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.dbcp.PoolingDataSource
com.rhi.architecture.db.PoolingDataSource
Extends DBCP PoolingDataSource, providing a get method for the connection pool. This allows the DataSourceFactory to get the connection pool back & call close() on it to free all the connections.
Field Summary |
Fields inherited from class org.apache.commons.dbcp.PoolingDataSource |
_logWriter, _pool |
Constructor Summary | |
PoolingDataSource(org.apache.commons.pool.ObjectPool pool)
Constructor |
Method Summary | |
java.sql.Connection |
getConnection()
helper method |
org.apache.commons.pool.ObjectPool |
getPool()
Return the connection pool that this datasource fronts. |
Logger |
log()
log() helper method |
void |
logCurrentDetails()
log details about data source. |
Methods inherited from class org.apache.commons.dbcp.PoolingDataSource |
getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter, setPool |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PoolingDataSource(org.apache.commons.pool.ObjectPool pool)
pool
- Pool from which Connections will be
retrieved.Method Detail |
public org.apache.commons.pool.ObjectPool getPool()
public void logCurrentDetails()
public Logger log()
public java.sql.Connection getConnection() throws java.sql.SQLException
java.sql.SQLException
DataSource.getConnection()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |