org.apache.commons.dbcp.managed
Class PoolableManagedConnection

java.lang.Object
  extended by org.apache.commons.dbcp.AbandonedTrace
      extended by org.apache.commons.dbcp.DelegatingConnection
          extended by org.apache.commons.dbcp.PoolableConnection
              extended by org.apache.commons.dbcp.managed.PoolableManagedConnection
All Implemented Interfaces:
Connection

public class PoolableManagedConnection
extends PoolableConnection

PoolableConnection that unregisters from TransactionRegistry on Connection real destroy.

Version:
$Revision: 892307 $ $Date: 2014-01-01 00:27:28 +0100 (Wed, 01 Jan 2014) $
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
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
PoolableManagedConnection(TransactionRegistry transactionRegistry, Connection conn, ObjectPool pool)
          Create a PoolableManagedConnection.
PoolableManagedConnection(TransactionRegistry transactionRegistry, Connection conn, ObjectPool pool, AbandonedConfig config)
          Create a PoolableManagedConnection.
 
Method Summary
 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
activate, checkOpen, clearWarnings, commit, createStatement, createStatement, createStatement, equals, getAutoCommit, getCatalog, getDelegate, getDelegateInternal, getHoldability, getInnermostDelegate, getInnermostDelegateInternal, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, handleException, hashCode, innermostDelegateEquals, isClosed, isReadOnly, nativeSQL, passivate, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setDelegate, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, toString
 
Methods inherited from class org.apache.commons.dbcp.AbandonedTrace
addTrace, clearTrace, getConfig, getLastUsed, getTrace, printStackTrace, removeTrace, setLastUsed, setLastUsed, setStackTrace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PoolableManagedConnection

public PoolableManagedConnection(TransactionRegistry transactionRegistry,
                                 Connection conn,
                                 ObjectPool pool,
                                 AbandonedConfig config)
Create a PoolableManagedConnection.

Parameters:
transactionRegistry - transaction registry
conn - underlying connection
pool - connection pool
config - abandoned configuration settings

PoolableManagedConnection

public PoolableManagedConnection(TransactionRegistry transactionRegistry,
                                 Connection conn,
                                 ObjectPool pool)
Create a PoolableManagedConnection.

Parameters:
transactionRegistry - transaction registry
conn - underlying connection
pool - connection pool
Method Detail

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.