com.pmease.quickbuild.persistence
Class AgentTransaction

java.lang.Object
  extended by com.pmease.quickbuild.persistence.AgentTransaction
All Implemented Interfaces:
java.io.Serializable, org.hibernate.Transaction

public class AgentTransaction
extends java.lang.Object
implements org.hibernate.Transaction, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
AgentTransaction()
           
 
Method Summary
 void begin()
           
 void commit()
           
 boolean isActive()
           
 void registerSynchronization(javax.transaction.Synchronization synchronization)
           
 void rollback()
           
 void setTimeout(int seconds)
           
 boolean wasCommitted()
           
 boolean wasRolledBack()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentTransaction

public AgentTransaction()
Method Detail

begin

public void begin()
           throws org.hibernate.HibernateException
Specified by:
begin in interface org.hibernate.Transaction
Throws:
org.hibernate.HibernateException

commit

public void commit()
            throws org.hibernate.HibernateException
Specified by:
commit 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

rollback

public void rollback()
              throws org.hibernate.HibernateException
Specified by:
rollback in interface org.hibernate.Transaction
Throws:
org.hibernate.HibernateException

setTimeout

public void setTimeout(int seconds)
Specified by:
setTimeout in interface org.hibernate.Transaction

wasCommitted

public boolean wasCommitted()
                     throws org.hibernate.HibernateException
Specified by:
wasCommitted 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


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.