org.jboss.tm.integrity
Class AbstractTransactionIntegrity

java.lang.Object
  extended by org.jboss.tm.integrity.AbstractTransactionIntegrity
All Implemented Interfaces:
TransactionIntegrity
Direct Known Subclasses:
FailIncompleteTransactionIntegrity

public class AbstractTransactionIntegrity
extends Object
implements TransactionIntegrity

A NOOP implementation of transaction integrity.

Implementations should extend this for future compatibility.

Version:
$Revision: 57208 $
Author:
Adrian Brock

Field Summary
protected  org.jboss.logging.Logger log
          The log
 
Constructor Summary
AbstractTransactionIntegrity()
           
 
Method Summary
 void checkTransactionIntegrity(TransactionImpl transaction)
          Checks whether a transaction can be committed.
protected  void markRollback(Transaction transaction)
          Mark the transaction for rollback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.jboss.logging.Logger log
The log

Constructor Detail

AbstractTransactionIntegrity

public AbstractTransactionIntegrity()
Method Detail

checkTransactionIntegrity

public void checkTransactionIntegrity(TransactionImpl transaction)
Description copied from interface: TransactionIntegrity
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.

Specified by:
checkTransactionIntegrity in interface TransactionIntegrity
Parameters:
transaction - the transaction

markRollback

protected void markRollback(Transaction transaction)
Mark the transaction for rollback

Parameters:
transaction - the transacton


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