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, wasRolledBack
public JoinableCMTTransaction(JDBCContext jdbcContext, TransactionFactory.Context transactionContext)
public boolean isTransactionInProgress(JDBCContext jdbcContext, TransactionFactory.Context transactionContext)
public void begin() throws HibernateException
CMTTransaction
begin
in interface Transaction
begin
in class CMTTransaction
HibernateException
public void commit() throws HibernateException
CMTTransaction
FlushMode.MANUAL
.
This method will commit the underlying transaction if and only
if the underlying transaction was initiated by this object.commit
in interface Transaction
commit
in class CMTTransaction
HibernateException
public JoinableCMTTransaction.JoinStatus getStatus()
public void resetStatus()
public void markForJoined()
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved