org.apache.commons.dbcp
Class PoolableConnection
java.lang.Object
org.apache.commons.dbcp.AbandonedTrace
org.apache.commons.dbcp.DelegatingConnection
org.apache.commons.dbcp.PoolableConnection
- All Implemented Interfaces:
- Connection, Wrapper
public class PoolableConnection
- extends DelegatingConnection
A delegating connection that, rather than closing the underlying
connection, returns itself to an ObjectPool
when
closed.
- Version:
- $Revision: 1.14 $ $Date: 2004/05/01 12:50:12 $
- Author:
- Rodney Waldhoff, Glenn L. Nielsen, James House
Methods inherited from class org.apache.commons.dbcp.DelegatingConnection |
clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, equals, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDelegate, getHoldability, getInnermostDelegate, getMetaData, 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, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, unwrap |
Methods inherited from class org.apache.commons.dbcp.AbandonedTrace |
printStackTrace |
PoolableConnection
public PoolableConnection(Connection conn,
ObjectPool pool)
- Parameters:
conn
- my underlying connectionpool
- the pool to which I should return when closed
close
public void close()
throws SQLException
- Returns me to my pool.
- Specified by:
close
in interface Connection
- Overrides:
close
in class DelegatingConnection
- Throws:
SQLException
reallyClose
public void reallyClose()
throws SQLException
- Actually close my underlying
Connection
.
- Throws:
SQLException
Copyright © 2001-2003 Apache Software Foundation. Documenation generated December 20 2010.