# Uses of Class
org.apache.commons.dbcp2.PoolableConnection

Packages that use PoolableConnection
Package
Description
org.apache.commons.dbcp2
Database Connection Pool API.
org.apache.commons.dbcp2.managed
This package provides support for pooling of ManagedConnections.

- ## Uses of PoolableConnection in org.apache.commons.dbcp2

  Methods in org.apache.commons.dbcp2 that return types with arguments of type PoolableConnection
  Modifier and Type
  Method
  Description
  `protected GenericObjectPool<PoolableConnection>`
  BasicDataSource.`createObjectPool(PoolableConnectionFactory factory, GenericObjectPoolConfig<PoolableConnection> poolConfig, AbandonedConfig abandonedConfig)`
  Creates an object pool used to provide pooling support for `JDBC connections`.
  `GenericObjectPool<PoolableConnection>`
  BasicDataSource.`getConnectionPool()`
  Gets the underlying connection pool.
  `ObjectPool<PoolableConnection>`
  PoolableConnectionFactory.`getPool()`
  Returns the `ObjectPool` in which `Connection`s are pooled.
  `PooledObject<PoolableConnection>`
  PoolableConnectionFactory.`makeObject()`
  Methods in org.apache.commons.dbcp2 with parameters of type PoolableConnection
  Modifier and Type
  Method
  Description
  `void`
  PoolableConnectionFactory.`validateConnection(PoolableConnection conn)`
  Validates the given connection if it is open.
  Method parameters in org.apache.commons.dbcp2 with type arguments of type PoolableConnection
  Modifier and Type
  Method
  Description
  `void`
  PoolableConnectionFactory.`activateObject(PooledObject<PoolableConnection> p)`
  `protected GenericObjectPool<PoolableConnection>`
  BasicDataSource.`createObjectPool(PoolableConnectionFactory factory, GenericObjectPoolConfig<PoolableConnection> poolConfig, AbandonedConfig abandonedConfig)`
  Creates an object pool used to provide pooling support for `JDBC connections`.
  `void`
  PoolableConnectionFactory.`destroyObject(PooledObject<PoolableConnection> p)`
  `void`
  PoolableConnectionFactory.`destroyObject(PooledObject<PoolableConnection> p, DestroyMode mode)`
  `void`
  PoolableConnectionFactory.`passivateObject(PooledObject<PoolableConnection> p)`
  `void`
  PoolableConnectionFactory.`setPool(ObjectPool<PoolableConnection> pool)`
  Sets the `ObjectPool` in which to pool `Connection`s.
  `boolean`
  PoolableConnectionFactory.`validateObject(PooledObject<PoolableConnection> p)`
  Constructor parameters in org.apache.commons.dbcp2 with type arguments of type PoolableConnection
  Modifier
  Constructor
  Description
  ``
  `PoolableConnection(Connection conn, ObjectPool<PoolableConnection> pool, ObjectName jmxName)`
  ``
  `PoolableConnection(Connection conn, ObjectPool<PoolableConnection> pool, ObjectName jmxObjectName, Collection<String> disconnectSqlCodes, boolean fastFailValidation)`

- ## Uses of PoolableConnection in org.apache.commons.dbcp2.managed

  Subclasses of PoolableConnection in org.apache.commons.dbcp2.managed
  Modifier and Type
  Class
  Description
  `class`
  `PoolableManagedConnection`
  PoolableConnection that unregisters from TransactionRegistry on Connection real destroy.
  Methods in org.apache.commons.dbcp2.managed that return types with arguments of type PoolableConnection
  Modifier and Type
  Method
  Description
  `PooledObject<PoolableConnection>`
  PoolableManagedConnectionFactory.`makeObject()`
  Uses the configured XAConnectionFactory to create a `PoolableManagedConnection`.
  Constructor parameters in org.apache.commons.dbcp2.managed with type arguments of type PoolableConnection
  Modifier
  Constructor
  Description
  ``
  `PoolableManagedConnection(TransactionRegistry transactionRegistry, Connection conn, ObjectPool<PoolableConnection> pool)`
  Create a PoolableManagedConnection.
  ``
  `PoolableManagedConnection(TransactionRegistry transactionRegistry, Connection conn, ObjectPool<PoolableConnection> pool, Collection<String> disconnectSqlCodes, boolean fastFailValidation)`
  Create a PoolableManagedConnection.