Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.hibernate.transaction.JTATransaction
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 Summary | |
|
Method Summary | |
void |
|
void |
|
protected UserTransaction |
|
boolean |
|
void |
|
void |
|
void |
|
boolean | |
boolean |
public JTATransaction(UserTransaction userTransaction, JDBCContext jdbcContext, TransactionFactory.Context transactionContext)
protected UserTransaction getUserTransaction()
Getter for property 'userTransaction'.
- Returns:
- Value for property 'userTransaction'.
public boolean isActive() throws TransactionException
- Specified by:
- isActive in interface Transaction
public void registerSynchronization(Synchronization sync) throws HibernateException
- Specified by:
- registerSynchronization in interface Transaction
public void rollback() throws HibernateException
- Specified by:
- rollback in interface Transaction
public boolean wasCommitted() throws TransactionException
- Specified by:
- wasCommitted in interface Transaction
public boolean wasRolledBack() throws TransactionException
- Specified by:
- wasRolledBack in interface Transaction