Package org.apache.commons.dbcp.managed
Class ManagedConnection.CompletionListener
- java.lang.Object
-
- org.apache.commons.dbcp.managed.ManagedConnection.CompletionListener
-
- All Implemented Interfaces:
TransactionContextListener
- Enclosing class:
- ManagedConnection
protected class ManagedConnection.CompletionListener extends java.lang.Object implements TransactionContextListener
Delegates toManagedConnection.transactionComplete()
for transaction completion events.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CompletionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterCompletion(TransactionContext completedContext, boolean commited)
Occurs after the transaction commits or rolls back.
-
-
-
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 interfaceTransactionContextListener
- Parameters:
completedContext
- the transaction context that completedcommited
- true if the transaction committed; false otherwise
-
-