public class TransactionImple extends TransactionImple
_theTransaction, _xaResourceRecordWrappingPluginXACONNECTION, XAMODIFIER| Constructor and Description |
|---|
TransactionImple(AtomicAction act) |
TransactionImple(int timeout)
Create a new transaction with the specified timeout.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
activated()
Because of recovery, it is possible that a transaction may not be able to
activate itself from the log initially, forcing us to retry later.
|
void |
commit()
This is a subordinate transaction, so any attempt to commit it or roll it
back directly, should fail.
|
protected void |
commitAndDisassociate()
Does the same as commit, but also changes the thread-to-tx association.
|
protected Xid |
createXid(boolean branch,
XAModifier theModifier,
XAResource xaResource) |
boolean |
doBeforeCompletion() |
void |
doCommit() |
void |
doForget()
Deprecated.
Only called from a test
|
void |
doOnePhaseCommit() |
int |
doPrepare() |
void |
doRollback() |
boolean |
equals(Object obj)
Overloads Object.equals()
|
void |
rollback()
This is a subordinate transaction, so any attempt to commit it or roll it
back directly, should fail.
|
protected void |
rollbackAndDisassociate()
Does the same as rollback, but also changes the thread-to-tx association.
|
String |
toString() |
baseXid, delistResource, endSuspendedRMs, enlistResource, enlistResource, get_uid, getRemainingTimeoutMills, getResources, getStatus, getSynchronizations, getTimeout, getTransaction, getTransaction, getTransactions, getTxId, getTxLocalResource, getXAResourceState, hashCode, isAlive, putTransaction, putTxLocalResource, registerSynchronization, removeTransaction, setRollbackOnlypublic TransactionImple(int timeout)
public TransactionImple(AtomicAction act)
public boolean equals(Object obj)
equals in class TransactionImplepublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
SystemException,
IllegalStateException
commit in interface Transactioncommit in class TransactionImpleRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionSystemExceptionIllegalStateExceptionpublic void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface Transactionrollback in class TransactionImpleIllegalStateExceptionSecurityExceptionSystemExceptionpublic int doPrepare()
public void doCommit()
throws IllegalStateException,
HeuristicMixedException,
HeuristicRollbackException,
SystemException
public void doRollback()
throws IllegalStateException,
HeuristicMixedException,
HeuristicCommitException,
HeuristicRollbackException,
SystemException
public void doForget()
throws IllegalStateException
IllegalStateExceptionpublic void doOnePhaseCommit()
throws IllegalStateException,
HeuristicMixedException,
SystemException,
RollbackException
public boolean doBeforeCompletion()
throws SystemException
SystemExceptionpublic String toString()
toString in class TransactionImpleprotected void commitAndDisassociate()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
SystemException,
IllegalStateException
TransactionImpleprotected void rollbackAndDisassociate()
throws IllegalStateException,
SecurityException,
SystemException
TransactionImplerollbackAndDisassociate in class TransactionImpleIllegalStateExceptionSecurityExceptionSystemExceptionpublic boolean activated()
true if the transaction was activated, false
otherwise.protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
createXid in class TransactionImpleIOExceptionObjectStoreExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.