站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档

Synchronization (JBoss J2EE API) - JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档


javax.transaction
Interface Synchronization


public interface Synchronization

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 method to receive callbacks before and after a transaction commits or rolls back.

Version:
$Revision: 1.3 $

Method Summary
 void afterCompletion(int status)
          This method is invoked after the transaction has committed or rolled back.
 void beforeCompletion()
          This method is invoked before the start of the commit process.
 

Method Detail

beforeCompletion

public void beforeCompletion()
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.


afterCompletion

public void afterCompletion(int status)
This method is invoked after the transaction has committed or rolled back.

Parameters:
status - The status of the completed transaction.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.