com.interface21.transaction.interceptor
Interface TransactionAttribute

All Superinterfaces:
TransactionDefinition
All Known Implementing Classes:
DefaultTransactionAttribute

public interface TransactionAttribute
extends TransactionDefinition

This interface adds a rollBackOn specification to TransactionDefinition. As custom rollBackOn is only possible with AOP, this class resides in the AOP transaction package.

Since:
16-Mar-2003
Version:
$Revision: 1.1 $
Author:
Rod Johnson
See Also:
DefaultTransactionAttribute

Fields inherited from interface com.interface21.transaction.TransactionDefinition
ISOLATION_CONSTANT_PREFIX, ISOLATION_DEFAULT, ISOLATION_READ_COMMITTED, ISOLATION_READ_UNCOMMITTED, ISOLATION_REPEATABLE_READ, ISOLATION_SERIALIZABLE, PROPAGATION_CONSTANT_PREFIX, PROPAGATION_MANDATORY, PROPAGATION_REQUIRED, PROPAGATION_SUPPORTS, TIMEOUT_DEFAULT
 
Method Summary
 boolean rollBackOn(java.lang.Throwable ex)
          Should we roll back on a checked exception?
 
Methods inherited from interface com.interface21.transaction.TransactionDefinition
getIsolationLevel, getPropagationBehavior, getTimeout
 

Method Detail

rollBackOn

public boolean rollBackOn(java.lang.Throwable ex)
Should we roll back on a checked exception?
Parameters:
ex - the exception to evaluate
Returns:
boolean rollback or not


Rod Johnson and Spring contributors 2001-2003.