public class PoolableConnection extends DelegatingConnection
ObjectPool when
 closed.| Modifier and Type | Field and Description | 
|---|---|
| protected ObjectPool<PoolableConnection> | _poolThe pool to which I should return. | 
_closed, _connTRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Constructor and Description | 
|---|
| PoolableConnection(Connection conn,
                  ObjectPool<PoolableConnection> pool) | 
| PoolableConnection(Connection conn,
                  ObjectPool<PoolableConnection> pool,
                  AbandonedConfig config) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Returns me to my pool. | 
| void | reallyClose()Actually close my underlying  Connection. | 
abort, activate, checkOpen, clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, equals, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDelegate, getDelegateInternal, getHoldability, getInnermostDelegate, getInnermostDelegateInternal, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, handleException, hashCode, innermostDelegateEquals, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, passivate, 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, toString, unwrapaddTrace, clearTrace, getConfig, getLastUsed, getTrace, printStackTrace, removeTrace, setLastUsed, setLastUsed, setStackTraceprotected ObjectPool<PoolableConnection> _pool
public PoolableConnection(Connection conn, ObjectPool<PoolableConnection> pool)
conn - my underlying connectionpool - the pool to which I should return when closedpublic PoolableConnection(Connection conn, ObjectPool<PoolableConnection> pool, AbandonedConfig config)
conn - my underlying connectionpool - the pool to which I should return when closedconfig - the abandoned configuration settingspublic void close()
           throws SQLException
close in interface AutoCloseableclose in interface Connectionclose in class DelegatingConnectionSQLExceptionpublic void reallyClose()
                 throws SQLException
Connection.SQLExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.