Class C3P0ConnectionPoolFactory.C3P0ConnectionPool

java.lang.Object
org.datanucleus.store.rdbms.connectionpool.C3P0ConnectionPoolFactory.C3P0ConnectionPool
All Implemented Interfaces:
ConnectionPool
Enclosing class:
C3P0ConnectionPoolFactory

public class C3P0ConnectionPoolFactory.C3P0ConnectionPool extends Object implements ConnectionPool
  • 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 interface ConnectionPool
    • getDataSource

      public DataSource getDataSource()
      Description copied from interface: ConnectionPool
      Accessor for the pooled DataSource.
      Specified by:
      getDataSource in interface ConnectionPool
      Returns:
      The DataSource