类的使用
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的子类 修饰符和类型 类 说明 classNoRollbackRuleAttributeTag subclass ofRollbackRuleAttributethat has the opposite behavior to theRollbackRuleAttributesuperclass.声明为RollbackRuleAttribute的org.springframework.transaction.interceptor中的字段 修饰符和类型 字段 说明 static RollbackRuleAttributeRollbackRuleAttribute. ROLLBACK_ON_RUNTIME_EXCEPTIONSTherollback ruleforRuntimeExceptions.返回变量类型为RollbackRuleAttribute的类型的org.springframework.transaction.interceptor中的方法 修饰符和类型 方法 说明 List<RollbackRuleAttribute>RuleBasedTransactionAttribute. getRollbackRules()Return the list ofRollbackRuleAttributeobjects (nevernull).类型变量类型为RollbackRuleAttribute的org.springframework.transaction.interceptor中的方法参数 修饰符和类型 方法 说明 voidRuleBasedTransactionAttribute. setRollbackRules(List<RollbackRuleAttribute> rollbackRules)Set the list ofRollbackRuleAttributeobjects (and/orNoRollbackRuleAttributeobjects) to apply.类型变量类型为RollbackRuleAttribute的org.springframework.transaction.interceptor中的构造器参数 构造器 说明 RuleBasedTransactionAttribute(int propagationBehavior, List<RollbackRuleAttribute> rollbackRules)Create a new DefaultTransactionAttribute with the given propagation behavior.