public class PoolableConnection extends DelegatingConnection
ObjectPool
when
closed.TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
Constructor and Description |
---|
PoolableConnection(Connection conn,
ObjectPool pool) |
PoolableConnection(Connection conn,
ObjectPool pool,
AbandonedConfig config) |
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, innermostDelegateEquals, 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, toString, unwrap
printStackTrace
public PoolableConnection(Connection conn, ObjectPool pool)
conn
- my underlying connectionpool
- the pool to which I should return when closedpublic PoolableConnection(Connection conn, ObjectPool 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 AutoCloseable
close
in interface Connection
close
in class DelegatingConnection
SQLException
public void reallyClose() throws SQLException
Connection
.SQLException
Copyright © 2001-2004 Apache Software Foundation. Documenation generated October 11 2016.