public class TransactionImple extends TransactionImple
_theTransaction, _xaResourceRecordWrappingPlugin
XACONNECTION, 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() |
boolean |
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, setRollbackOnly
public TransactionImple(int timeout)
public TransactionImple(AtomicAction act)
public boolean equals(Object obj)
equals
in class TransactionImple
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException, IllegalStateException
commit
in interface Transaction
commit
in class TransactionImple
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
SystemException
IllegalStateException
public void rollback() throws IllegalStateException, SecurityException, SystemException
rollback
in interface Transaction
rollback
in class TransactionImple
IllegalStateException
SecurityException
SystemException
public int doPrepare()
public boolean doCommit() throws IllegalStateException, HeuristicMixedException, HeuristicRollbackException, SystemException
public void doRollback() throws IllegalStateException, HeuristicMixedException, HeuristicCommitException, HeuristicRollbackException, SystemException
public void doForget() throws IllegalStateException
IllegalStateException
public void doOnePhaseCommit() throws IllegalStateException, HeuristicMixedException, SystemException, RollbackException
public boolean doBeforeCompletion() throws SystemException
SystemException
public String toString()
toString
in class TransactionImple
protected void commitAndDisassociate() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException, IllegalStateException
TransactionImple
protected void rollbackAndDisassociate() throws IllegalStateException, SecurityException, SystemException
TransactionImple
rollbackAndDisassociate
in class TransactionImple
IllegalStateException
SecurityException
SystemException
public 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 TransactionImple
IOException
ObjectStoreException
Copyright © 2021 JBoss by Red Hat. All rights reserved.