public class TransactionImple extends TransactionImple
_theTransaction
XACONNECTION, XAMODIFIER
Constructor and Description |
---|
TransactionImple(AtomicTransaction imported)
Create a new transaction with the specified timeout.
|
Modifier and Type | Method and Description |
---|---|
void |
commit()
This is a subordinate transaction, so any attempt to commit it or roll it
back directly, should fail.
|
protected void |
commitAndDisassociate() |
boolean |
doBeforeCompletion() |
boolean |
doCommit()
Drive the subordinate transaction to commit.
|
void |
doForget()
Called to tell the transaction to forget any heuristics.
|
void |
doOnePhaseCommit()
Drive the transaction to commit.
|
int |
doPrepare()
Drive the subordinate transaction through the prepare phase.
|
void |
doRollback()
Drive the subordinate transaction to roll back.
|
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() |
String |
toString() |
baseXid, delistResource, endSuspendedRMs, enlistResource, enlistResource, get_uid, getControlWrapper, getRemainingTimeoutMills, getResources, getStatus, getSynchronizations, getTimeout, getTransactions, getTxId, getTxLocalResource, getXAResourceState, hashCode, isAlive, putTransaction, putTxLocalResource, registerSynchronization, removeTransaction, setRollbackOnly, shutdown
public TransactionImple(AtomicTransaction imported)
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()
SystemException
- thrown if any error occurs.public boolean doCommit() throws IllegalStateException, HeuristicMixedException, HeuristicRollbackException, HeuristicCommitException, SystemException
IllegalStateException
- thrown if the transaction has not been prepared
or is unknown.HeuristicMixedException
- thrown if a heuristic mixed outcome occurs
(where some participants committed whilst others rolled back).HeuristicRollbackException
- thrown if the transaction rolled back.SystemException
- thrown if some other error occurs.HeuristicCommitException
public void doRollback() throws IllegalStateException, HeuristicMixedException, HeuristicCommitException, HeuristicRollbackException, SystemException
IllegalStateException
- thrown if the transaction is not known by the
system or has been previously terminated.HeuristicMixedException
- thrown if a heuristic mixed outcome occurs
(can only happen if the transaction was previously prepared and then only if
some participants commit whilst others roll back).HeuristicCommitException
- thrown if the transaction commits (can only
happen if it was previously prepared).SystemException
- thrown if any other error occurs.HeuristicRollbackException
public void doOnePhaseCommit() throws IllegalStateException, RollbackException, HeuristicMixedException, SystemException
IllegalStateException
- if the transaction has already terminatedHeuristicRollbackException
- thrown if the transaction
rolls back.RollbackException
HeuristicMixedException
SystemException
public void doForget() throws IllegalStateException
IllegalStateException
- thrown if the transaction cannot
be found.public boolean doBeforeCompletion() throws SystemException
SystemException
public String toString()
toString
in class TransactionImple
protected void commitAndDisassociate() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException, IllegalStateException
protected void rollbackAndDisassociate() throws IllegalStateException, SecurityException, SystemException
rollbackAndDisassociate
in class TransactionImple
IllegalStateException
SecurityException
SystemException
Copyright © 2021 JBoss by Red Hat. All rights reserved.