| javax.transaction.Synchronization
Synchronization | public interface Synchronization (Code) | | This is the callback interface that has to be implemented by objects
interested in receiving notification before and after a transaction
commits or rolls back.
An interested party can give an instance implementing this interface
as an argument to the
Transaction.registerSynchronization(Synchronization) Transaction.registerSynchronization method to receive callbacks before and after a transaction commits or
rolls back.
version: $Revision: 57196 $ |
Method Summary | |
public void | afterCompletion(int status) This method is invoked after the transaction has committed or
rolled back. | public void | beforeCompletion() This method is invoked before the start of the commit
process. |
afterCompletion | public void afterCompletion(int status)(Code) | | This method is invoked after the transaction has committed or
rolled back.
Parameters: status - The status of the completed transaction. |
beforeCompletion | public void beforeCompletion()(Code) | | This method is invoked before the start of the commit
process. The method invocation is done in the context of the
transaction that is about to be committed.
|
|
|