类 DelegatingTransactionAttribute
- java.lang.Object
- org.springframework.transaction.support.DelegatingTransactionDefinition
- org.springframework.transaction.interceptor.DelegatingTransactionAttribute
public abstract class DelegatingTransactionAttribute extends DelegatingTransactionDefinition implements TransactionAttribute, Serializable
TransactionAttribute
implementation that delegates all calls to a given targetTransactionAttribute
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.- 从以下版本开始:
- 1.2
- 作者:
- Juergen Hoeller
- 另请参阅:
- 序列化表格
字段概要
从接口继承的字段 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
构造器概要
构造器 构造器 说明 DelegatingTransactionAttribute(TransactionAttribute targetAttribute)
Create a DelegatingTransactionAttribute for the given target attribute.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getQualifier()
Return a qualifier value associated with this transaction attribute.boolean
rollbackOn(Throwable ex)
Should we roll back on the given exception?从类继承的方法 org.springframework.transaction.support.DelegatingTransactionDefinition
equals, getIsolationLevel, getName, getPropagationBehavior, getTimeout, hashCode, isReadOnly, toString
从接口继承的方法 org.springframework.transaction.TransactionDefinition
getIsolationLevel, getName, getPropagationBehavior, getTimeout, isReadOnly
构造器详细资料
DelegatingTransactionAttribute
public DelegatingTransactionAttribute(TransactionAttribute targetAttribute)
Create a DelegatingTransactionAttribute for the given target attribute.- 参数:
targetAttribute
- the target TransactionAttribute to delegate to
方法详细资料
getQualifier
public String getQualifier()
从接口复制的说明: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.
- 指定者:
getQualifier
在接口中TransactionAttribute
rollbackOn
public boolean rollbackOn(Throwable ex)
从接口复制的说明:TransactionAttribute
Should we roll back on the given exception?- 指定者:
rollbackOn
在接口中TransactionAttribute
- 参数:
ex
- the exception to evaluate- 返回:
- whether to perform a rollback or not