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
,
RuleBasedTransactionAttribute
ISOLATION_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
Modifier and Type | Method and Description |
---|---|
String |
getQualifier()
Return a qualifier value associated with this transaction attribute.
|
boolean |
rollbackOn(Throwable ex)
Should we roll back on the given exception?
|
getIsolationLevel, getName, getPropagationBehavior, getTimeout, isReadOnly, withDefaults
@Nullable String getQualifier()
This may be used for choosing a corresponding transaction manager to process this specific transaction.
boolean rollbackOn(Throwable ex)
ex
- the exception to evaluate