net.commerce.zocalo.hibernate
Class NoDBTransaction
java.lang.Object
net.commerce.zocalo.hibernate.NoDBTransaction
- All Implemented Interfaces:
- org.hibernate.Transaction
public class NoDBTransaction
- extends java.lang.Object
- implements org.hibernate.Transaction
a do-nothing implementation of Hibernate's transaction that can be used when
hibernate is disabled.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoDBTransaction
public NoDBTransaction()
make
public static org.hibernate.Transaction make()
commit
public void commit()
throws org.hibernate.HibernateException
- Specified by:
commit
in interface org.hibernate.Transaction
- Throws:
org.hibernate.HibernateException
rollback
public void rollback()
throws org.hibernate.HibernateException
- Specified by:
rollback
in interface org.hibernate.Transaction
- Throws:
org.hibernate.HibernateException
wasRolledBack
public boolean wasRolledBack()
throws org.hibernate.HibernateException
- Specified by:
wasRolledBack
in interface org.hibernate.Transaction
- Throws:
org.hibernate.HibernateException
wasCommitted
public boolean wasCommitted()
throws org.hibernate.HibernateException
- Specified by:
wasCommitted
in interface org.hibernate.Transaction
- Throws:
org.hibernate.HibernateException
isActive
public boolean isActive()
throws org.hibernate.HibernateException
- Specified by:
isActive
in interface org.hibernate.Transaction
- Throws:
org.hibernate.HibernateException
registerSynchronization
public void registerSynchronization(javax.transaction.Synchronization synchronization)
throws org.hibernate.HibernateException
- Specified by:
registerSynchronization
in interface org.hibernate.Transaction
- Throws:
org.hibernate.HibernateException