Package 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:
java.lang.AutoCloseable
,java.sql.Connection
,java.sql.Wrapper
public class PoolableManagedConnection extends PoolableConnection
PoolableConnection that unregisters from TransactionRegistry on Connection real destroy.- Version:
- $Revision$ $Date$
- See Also:
PoolableConnection
-
-
Field Summary
-
Fields inherited from class org.apache.commons.dbcp.PoolableConnection
_pool
-
Fields inherited from class org.apache.commons.dbcp.DelegatingConnection
_closed, _conn
-
-
Constructor Summary
Constructors Constructor Description PoolableManagedConnection(TransactionRegistry transactionRegistry, java.sql.Connection conn, org.apache.commons.pool.ObjectPool pool)
Create a PoolableManagedConnection.PoolableManagedConnection(TransactionRegistry transactionRegistry, java.sql.Connection conn, org.apache.commons.pool.ObjectPool pool, AbandonedConfig config)
Create a PoolableManagedConnection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
reallyClose()
Actually close the underlying connection.-
Methods inherited from class org.apache.commons.dbcp.PoolableConnection
close
-
Methods inherited from class org.apache.commons.dbcp.DelegatingConnection
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, unwrap
-
Methods inherited from class org.apache.commons.dbcp.AbandonedTrace
addTrace, clearTrace, getConfig, getLastUsed, getTrace, printStackTrace, removeTrace, setLastUsed, setLastUsed, setStackTrace
-
-
-
-
Constructor Detail
-
PoolableManagedConnection
public PoolableManagedConnection(TransactionRegistry transactionRegistry, java.sql.Connection conn, org.apache.commons.pool.ObjectPool pool, AbandonedConfig config)
Create a PoolableManagedConnection.- Parameters:
transactionRegistry
- transaction registryconn
- underlying connectionpool
- connection poolconfig
- abandoned configuration settings
-
PoolableManagedConnection
public PoolableManagedConnection(TransactionRegistry transactionRegistry, java.sql.Connection conn, org.apache.commons.pool.ObjectPool pool)
Create a PoolableManagedConnection.- Parameters:
transactionRegistry
- transaction registryconn
- underlying connectionpool
- connection pool
-
-
Method Detail
-
reallyClose
public void reallyClose() throws java.sql.SQLException
Actually close the underlying connection.- Overrides:
reallyClose
in classPoolableConnection
- Throws:
java.sql.SQLException
-
-