接口 TransactionAttribute
- 所有超级接口:
TransactionDefinition
public interface TransactionAttribute extends TransactionDefinition
This interface adds arollbackOn
specification toTransactionDefinition
. As customrollbackOn
is only possible with AOP, it resides in the AOP-related transaction subpackage.- 从以下版本开始:
- 16.03.2003
- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
DefaultTransactionAttribute
,RuleBasedTransactionAttribute
字段概要
从接口继承的字段 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
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.TransactionDefinition
getIsolationLevel, getName, getPropagationBehavior, getTimeout, isReadOnly
方法详细资料
getQualifier
String getQualifier()
Return a qualifier value associated with this transaction attribute.This may be used for choosing a corresponding transaction manager to process this specific transaction.
- 从以下版本开始:
- 3.0
rollbackOn
boolean rollbackOn(Throwable ex)
Should we roll back on the given exception?- 参数:
ex
- the exception to evaluate- 返回:
- whether to perform a rollback or not