org.springframework.transaction.interceptor
Class NoRollbackRuleAttribute

java.lang.Object
  extended byorg.springframework.transaction.interceptor.RollbackRuleAttribute
      extended byorg.springframework.transaction.interceptor.NoRollbackRuleAttribute

public class NoRollbackRuleAttribute
extends RollbackRuleAttribute

Tag class. Its class means it has the opposite behaviour to the RollbackRule superclass.

Since:
09-Apr-2003
Version:
$Id: NoRollbackRuleAttribute.java,v 1.5 2004/03/18 02:46:05 trisberg Exp $
Author:
Rod Johnson

Field Summary
 
Fields inherited from class org.springframework.transaction.interceptor.RollbackRuleAttribute
ROLLBACK_ON_RUNTIME_EXCEPTIONS
 
Constructor Summary
NoRollbackRuleAttribute(java.lang.Class clazz)
          Constrct a new NoRollbackRule for the given throwable class.
NoRollbackRuleAttribute(java.lang.String exceptionName)
          Construct a new NoRollbackRule for the given exception name.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class org.springframework.transaction.interceptor.RollbackRuleAttribute
getDepth, getExceptionName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoRollbackRuleAttribute

public NoRollbackRuleAttribute(java.lang.Class clazz)
Constrct a new NoRollbackRule for the given throwable class.

Parameters:
clazz - throwable class

NoRollbackRuleAttribute

public NoRollbackRuleAttribute(java.lang.String exceptionName)
Construct a new NoRollbackRule for the given exception name. This can be a substring, with no wildcard support at present. A value of "ServletException" would match ServletException and subclasses, for example.

Parameters:
exceptionName - the exception pattern
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class RollbackRuleAttribute


Copyright (C) 2003-2004 The Spring Framework Project.