Class DelegatingTransactionAttribute
java.lang.Object
org.springframework.transaction.support.DelegatingTransactionDefinition
org.springframework.transaction.interceptor.DelegatingTransactionAttribute
- All Implemented Interfaces:
 Serializable,TransactionAttribute,TransactionDefinition
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.- Since:
 - 1.2
 - Author:
 - Juergen Hoeller, Mark Paluch
 - See Also:
 
- 
Field Summary
Fields inherited from interface org.springframework.transaction.TransactionDefinition
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 Summary
ConstructorsConstructorDescriptionDelegatingTransactionAttribute(TransactionAttribute targetAttribute) Create a DelegatingTransactionAttribute for the given target attribute. - 
Method Summary
Modifier and TypeMethodDescriptionReturn labels associated with this transaction attribute.Return a qualifier value associated with this transaction attribute.booleanrollbackOn(Throwable ex) Should we roll back on the given exception?Methods inherited from class org.springframework.transaction.support.DelegatingTransactionDefinition
equals, getIsolationLevel, getName, getPropagationBehavior, getTimeout, hashCode, isReadOnly, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.transaction.TransactionDefinition
getIsolationLevel, getName, getPropagationBehavior, getTimeout, isReadOnly 
- 
Constructor Details
- 
DelegatingTransactionAttribute
Create a DelegatingTransactionAttribute for the given target attribute.- Parameters:
 targetAttribute- the target TransactionAttribute to delegate to
 
 - 
 - 
Method Details
- 
getQualifier
Description copied from interface:TransactionAttributeReturn 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:
 getQualifierin interfaceTransactionAttribute
 - 
getLabels
Description copied from interface:TransactionAttributeReturn labels associated with this transaction attribute.This may be used for applying specific transactional behavior or follow a purely descriptive nature.
- Specified by:
 getLabelsin interfaceTransactionAttribute
 - 
rollbackOn
Description copied from interface:TransactionAttributeShould we roll back on the given exception?- Specified by:
 rollbackOnin interfaceTransactionAttribute- Parameters:
 ex- the exception to evaluate- Returns:
 - whether to perform a rollback or not
 
 
 -