org.apache.commons.dbcp
public class PoolableConnection extends DelegatingConnection
ObjectPool
when
closed.Constructor and Description |
---|
PoolableConnection(java.sql.Connection conn,
ObjectPool pool) |
PoolableConnection(java.sql.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 . |
clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, equals, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDelegate, getHoldability, getInnermostDelegate, getMetaData, 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, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, toString, unwrap
printStackTrace
public PoolableConnection(java.sql.Connection conn, ObjectPool pool)
conn
- my underlying connectionpool
- the pool to which I should return when closedpublic PoolableConnection(java.sql.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 java.sql.SQLException
close
in interface java.sql.Connection
close
in class DelegatingConnection
java.sql.SQLException
public void reallyClose() throws java.sql.SQLException
Connection
.java.sql.SQLException
Copyright © 2001-2004 Apache Software Foundation. Documenation generated September 15 2013.