Top Description Fields Constructors Methods
org.springframework.transaction.interceptor

public Class NoRollbackRuleAttribute

extends RollbackRuleAttribute
Class Inheritance
Annotations
@SuppressWarnings:serial

Tag subclass of RollbackRuleAttribute that has the opposite behavior to the RollbackRuleAttribute superclass.
Authors
Rod Johnson, Sam Brannen
Since
09.04.2003

Field Summary

Inherited from org.springframework.transaction.interceptor.RollbackRuleAttribute:
ROLLBACK_ON_RUNTIME_EXCEPTIONS

Constructor Summary

AccessConstructor and Description
public
NoRollbackRuleAttribute(Class<?>
exception type; must be Throwable or a subclass of Throwable
exceptionType
)

Create a new instance of the NoRollbackRuleAttribute class for the given exceptionType.

public
NoRollbackRuleAttribute(String
the exception name pattern; can also be a fully package-qualified class name
exceptionPattern
)

Create a new instance of the NoRollbackRuleAttribute class for the supplied exceptionPattern.

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides org.springframework.transaction.interceptor.RollbackRuleAttribute.toString.

Returns a string representation of the object.

Inherited from org.springframework.transaction.interceptor.RollbackRuleAttribute:
equalsgetDepthgetExceptionNamehashCode

Constructor Detail

NoRollbackRuleAttributeback to summary
public NoRollbackRuleAttribute(Class<?> exceptionType)

Create a new instance of the NoRollbackRuleAttribute class for the given exceptionType.

Parameters
exceptionType:Class<?>

exception type; must be Throwable or a subclass of Throwable

Exceptions
IllegalArgumentException:
if the supplied exceptionType is not a Throwable type or is null
See Also
RollbackRuleAttribute#RollbackRuleAttribute(Class)
NoRollbackRuleAttributeback to summary
public NoRollbackRuleAttribute(String exceptionPattern)

Create a new instance of the NoRollbackRuleAttribute class for the supplied exceptionPattern.

Parameters
exceptionPattern:String

the exception name pattern; can also be a fully package-qualified class name

Exceptions
IllegalArgumentException:
if the supplied exceptionPattern is null or empty
See Also
RollbackRuleAttribute#RollbackRuleAttribute(String)

Method Detail

toStringback to summary
public String toString()

Overrides org.springframework.transaction.interceptor.RollbackRuleAttribute.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override