Example usage for Java org.apache.commons.dbcp2 PoolableConnectionFactory fields, constructors, methods, implement or subclass
The text is from its open source code.
PoolableConnectionFactory(ConnectionFactory connFactory, ObjectName dataSourceJmxName) Create a new PoolableConnectionFactory . |
void | activateObject(PooledObject |
void | destroyObject(PooledObject |
ObjectPool | getPool() Returns the ObjectPool in which Connection s are pooled. |
PooledObject | makeObject() |
void | passivateObject(PooledObject |
void | setCacheState(boolean cacheState) |
void | setConnectionInitSql(Collection Sets the SQL statements I use to initialize newly created Connection s. |
void | setDefaultAutoCommit(Boolean defaultAutoCommit) Sets the default "auto commit" setting for borrowed Connection s |
void | setDefaultCatalog(String defaultCatalog) Sets the default "catalog" setting for borrowed Connection s |
void | setDefaultQueryTimeout(Integer defaultQueryTimeout) |
void | setDefaultReadOnly(Boolean defaultReadOnly) Sets the default "read only" setting for borrowed Connection s |
void | setDefaultTransactionIsolation(int defaultTransactionIsolation) Sets the default "Transaction Isolation" setting for borrowed Connection s |
void | setEnableAutoCommitOnReturn(boolean enableAutoCommitOnReturn) |
void | setMaxConnLifetimeMillis(long maxConnLifetimeMillis) Sets the maximum lifetime in milliseconds of a connection after which the connection will always fail activation, passivation and validation. |
void | setMaxOpenPrepatedStatements(int maxOpenPreparedStatements) |
void | setPool(ObjectPool Sets the ObjectPool in which to pool Connection s. |
void | setPoolStatements(boolean poolStatements) |
void | setRollbackOnReturn(boolean rollbackOnReturn) |
void | setValidationQuery(String validationQuery) Sets the query I use to #validateObject validate Connection s. |
void | setValidationQueryTimeout(int timeout) Sets the validation query timeout, the amount of time, in seconds, that connection validation will wait for a response from the database when executing a validation query. |
void | validateConnection(PoolableConnection conn) |