com.interface21.transaction.support
Interface TransactionSynchronization


public interface TransactionSynchronization

Interface for callbacks after transaction completion. Supported by AbstractPlatformTransactionManager.

Since:
02.06.2003
Author:
Juergen Hoeller
See Also:
TransactionSynchronizationManager, AbstractPlatformTransactionManager

Field Summary
static int STATUS_COMMITTED
          Completion status in case of proper commit
static int STATUS_ROLLED_BACK
          Completion status in case of proper rollback
static int STATUS_UNKNOWN
          Status in case of heuristic mixed completion or system errors
 
Method Summary
 void afterCompletion(int status)
          Invoked after transaction completion.
 

Field Detail

STATUS_COMMITTED

public static final int STATUS_COMMITTED
Completion status in case of proper commit

STATUS_ROLLED_BACK

public static final int STATUS_ROLLED_BACK
Completion status in case of proper rollback

STATUS_UNKNOWN

public static final int STATUS_UNKNOWN
Status in case of heuristic mixed completion or system errors
Method Detail

afterCompletion

public void afterCompletion(int status)
Invoked after transaction completion. Can e.g. perform proper resource cleanup.
Parameters:
status - completion status according to the STATUS_ constants


Rod Johnson and Spring contributors 2001-2003.