Interface TransactionAttribute
-
- All Superinterfaces:
TransactionDefinition
- All Known Implementing Classes:
DefaultTransactionAttribute
@Deprecated public interface TransactionAttribute extends TransactionDefinition
Deprecated.Interface is not needed anymoreThis interface adds arollbackOn
specification toTransactionDefinition
. As customrollbackOn
is only possible with AOP, it resides in the AOP-related transaction subpackage.- Since:
- 16.03.2003
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
DefaultTransactionAttribute
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micronaut.transaction.TransactionDefinition
TransactionDefinition.Isolation, TransactionDefinition.Propagation
-
-
Field Summary
-
Fields inherited from interface io.micronaut.transaction.TransactionDefinition
DEFAULT, READ_ONLY, TIMEOUT_DEFAULT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getQualifier()
Deprecated.Return a qualifier value associated with this transaction attribute.boolean
rollbackOn(java.lang.Throwable ex)
Deprecated.Should we roll back on the given exception?-
Methods inherited from interface io.micronaut.transaction.TransactionDefinition
getDontRollbackOn, getIsolationLevel, getName, getPropagationBehavior, getRollbackOn, getTimeout, isReadOnly
-
-
-
-
Method Detail
-
getQualifier
@Nullable java.lang.String getQualifier()
Deprecated.Return a qualifier value associated with this transaction attribute.This may be used for choosing a corresponding transaction manager to process this specific transaction.
- Returns:
- The qualifier
- Since:
- 3.0
-
rollbackOn
boolean rollbackOn(java.lang.Throwable ex)
Deprecated.Should we roll back on the given exception?- Specified by:
rollbackOn
in interfaceTransactionDefinition
- Parameters:
ex
- the exception to evaluate- Returns:
- whether to perform a rollback or not
-
-