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 Object implements ConnectionPool
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final org.apache.commons.dbcp2.PoolingDataSource
     
    (package private) final org.apache.commons.pool2.ObjectPool
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DBCPConnectionPool(org.apache.commons.dbcp2.PoolingDataSource ds, org.apache.commons.pool2.ObjectPool pool)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Method to call when closing the StoreManager down, and consequently to close the pool.
    Accessor for the pooled DataSource.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • dataSource

      final org.apache.commons.dbcp2.PoolingDataSource dataSource
    • pool

      final org.apache.commons.pool2.ObjectPool pool
  • Constructor Details

    • DBCPConnectionPool

      public DBCPConnectionPool(org.apache.commons.dbcp2.PoolingDataSource ds, org.apache.commons.pool2.ObjectPool pool)
  • 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