org.apache.commons.dbcp.managed
Class ManagedConnection.CompletionListener

java.lang.Object
  extended by org.apache.commons.dbcp.managed.ManagedConnection.CompletionListener
All Implemented Interfaces:
TransactionContextListener
Enclosing class:
ManagedConnection

protected class ManagedConnection.CompletionListener
extends Object
implements TransactionContextListener

Delegates to ManagedConnection.transactionComplete() for transaction completion events.


Constructor Summary
protected ManagedConnection.CompletionListener()
           
 
Method Summary
 void afterCompletion(TransactionContext completedContext, boolean commited)
          Occurs after the transaction commits or rolls back.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedConnection.CompletionListener

protected ManagedConnection.CompletionListener()
Method Detail

afterCompletion

public void afterCompletion(TransactionContext completedContext,
                            boolean commited)
Description copied from interface: TransactionContextListener
Occurs after the transaction commits or rolls back.

Specified by:
afterCompletion in interface TransactionContextListener
Parameters:
completedContext - the transaction context that completed
commited - true if the transaction committed; false otherwise


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.