|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.hibernate.transaction.CMTTransaction
Implements a basic transaction strategy for CMT transactions. All work is done in the context of the container managed transaction.
| Constructor Summary | |
CMTTransaction(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext)
|
|
| Method Summary | |
void |
begin()
|
void |
commit()
Flush the associated Session and end the unit of work. |
boolean |
isActive()
Is this transaction still active? |
void |
registerSynchronization(Synchronization sync)
Register a user synchronization callback for this transaction |
void |
rollback()
Force the underlying transaction to roll back. |
boolean |
wasCommitted()
Check if this transaction was successfully committed. |
boolean |
wasRolledBack()
Was this transaction rolled back or set to rollback only? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CMTTransaction(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext)
| Method Detail |
public void begin()
throws HibernateException
HibernateException
public void commit()
throws HibernateException
Transaction
commit in interface TransactionHibernateException
public void rollback()
throws HibernateException
Transaction
rollback in interface TransactionHibernateException
public boolean isActive()
throws TransactionException
Transaction
isActive in interface TransactionTransactionException
public boolean wasRolledBack()
throws TransactionException
Transaction
wasRolledBack in interface TransactionTransactionException
public boolean wasCommitted()
throws TransactionException
Transaction
wasCommitted in interface TransactionTransactionException
public void registerSynchronization(Synchronization sync)
throws HibernateException
Transaction
registerSynchronization in interface TransactionHibernateException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||