Interface TransactionAttribute
- All Superinterfaces:
- TransactionDefinition
- All Known Implementing Classes:
- DefaultTransactionAttribute,- DelegatingTransactionAttribute,- RuleBasedTransactionAttribute
This interface adds a 
rollbackOn specification to TransactionDefinition.
 As custom rollbackOn is only possible with AOP, it resides in the AOP-related
 transaction subpackage.- Since:
- 16.03.2003
- Author:
- Rod Johnson, Juergen Hoeller, Mark Paluch
- See Also:
- 
Field SummaryFields inherited from interface org.springframework.transaction.TransactionDefinitionISOLATION_DEFAULT, ISOLATION_READ_COMMITTED, ISOLATION_READ_UNCOMMITTED, ISOLATION_REPEATABLE_READ, ISOLATION_SERIALIZABLE, PROPAGATION_MANDATORY, PROPAGATION_NESTED, PROPAGATION_NEVER, PROPAGATION_NOT_SUPPORTED, PROPAGATION_REQUIRED, PROPAGATION_REQUIRES_NEW, PROPAGATION_SUPPORTS, TIMEOUT_DEFAULT
- 
Method SummaryModifier and TypeMethodDescriptionReturn labels associated with this transaction attribute.Return a qualifier value associated with this transaction attribute.booleanrollbackOn(Throwable ex) Should we roll back on the given exception?Methods inherited from interface org.springframework.transaction.TransactionDefinitiongetIsolationLevel, getName, getPropagationBehavior, getTimeout, isReadOnly
- 
Method Details- 
getQualifierReturn a qualifier value associated with this transaction attribute.This may be used for choosing a corresponding transaction manager to process this specific transaction. - Since:
- 3.0
 
- 
getLabelsCollection<String> getLabels()Return labels associated with this transaction attribute.This may be used for applying specific transactional behavior or follow a purely descriptive nature. - Since:
- 5.3
 
- 
rollbackOnShould we roll back on the given exception?- Parameters:
- ex- the exception to evaluate
- Returns:
- whether to perform a rollback or not
 
 
-