Class DBCP2ConnectionPoolFactory.DBCPConnectionPool
- java.lang.Object
-
- org.datanucleus.store.rdbms.connectionpool.DBCP2ConnectionPoolFactory.DBCPConnectionPool
-
- All Implemented Interfaces:
ConnectionPool
- Enclosing class:
- DBCP2ConnectionPoolFactory
public class DBCP2ConnectionPoolFactory.DBCPConnectionPool extends java.lang.Object implements ConnectionPool
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.commons.dbcp2.PoolingDataSourcedataSource(package private) org.apache.commons.pool2.ObjectPoolpool
-
Constructor Summary
Constructors Constructor Description DBCPConnectionPool(org.apache.commons.dbcp2.PoolingDataSource ds, org.apache.commons.pool2.ObjectPool pool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Method to call when closing the StoreManager down, and consequently to close the pool.javax.sql.DataSourcegetDataSource()Accessor for the pooled DataSource.
-
-
-
Method Detail
-
close
public void close()
Description copied from interface:ConnectionPoolMethod to call when closing the StoreManager down, and consequently to close the pool.- Specified by:
closein interfaceConnectionPool
-
getDataSource
public javax.sql.DataSource getDataSource()
Description copied from interface:ConnectionPoolAccessor for the pooled DataSource.- Specified by:
getDataSourcein interfaceConnectionPool- Returns:
- The DataSource
-
-