public class TransactionImple extends Object implements Transaction, Transaction
Modifier and Type | Field and Description |
---|---|
protected AtomicTransaction |
_theTransaction |
XACONNECTION, XAMODIFIER
Modifier | Constructor and Description |
---|---|
|
TransactionImple() |
protected |
TransactionImple(AtomicTransaction tx) |
Modifier and Type | Method and Description |
---|---|
protected Xid |
baseXid()
If this is an imported JCA transaction, then this method will return the
Xid we should pretend to be.
|
void |
commit()
We will never throw a HeuristicRollbackException because if we get a
HeuristicRollback from a resource, and can successfully rollback the
other resources, this is then the same as having simply been forced to
rollback the transaction during phase 1.
|
protected void |
commitAndDisassociate() |
boolean |
delistResource(XAResource xaRes,
int flags) |
protected boolean |
endSuspendedRMs()
If there are any suspended RMs then we should call end on them before the
transaction is terminated.
|
boolean |
enlistResource(XAResource xaRes) |
boolean |
enlistResource(XAResource xaRes,
Object[] params) |
boolean |
equals(Object obj)
Overloads Object.equals()
|
Uid |
get_uid() |
ControlWrapper |
getControlWrapper() |
long |
getRemainingTimeoutMills() |
Map<XAResource,TxInfo> |
getResources() |
int |
getStatus() |
Map<Uid,String> |
getSynchronizations() |
int |
getTimeout() |
static Map<Uid,Transaction> |
getTransactions() |
Xid |
getTxId() |
Object |
getTxLocalResource(Object key) |
int |
getXAResourceState(XAResource xaRes) |
int |
hashCode()
TransactionImple (which could be a proxy to the remote transaction) will
return up to two different hashCodes.
|
boolean |
isAlive() |
protected static void |
putTransaction(TransactionImple tx) |
void |
putTxLocalResource(Object key,
Object value) |
void |
registerSynchronization(Synchronization sync) |
protected static void |
removeTransaction(TransactionImple tx) |
void |
rollback() |
protected void |
rollbackAndDisassociate() |
void |
setRollbackOnly() |
void |
shutdown() |
String |
toString() |
protected AtomicTransaction _theTransaction
public TransactionImple() throws SubtransactionsUnavailable
SubtransactionsUnavailable
protected TransactionImple(AtomicTransaction tx)
public boolean equals(Object obj)
public int hashCode()
public ControlWrapper getControlWrapper()
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException, IllegalStateException
commit
in interface Transaction
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
SystemException
IllegalStateException
public void rollback() throws IllegalStateException, SecurityException, SystemException
rollback
in interface Transaction
IllegalStateException
SecurityException
SystemException
public void setRollbackOnly() throws IllegalStateException, SystemException
setRollbackOnly
in interface Transaction
IllegalStateException
SystemException
public int getStatus() throws SystemException
getStatus
in interface Transaction
SystemException
public void registerSynchronization(Synchronization sync) throws RollbackException, IllegalStateException, SystemException
registerSynchronization
in interface Transaction
RollbackException
IllegalStateException
SystemException
public boolean enlistResource(XAResource xaRes) throws RollbackException, IllegalStateException, SystemException
enlistResource
in interface Transaction
RollbackException
IllegalStateException
SystemException
public boolean enlistResource(XAResource xaRes, Object[] params) throws RollbackException, IllegalStateException, SystemException
public boolean delistResource(XAResource xaRes, int flags) throws IllegalStateException, SystemException
delistResource
in interface Transaction
IllegalStateException
SystemException
public final Uid get_uid()
public final Xid getTxId()
public int getXAResourceState(XAResource xaRes)
public final void shutdown()
public boolean isAlive()
protected void commitAndDisassociate() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException, IllegalStateException
protected void rollbackAndDisassociate() throws IllegalStateException, SecurityException, SystemException
protected Xid baseXid()
protected static final void putTransaction(TransactionImple tx)
protected static final void removeTransaction(TransactionImple tx)
protected boolean endSuspendedRMs()
public static Map<Uid,Transaction> getTransactions()
public Map<XAResource,TxInfo> getResources()
public int getTimeout()
public long getRemainingTimeoutMills()
Copyright © 2021 JBoss by Red Hat. All rights reserved.