Save This Page
Home » Hibernate-3.3.2.GA » org.hibernate » transaction » [javadoc | source]
org.hibernate.transaction
public class: JTATransaction [javadoc | source]
java.lang.Object
   org.hibernate.transaction.JTATransaction

All Implemented Interfaces:
    org.hibernate.Transaction

Transaction implementation based on transaction management through a JTA UserTransaction . Similar to CMTTransaction , except here we are actually managing the transactions through the Hibernate transaction mechanism.
Constructor:
 public JTATransaction(UserTransaction userTransaction,
    JDBCContext jdbcContext,
    Context transactionContext) 
Method from org.hibernate.transaction.JTATransaction Summary:
begin,   commit,   getUserTransaction,   isActive,   registerSynchronization,   rollback,   setTimeout,   wasCommitted,   wasRolledBack
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.transaction.JTATransaction Detail:
 public  void begin() throws HibernateException 
    {@inheritDoc}
 public  void commit() throws HibernateException 
    {@inheritDoc}
 protected UserTransaction getUserTransaction() 
    Getter for property 'userTransaction'.
 public boolean isActive() throws TransactionException 
    {@inheritDoc}
 public  void registerSynchronization(Synchronization sync) throws HibernateException 
    {@inheritDoc}
 public  void rollback() throws HibernateException 
    {@inheritDoc}
 public  void setTimeout(int seconds) 
    {@inheritDoc}
 public boolean wasCommitted() throws TransactionException 
    {@inheritDoc}
 public boolean wasRolledBack() throws TransactionException 
    {@inheritDoc}