public abstract class DelegatingTransactionAttribute extends DelegatingTransactionDefinition implements TransactionAttribute, Serializable
TransactionAttribute
implementation that delegates all calls to a given target
TransactionAttribute
instance. Abstract because it is meant to be subclassed,
with subclasses overriding specific methods that are not supposed to simply delegate
to the target instance.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
Constructor and Description |
---|
DelegatingTransactionAttribute(TransactionAttribute targetAttribute)
Create a DelegatingTransactionAttribute for the given target attribute.
|
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?
|
equals, getIsolationLevel, getName, getPropagationBehavior, getTimeout, hashCode, isReadOnly, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getIsolationLevel, getName, getPropagationBehavior, getTimeout, isReadOnly
public DelegatingTransactionAttribute(TransactionAttribute targetAttribute)
targetAttribute
- the target TransactionAttribute to delegate to@Nullable public String getQualifier()
TransactionAttribute
This may be used for choosing a corresponding transaction manager to process this specific transaction.
getQualifier
in interface TransactionAttribute
public boolean rollbackOn(Throwable ex)
TransactionAttribute
rollbackOn
in interface TransactionAttribute
ex
- the exception to evaluate