com.elasticpath.persistence.impl
Class HibernateTransactionImpl

java.lang.Object
  extended by com.elasticpath.persistence.impl.HibernateTransactionImpl
All Implemented Interfaces:
Transaction

public class HibernateTransactionImpl
extends java.lang.Object
implements Transaction

The hibernate implementation of a transaction in ElasticPath. It is a wrap of org.hibernate.Transaction.


Constructor Summary
HibernateTransactionImpl(org.hibernate.Transaction transaction)
          Create an EP transaction based on the given org.hibernate.Transaction.
 
Method Summary
 void commit()
          Commit changes.
 void rollback()
          Rollback changes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateTransactionImpl

public HibernateTransactionImpl(org.hibernate.Transaction transaction)
Create an EP transaction based on the given org.hibernate.Transaction.

Parameters:
transaction - the org.hibernate.Transaction
Method Detail

commit

public void commit()
            throws EpPersistenceException
Commit changes.

Specified by:
commit in interface Transaction
Throws:
EpPersistenceException - in case of any error

rollback

public void rollback()
              throws EpPersistenceException
Rollback changes.

Specified by:
rollback in interface Transaction
Throws:
EpPersistenceException - in case of any error