net.sourceforge.hivetranse.transaction
Class RollbackExceptionContribution

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by net.sourceforge.hivetranse.transaction.RollbackExceptionContribution
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder

public class RollbackExceptionContribution
extends org.apache.hivemind.impl.BaseLocatable

Represents a configuration parameter to the Transaction Interceptor configured for a service. Each instance defines an exception class that, when thrown by a service method, will have to rollback (or not) the current transaction.

Author:
Jean-Francois Poilpret

Constructor Summary
RollbackExceptionContribution()
           
 
Method Summary
 java.lang.Class getException()
           
 boolean getRollback()
           
 void setException(java.lang.Class clazz)
           
 void setRollback(boolean rollback)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RollbackExceptionContribution

public RollbackExceptionContribution()
Method Detail

setException

public void setException(java.lang.Class clazz)

getException

public java.lang.Class getException()

setRollback

public void setRollback(boolean rollback)

getRollback

public boolean getRollback()

toString

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