Example usage for Java org.apache.commons.dbcp PoolableConnectionFactory fields, constructors, methods, implement or subclass
The text is from its open source code.
void | activateObject(Object obj) |
void | destroyObject(Object obj) |
ObjectPool | getPool() Returns the ObjectPool in which Connection s are pooled. |
int | hashCode() Returns a hash code value for the object. |
Object | makeObject() 创建一个PoolableConnection实例 |
void | passivateObject(Object obj) |
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 | 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 | 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(Connection conn) æ ¹æ?®æŸ¥è¯¢è¯å?¥ #_validationQuery ã€?查询超时 #_validationQueryTimeout 测试 Connection conn 是å?¦æ£å¸¸ |