public class SubordinateAtomicTransaction extends AtomicTransaction
_theAction, _theStatus, _timeout, NESTED, TOP_LEVEL| Constructor and Description |
|---|
SubordinateAtomicTransaction(ControlWrapper tx) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Does not change thread-to-tx association as base class rollback does.
|
protected boolean |
checkForCurrent()
By default the BasicAction class only allows the termination of a
transaction if it's the one currently associated with the thread.
|
boolean |
doBeforeCompletion() |
int |
doCommit() |
void |
doForget() |
int |
doOnePhaseCommit() |
int |
doPrepare() |
int |
doRollback() |
void |
end(boolean report_heuristics)
Does not change thread-to-tx association as base class commit does.
|
get_xid, getControlWrapperbegin, commit, control, equals, finalize, get_status, get_timeout, get_transaction_name, get_txcontext, get_uid, getStatus, getTimeout, hashCode, registerResource, registerSubtranAware, registerSynchronization, resume, rollback, rollbackOnly, set_timeout, suspend, validTransactionpublic SubordinateAtomicTransaction(ControlWrapper tx)
public void end(boolean report_heuristics)
throws NoTransaction,
HeuristicMixed,
HeuristicHazard,
WrongTransaction,
SystemException
end in class AtomicTransactionNoTransactionHeuristicMixedHeuristicHazardWrongTransactionSystemExceptionpublic void abort()
throws NoTransaction,
WrongTransaction,
SystemException
abort in class AtomicTransactionNoTransactionWrongTransactionSystemExceptionpublic int doPrepare()
throws SystemException
SystemExceptionpublic int doCommit()
throws SystemException
SystemExceptionpublic int doRollback()
throws SystemException
SystemExceptionpublic int doOnePhaseCommit()
throws SystemException
SystemExceptionpublic void doForget()
throws SystemException
SystemExceptionpublic boolean doBeforeCompletion()
throws SystemException
SystemExceptionprotected boolean checkForCurrent()
false to indicate that this transaction can only
be terminated by the right thread.Copyright © 2016 JBoss by Red Hat. All rights reserved.