Class NoRollbackRuleAttribute
- java.lang.Object
- org.springframework.transaction.interceptor.RollbackRuleAttribute
- org.springframework.transaction.interceptor.NoRollbackRuleAttribute
- All Implemented Interfaces:
Serializable
public class NoRollbackRuleAttribute extends RollbackRuleAttribute
Tag subclass ofRollbackRuleAttribute
that has the opposite behavior to theRollbackRuleAttribute
superclass.- Since:
- 09.04.2003
- Author:
- Rod Johnson
- See Also:
- Serialized Form
Field Summary
Fields inherited from class org.springframework.transaction.interceptor.RollbackRuleAttribute
ROLLBACK_ON_RUNTIME_EXCEPTIONS
Constructor Summary
Constructors Constructor Description NoRollbackRuleAttribute(Class<?> clazz)
Create a new instance of theNoRollbackRuleAttribute
class for the suppliedThrowable
class.NoRollbackRuleAttribute(String exceptionName)
Create a new instance of theNoRollbackRuleAttribute
class for the suppliedexceptionName
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
Methods inherited from class org.springframework.transaction.interceptor.RollbackRuleAttribute
equals, getDepth, getExceptionName, hashCode
Constructor Detail
NoRollbackRuleAttribute
public NoRollbackRuleAttribute(Class<?> clazz)
Create a new instance of theNoRollbackRuleAttribute
class for the suppliedThrowable
class.- Parameters:
clazz
- theThrowable
class- See Also:
RollbackRuleAttribute(Class)
NoRollbackRuleAttribute
public NoRollbackRuleAttribute(String exceptionName)
Create a new instance of theNoRollbackRuleAttribute
class for the suppliedexceptionName
.- Parameters:
exceptionName
- the exception name pattern- See Also:
RollbackRuleAttribute(String)
Method Detail
toString
public String toString()
- Overrides:
toString
in classRollbackRuleAttribute