public class TransactionState extends Object
| Constructor and Description |
|---|
TransactionState(GlobalTID gtid,
TransactionImpl tran) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeCompletion()
this is called via callback of Synchronization
right before a transaction commit or rollback
to ensure that all XAResources are properly delisted
|
boolean |
containsXAResource(XAResource res)
return true if res has been enlisted in this transaction;
false otherwise.
|
void |
endAssociation(XAResource xares,
int flags) |
Enumeration |
listXAResources()
list all the XAResources that have been enlisted in this
transaction.
|
void |
registerSynchronization(Synchronization sync,
org.omg.CosTransactions.Control control,
boolean interposed)
synchronized void cleanupTransactionStateMapping() {
if (activeResources == 0) {
TransactionManagerImpl tm =
TransactionManagerImpl.getTransactionManagerImpl();
}
}
|
void |
rollback(XAResource res)
This is called from OTS to rollback a particular XAResource
|
void |
startAssociation(XAResource res,
org.omg.CosTransactions.Control control,
int status) |
public TransactionState(GlobalTID gtid, TransactionImpl tran)
public void beforeCompletion()
public void rollback(XAResource res) throws IllegalStateException, XAException
IllegalStateExceptionXAExceptionpublic void startAssociation(XAResource res, org.omg.CosTransactions.Control control, int status) throws XAException, SystemException, IllegalStateException, RollbackException
public void endAssociation(XAResource xares, int flags) throws XAException, IllegalStateException
XAExceptionIllegalStateExceptionpublic void registerSynchronization(Synchronization sync, org.omg.CosTransactions.Control control, boolean interposed) throws RollbackException, IllegalStateException, SystemException
public Enumeration listXAResources()
public boolean containsXAResource(XAResource res)
Copyright © 2017. All rights reserved.