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

Packages that use PStmtKey
Package
Description
org.apache.commons.dbcp2
Database Connection Pool API.
org.apache.commons.dbcp2.cpdsadapter
This package contains one public class which is a `ConnectionPoolDataSource` (CPDS) implementation that can be used to adapt older `Driver` based JDBC implementations.

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

  Methods in org.apache.commons.dbcp2 that return PStmtKey
  Modifier and Type
  Method
  Description
  `protected PStmtKey`
  PoolingConnection.`createKey(String sql)`
  Creates a PStmtKey for the given arguments.
  `protected PStmtKey`
  PoolingConnection.`createKey(String sql, int autoGeneratedKeys)`
  Creates a PStmtKey for the given arguments.
  `protected PStmtKey`
  PoolingConnection.`createKey(String sql, int[] columnIndexes)`
  Creates a PStmtKey for the given arguments.
  `protected PStmtKey`
  PoolingConnection.`createKey(String sql, int resultSetType, int resultSetConcurrency)`
  Creates a PStmtKey for the given arguments.
  `protected PStmtKey`
  PoolingConnection.`createKey(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)`
  Creates a PStmtKey for the given arguments.
  `protected PStmtKey`
  PoolingConnection.`createKey(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability, PoolingConnection.StatementType statementType)`
  Creates a PStmtKey for the given arguments.
  `protected PStmtKey`
  PoolingConnection.`createKey(String sql, int resultSetType, int resultSetConcurrency, PoolingConnection.StatementType statementType)`
  Creates a PStmtKey for the given arguments.
  `protected PStmtKey`
  PoolingConnection.`createKey(String sql, String[] columnNames)`
  Creates a PStmtKey for the given arguments.
  `protected PStmtKey`
  PoolingConnection.`createKey(String sql, PoolingConnection.StatementType statementType)`
  Creates a PStmtKey for the given arguments.
  Methods in org.apache.commons.dbcp2 that return types with arguments of type PStmtKey
  Modifier and Type
  Method
  Description
  `KeyedObjectPool<PStmtKey,DelegatingPreparedStatement>`
  PoolingConnection.`getStatementPool()`
  Gets the prepared statement pool.
  Methods in org.apache.commons.dbcp2 with parameters of type PStmtKey
  Modifier and Type
  Method
  Description
  `void`
  PoolingConnection.`activateObject(PStmtKey key, PooledObject<DelegatingPreparedStatement> pooledObject)`
  `KeyedPooledObjectFactory` method for activating pooled statements.
  `void`
  PoolingConnection.`destroyObject(PStmtKey key, PooledObject<DelegatingPreparedStatement> pooledObject)`
  `KeyedPooledObjectFactory` method for destroying PoolablePreparedStatements and PoolableCallableStatements.
  `PooledObject<DelegatingPreparedStatement>`
  PoolingConnection.`makeObject(PStmtKey key)`
  `KeyedPooledObjectFactory` method for creating `PoolablePreparedStatement`s or `PoolableCallableStatement`s.
  `void`
  PoolingConnection.`passivateObject(PStmtKey key, PooledObject<DelegatingPreparedStatement> pooledObject)`
  `KeyedPooledObjectFactory` method for passivating `PreparedStatement`s or `CallableStatement`s.
  `boolean`
  PoolingConnection.`validateObject(PStmtKey key, PooledObject<DelegatingPreparedStatement> pooledObject)`
  `KeyedPooledObjectFactory` method for validating pooled statements.
  Method parameters in org.apache.commons.dbcp2 with type arguments of type PStmtKey
  Modifier and Type
  Method
  Description
  `void`
  PoolingConnection.`setStatementPool(KeyedObjectPool<PStmtKey,DelegatingPreparedStatement> pool)`
  Sets the prepared statement pool.
  Constructors in org.apache.commons.dbcp2 with parameters of type PStmtKey
  Modifier
  Constructor
  Description
  ``
  `PoolableCallableStatement(CallableStatement callableStatement, PStmtKey key, KeyedObjectPool<PStmtKey,DelegatingPreparedStatement> pool, DelegatingConnection<Connection> connection)`
  Constructor.
  Constructor parameters in org.apache.commons.dbcp2 with type arguments of type PStmtKey
  Modifier
  Constructor
  Description
  ``
  `PoolableCallableStatement(CallableStatement callableStatement, PStmtKey key, KeyedObjectPool<PStmtKey,DelegatingPreparedStatement> pool, DelegatingConnection<Connection> connection)`
  Constructor.

- ## Uses of PStmtKey in org.apache.commons.dbcp2.cpdsadapter

  Subclasses of PStmtKey in org.apache.commons.dbcp2.cpdsadapter
  Modifier and Type
  Class
  Description
  `class`
  `PStmtKeyCPDS`
  Deprecated.
  Use `PStmtKey`.