public class CMTTransaction extends AbstractTransactionImpl
UserTransaction
since
in the actual case CMT access to the UserTransaction
is explicitly disallowed. Instead
we use the JTA Transaction
object obtained from the TransactionManager
Modifier | Constructor and Description |
---|---|
protected |
CMTTransaction(TransactionCoordinator transactionCoordinator) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterAfterCompletion() |
protected void |
afterTransactionBegin() |
protected void |
afterTransactionCompletion(int status) |
protected void |
beforeTransactionCommit() |
protected void |
beforeTransactionRollBack() |
IsolationDelegate |
createIsolationDelegate()
Retrieve an isolation delegate appropriate for this transaction strategy.
|
protected void |
doBegin()
Perform the actual steps of beginning a transaction according to the strategy.
|
protected void |
doCommit()
Perform the actual steps of committing a transaction according to the strategy.
|
protected void |
doRollback()
Perform the actual steps of rolling back a transaction according to the strategy.
|
JoinStatus |
getJoinStatus()
Get the current state of this transaction's join status.
|
boolean |
isActive()
Is this transaction still active?
Answers on a best effort basis.
|
boolean |
isInitiator()
Is this transaction the initiator of any underlying transaction?
|
void |
join()
Perform a join to the underlying transaction
|
void |
markForJoin()
Mark a transaction as joinable
|
void |
markRollbackOnly()
Make a best effort to mark the underlying transaction for rollback only.
|
void |
resetJoinStatus()
Reset this transaction's join status.
|
protected TransactionManager |
transactionManager() |
allowFailedCommitToPhysicallyRollback, begin, commit, doExtendedActiveCheck, getLocalStatus, getTimeout, invalidate, isParticipating, jtaPlatform, registerSynchronization, rollback, setTimeout, transactionCoordinator, wasCommitted, wasRolledBack
protected CMTTransaction(TransactionCoordinator transactionCoordinator)
protected TransactionManager transactionManager()
protected void doBegin()
AbstractTransactionImpl
doBegin
in class AbstractTransactionImpl
protected void afterTransactionBegin()
afterTransactionBegin
in class AbstractTransactionImpl
protected void beforeTransactionCommit()
beforeTransactionCommit
in class AbstractTransactionImpl
protected void doCommit()
AbstractTransactionImpl
doCommit
in class AbstractTransactionImpl
protected void beforeTransactionRollBack()
beforeTransactionRollBack
in class AbstractTransactionImpl
protected void doRollback()
AbstractTransactionImpl
doRollback
in class AbstractTransactionImpl
protected void afterTransactionCompletion(int status)
afterTransactionCompletion
in class AbstractTransactionImpl
protected void afterAfterCompletion()
afterAfterCompletion
in class AbstractTransactionImpl
public boolean isActive() throws TransactionException
Transaction
Connection
, only when
it is initiated from here.isActive
in interface Transaction
isActive
in class AbstractTransactionImpl
true
if the transaction is still active; false
otherwise.TransactionException
public IsolationDelegate createIsolationDelegate()
TransactionImplementor
public boolean isInitiator()
Transaction
true
if this transaction initiated the underlying transaction; false
otherwise.public void markRollbackOnly()
TransactionImplementor
public void markForJoin()
TransactionImplementor
markForJoin
in interface TransactionImplementor
markForJoin
in class AbstractTransactionImpl
public void join()
TransactionImplementor
join
in interface TransactionImplementor
join
in class AbstractTransactionImpl
public void resetJoinStatus()
TransactionImplementor
resetJoinStatus
in interface TransactionImplementor
resetJoinStatus
in class AbstractTransactionImpl
public JoinStatus getJoinStatus()
TransactionImplementor
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.