Class C3P0ConnectionPoolFactory.C3P0ConnectionPool
java.lang.Object
org.datanucleus.store.rdbms.connectionpool.C3P0ConnectionPoolFactory.C3P0ConnectionPool
- All Implemented Interfaces:
ConnectionPool
- Enclosing class:
C3P0ConnectionPoolFactory
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final com.mchange.v2.c3p0.PooledDataSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Method to call when closing the StoreManager down, and consequently to close the pool.Accessor for the pooled DataSource.
-
Field Details
-
dataSource
final com.mchange.v2.c3p0.PooledDataSource dataSource
-
-
Constructor Details
-
C3P0ConnectionPool
public C3P0ConnectionPool(com.mchange.v2.c3p0.PooledDataSource ds)
-
-
Method Details
-
close
public void close()Description copied from interface:ConnectionPool
Method to call when closing the StoreManager down, and consequently to close the pool.- Specified by:
close
in interfaceConnectionPool
-
getDataSource
Description copied from interface:ConnectionPool
Accessor for the pooled DataSource.- Specified by:
getDataSource
in interfaceConnectionPool
- Returns:
- The DataSource
-