com.ca.jcs.util
Class NullTransactionManager

java.lang.Object
  extended by com.ca.jcs.util.NullTransactionManager
All Implemented Interfaces:
TransactionManager

public class NullTransactionManager
extends Object
implements TransactionManager

Empty transaction manager which may be useful for connectors which support transactions, but only on particular configuration in which case using an instance of this class removes then need for repeated != null checks.


Constructor Summary
NullTransactionManager()
           
 
Method Summary
 void commit(Object transaction)
           
 Object openTransaction()
           
 void rollback(Object transaction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullTransactionManager

public NullTransactionManager()
Method Detail

openTransaction

public Object openTransaction()
                       throws NamingException
Specified by:
openTransaction in interface TransactionManager
Throws:
NamingException

rollback

public void rollback(Object transaction)
              throws NamingException
Specified by:
rollback in interface TransactionManager
Throws:
NamingException

commit

public void commit(Object transaction)
            throws NamingException
Specified by:
commit in interface TransactionManager
Throws:
NamingException


Created 2011-07-14 13:27 EST