Class DefaultTransactionAttribute
- java.lang.Object
-
- io.micronaut.transaction.support.DefaultTransactionDefinition
-
- io.micronaut.transaction.interceptor.DefaultTransactionAttribute
-
- All Implemented Interfaces:
TransactionAttribute
,TransactionDefinition
,java.io.Serializable
@Deprecated public class DefaultTransactionAttribute extends DefaultTransactionDefinition implements TransactionAttribute
Deprecated.Class is not needed anymore- Since:
- 1.0
- Author:
- graemerocher
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micronaut.transaction.TransactionDefinition
TransactionDefinition.Isolation, TransactionDefinition.Propagation
-
-
Field Summary
-
Fields inherited from class io.micronaut.transaction.support.DefaultTransactionDefinition
PREFIX_ISOLATION, PREFIX_PROPAGATION, PREFIX_TIMEOUT, READ_ONLY_MARKER
-
Fields inherited from interface io.micronaut.transaction.TransactionDefinition
DEFAULT, READ_ONLY, TIMEOUT_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description DefaultTransactionAttribute()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete 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?void
setNoRollbackFor(java.lang.Class<? extends java.lang.Throwable>... noRollbackFor)
Deprecated.Sets the exceptions that will not cause a rollback.void
setQualifier(java.lang.String qualifier)
Deprecated.Sets the qualifier to use for this attribute.-
Methods inherited from class io.micronaut.transaction.support.DefaultTransactionDefinition
equals, getDontRollbackOn, getIsolationLevel, getName, getPropagationBehavior, getRollbackOn, getTimeout, hashCode, isReadOnly, setDontRollbackOn, setIsolationLevel, setName, setPropagationBehavior, setReadOnly, setRollbackOn, setTimeout, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.micronaut.transaction.TransactionDefinition
getDontRollbackOn, getIsolationLevel, getName, getPropagationBehavior, getRollbackOn, getTimeout, isReadOnly
-
-
-
-
Method Detail
-
setQualifier
public void setQualifier(java.lang.String qualifier)
Deprecated.Sets the qualifier to use for this attribute.- Parameters:
qualifier
- The qualifier.
-
setNoRollbackFor
public void setNoRollbackFor(java.lang.Class<? extends java.lang.Throwable>... noRollbackFor)
Deprecated.Sets the exceptions that will not cause a rollback.- Parameters:
noRollbackFor
- The exceptions
-
getQualifier
@Nullable public java.lang.String getQualifier()
Deprecated.Description copied from interface:TransactionAttribute
Return a qualifier value associated with this transaction attribute.This may be used for choosing a corresponding transaction manager to process this specific transaction.
- Specified by:
getQualifier
in interfaceTransactionAttribute
- Returns:
- The qualifier
-
rollbackOn
public boolean rollbackOn(java.lang.Throwable ex)
Deprecated.Description copied from interface:TransactionAttribute
Should we roll back on the given exception?- Specified by:
rollbackOn
in interfaceTransactionAttribute
- Specified by:
rollbackOn
in interfaceTransactionDefinition
- Parameters:
ex
- the exception to evaluate- Returns:
- whether to perform a rollback or not
-
-