org.jboss.tm.integrity
Interface TransactionIntegrity

All Known Implementing Classes:
AbstractTransactionIntegrity, FailIncompleteTransactionIntegrity

public interface TransactionIntegrity

A policy that checks a transaction before allowing a commit

Version:
$Revision: 57208 $
Author:
Adrian Brock

Method Summary
 void checkTransactionIntegrity(TransactionImpl transaction)
          Checks whether a transaction can be committed.
 

Method Detail

checkTransactionIntegrity

void checkTransactionIntegrity(TransactionImpl transaction)
Checks whether a transaction can be committed.

The policy is allowed to wait, e.g. if there are other threads still associated with the transaction.

This method is invoked before any transaction synchronizations' beforeCompletions.

This policy should not invoke any methods that change the state of the transaction other than setRollbackOnly() to force a rollback or registering a transaction synchronization.

Parameters:
transaction - the transaction
Throws:
SecurityException - if a commit is not allowed from this context


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