public interface TransactionAttribute extends TransactionDefinition
rollbackOn
specification to TransactionDefinition
.
As custom rollbackOn
is only possible with AOP, it resides in the AOP-related
transaction subpackage.DefaultTransactionAttribute
TransactionDefinition.Isolation, TransactionDefinition.Propagation
DEFAULT, READ_ONLY, TIMEOUT_DEFAULT
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getQualifier()
Return a qualifier value associated with this transaction attribute.
|
boolean |
rollbackOn(java.lang.Throwable ex)
Should we roll back on the given exception?
|
getIsolationLevel, getName, getPropagationBehavior, getTimeout, isReadOnly, of
@Nullable java.lang.String getQualifier()
This may be used for choosing a corresponding transaction manager to process this specific transaction.
boolean rollbackOn(java.lang.Throwable ex)
ex
- the exception to evaluate