public class TransactionImple extends TransactionImple
_theTransactionXACONNECTION, 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() |
void |
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, shutdownpublic TransactionImple(AtomicTransaction imported)
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()
SystemException - thrown if any error occurs.public void 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.HeuristicCommitExceptionpublic 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.HeuristicRollbackExceptionpublic void doOnePhaseCommit()
throws IllegalStateException,
RollbackException,
HeuristicMixedException,
SystemException
IllegalStateException - if the transaction has already terminatedHeuristicRollbackException - thrown if the transaction
rolls back.RollbackExceptionHeuristicMixedExceptionSystemExceptionpublic void doForget()
throws IllegalStateException
IllegalStateException - thrown if the transaction cannot
be found.public boolean doBeforeCompletion()
throws SystemException
SystemExceptionpublic String toString()
toString in class TransactionImpleprotected void commitAndDisassociate()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
SystemException,
IllegalStateException
protected void rollbackAndDisassociate()
throws IllegalStateException,
SecurityException,
SystemException
rollbackAndDisassociate in class TransactionImpleIllegalStateExceptionSecurityExceptionSystemExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.