public class DefaultTransactionAttribute extends DefaultTransactionDefinition implements TransactionAttribute
TransactionDefinition.Isolation, TransactionDefinition.PropagationPREFIX_ISOLATION, PREFIX_PROPAGATION, PREFIX_TIMEOUT, READ_ONLY_MARKERDEFAULT, READ_ONLY, TIMEOUT_DEFAULT| Constructor and Description |
|---|
DefaultTransactionAttribute() |
| 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?
|
void |
setNoRollbackFor(java.lang.Class<? extends java.lang.Throwable>... noRollbackFor)
Sets the exceptions that will not cause a rollback.
|
void |
setQualifier(java.lang.String qualifier)
Sets the qualifier to use for this attribute.
|
equals, getIsolationLevel, getName, getPropagationBehavior, getTimeout, hashCode, isReadOnly, setIsolationLevel, setName, setPropagationBehavior, setReadOnly, setTimeout, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIsolationLevel, getName, getPropagationBehavior, getTimeout, isReadOnly, ofpublic void setQualifier(java.lang.String qualifier)
qualifier - The qualifier.public void setNoRollbackFor(java.lang.Class<? extends java.lang.Throwable>... noRollbackFor)
noRollbackFor - The exceptions@Nullable public java.lang.String getQualifier()
TransactionAttributeThis may be used for choosing a corresponding transaction manager to process this specific transaction.
getQualifier in interface TransactionAttributepublic boolean rollbackOn(java.lang.Throwable ex)
TransactionAttributerollbackOn in interface TransactionAttributeex - the exception to evaluate