Class 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
    • 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 registry
        conn - underlying connection
        pool - connection pool
        config - abandoned configuration settings
      • PoolableManagedConnection

        public PoolableManagedConnection​(TransactionRegistry transactionRegistry,
                                         java.sql.Connection conn,
                                         org.apache.commons.pool.ObjectPool pool)
        Create a PoolableManagedConnection.
        Parameters:
        transactionRegistry - transaction registry
        conn - underlying connection
        pool - connection pool
    • Method Detail

      • reallyClose

        public void reallyClose()
                         throws java.sql.SQLException
        Actually close the underlying connection.
        Overrides:
        reallyClose in class PoolableConnection
        Throws:
        java.sql.SQLException