类的使用
org.springframework.transaction.interceptor.RollbackRuleAttribute
使用RollbackRuleAttribute的程序包 程序包 说明 org.springframework.transaction.interceptor AOP-based solution for declarative transaction demarcation.org.springframework.transaction.interceptor中RollbackRuleAttribute的使用
org.springframework.transaction.interceptor中RollbackRuleAttribute的子类 修饰符和类型 类 说明 class
NoRollbackRuleAttribute
Tag subclass ofRollbackRuleAttribute
that has the opposite behavior to theRollbackRuleAttribute
superclass.声明为RollbackRuleAttribute的org.springframework.transaction.interceptor中的字段 修饰符和类型 字段 说明 static RollbackRuleAttribute
RollbackRuleAttribute. ROLLBACK_ON_RUNTIME_EXCEPTIONS
Therollback rule
forRuntimeExceptions
.返回变量类型为RollbackRuleAttribute的类型的org.springframework.transaction.interceptor中的方法 修饰符和类型 方法 说明 List<RollbackRuleAttribute>
RuleBasedTransactionAttribute. getRollbackRules()
Return the list ofRollbackRuleAttribute
objects (nevernull
).类型变量类型为RollbackRuleAttribute的org.springframework.transaction.interceptor中的方法参数 修饰符和类型 方法 说明 void
RuleBasedTransactionAttribute. setRollbackRules(List<RollbackRuleAttribute> rollbackRules)
Set the list ofRollbackRuleAttribute
objects (and/orNoRollbackRuleAttribute
objects) to apply.类型变量类型为RollbackRuleAttribute的org.springframework.transaction.interceptor中的构造器参数 构造器 说明 RuleBasedTransactionAttribute(int propagationBehavior, List<RollbackRuleAttribute> rollbackRules)
Create a new DefaultTransactionAttribute with the given propagation behavior.