|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.tm.integrity.AbstractTransactionIntegrity
public class AbstractTransactionIntegrity
A NOOP implementation of transaction integrity.
Implementations should extend this for future compatibility.
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 |
---|
protected org.jboss.logging.Logger log
Constructor Detail |
---|
public AbstractTransactionIntegrity()
Method Detail |
---|
public void checkTransactionIntegrity(TransactionImpl transaction)
TransactionIntegrity
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.
checkTransactionIntegrity
in interface TransactionIntegrity
transaction
- the transactionprotected void markRollback(Transaction transaction)
transaction
- the transacton
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |