Java org.apache.commons.dbcp2 PoolableConnectionFactory fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.dbcp2 PoolableConnectionFactory fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.dbcp2 PoolableConnectionFactory.

The text is from its open source code.

Constructor

Method

voidactivateObject(PooledObject p)
voiddestroyObject(PooledObject p)
ObjectPoolgetPool()
Returns the ObjectPool in which Connection s are pooled.
PooledObjectmakeObject()
voidpassivateObject(PooledObject p)
voidsetCacheState(boolean cacheState)
voidsetConnectionInitSql(Collection connectionInitSqls)
Sets the SQL statements I use to initialize newly created Connection s.
voidsetDefaultAutoCommit(Boolean defaultAutoCommit)
Sets the default "auto commit" setting for borrowed Connection s
voidsetDefaultCatalog(String defaultCatalog)
Sets the default "catalog" setting for borrowed Connection s
voidsetDefaultQueryTimeout(Integer defaultQueryTimeout)
voidsetDefaultReadOnly(Boolean defaultReadOnly)
Sets the default "read only" setting for borrowed Connection s
voidsetDefaultTransactionIsolation(int defaultTransactionIsolation)
Sets the default "Transaction Isolation" setting for borrowed Connection s
voidsetEnableAutoCommitOnReturn(boolean enableAutoCommitOnReturn)
voidsetMaxConnLifetimeMillis(long maxConnLifetimeMillis)
Sets the maximum lifetime in milliseconds of a connection after which the connection will always fail activation, passivation and validation.
voidsetMaxOpenPrepatedStatements(int maxOpenPreparedStatements)
voidsetPool(ObjectPool pool)
Sets the ObjectPool in which to pool Connection s.
voidsetPoolStatements(boolean poolStatements)
voidsetRollbackOnReturn(boolean rollbackOnReturn)
voidsetValidationQuery(String validationQuery)
Sets the query I use to #validateObject validate Connection s.
voidsetValidationQueryTimeout(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.
voidvalidateConnection(PoolableConnection conn)