com.ca.jcs.util
Class NullTransactionManager
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullTransactionManager
public NullTransactionManager()
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