org.apache.commons.dbcp.managed
Class PoolableManagedConnection
java.lang.Object
org.apache.commons.dbcp.AbandonedTrace
org.apache.commons.dbcp.DelegatingConnection
org.apache.commons.dbcp.PoolableConnection
org.apache.commons.dbcp.managed.PoolableManagedConnection
- All Implemented Interfaces:
- Connection, Wrapper
public class PoolableManagedConnection
- extends PoolableConnection
PoolableConnection that unregisters from TransactionRegistry on Connection real destroy.
- Version:
- $Revision$ $Date$
- See Also:
PoolableConnection
Method Summary |
void |
reallyClose()
Actually close the underlying connection. |
Methods inherited from class org.apache.commons.dbcp.DelegatingConnection |
activate, checkOpen, clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, equals, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getDelegate, getDelegateInternal, getHoldability, getInnermostDelegate, getInnermostDelegateInternal, getMetaData, 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, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, toString, unwrap |
PoolableManagedConnection
public PoolableManagedConnection(TransactionRegistry transactionRegistry,
Connection conn,
ObjectPool pool,
AbandonedConfig config)
- Create a PoolableManagedConnection.
- Parameters:
transactionRegistry
- transaction registryconn
- underlying connectionpool
- connection poolconfig
- abandoned configuration settings
PoolableManagedConnection
public PoolableManagedConnection(TransactionRegistry transactionRegistry,
Connection conn,
ObjectPool pool)
- Create a PoolableManagedConnection.
- Parameters:
transactionRegistry
- transaction registryconn
- underlying connectionpool
- connection pool
reallyClose
public void reallyClose()
throws SQLException
- Actually close the underlying connection.
- Overrides:
reallyClose
in class PoolableConnection
- Throws:
SQLException
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.