public class JoinableCMTTransaction extends CMTTransaction
| Modifier and Type | Class and Description |
|---|---|
static class |
JoinableCMTTransaction.JoinStatus |
jdbcContext, transactionContext| Constructor and Description |
|---|
JoinableCMTTransaction(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Begin a new transaction.
|
void |
commit()
Flush the associated Session and end the unit of work (unless
we are in
FlushMode.MANUAL. |
JoinableCMTTransaction.JoinStatus |
getStatus() |
boolean |
isTransactionInProgress(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext) |
void |
markForJoined() |
void |
resetStatus() |
getTransaction, isActive, registerSynchronization, rollback, setTimeout, wasCommitted, wasRolledBackpublic JoinableCMTTransaction(JDBCContext jdbcContext, TransactionFactory.Context transactionContext)
public boolean isTransactionInProgress(JDBCContext jdbcContext, TransactionFactory.Context transactionContext)
public void begin()
throws HibernateException
CMTTransactionbegin in interface Transactionbegin in class CMTTransactionHibernateExceptionpublic void commit()
throws HibernateException
CMTTransactionFlushMode.MANUAL.
This method will commit the underlying transaction if and only
if the underlying transaction was initiated by this object.commit in interface Transactioncommit in class CMTTransactionHibernateExceptionpublic JoinableCMTTransaction.JoinStatus getStatus()
public void resetStatus()
public void markForJoined()
Copyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved