public class PoolableConnection extends DelegatingConnection
ObjectPool when
closed.| Constructor and Description |
|---|
PoolableConnection(java.sql.Connection conn,
org.apache.commons.pool.ObjectPool pool) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Returns me to my pool.
|
void |
reallyClose()
Actually close my underlying
Connection. |
abort, clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, equals, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDelegate, getHoldability, getInnermostDelegate, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, hashCode, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setDelegate, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, unwrappublic PoolableConnection(java.sql.Connection conn,
org.apache.commons.pool.ObjectPool pool)
conn - my underlying connectionpool - the pool to which I should return when closedpublic void close()
throws java.sql.SQLException
close in interface java.lang.AutoCloseableclose in interface java.sql.Connectionclose in class DelegatingConnectionjava.sql.SQLExceptionpublic void reallyClose()
throws java.sql.SQLException
Connection.java.sql.SQLExceptionCopyright © 2001-2003 Apache Software Foundation. Documenation generated May 14 2016.