public class TransactionImpl extends Object implements Transaction
| Constructor and Description |
|---|
TransactionImpl(Xid xid,
TransactionManagerImpl txManager) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.geronimo.transaction.manager.TransactionImpl.TransactionBranch |
addBranchXid(XAResource xaRes,
Xid branchId) |
void |
commit() |
boolean |
delistResource(XAResource xaRes,
int flag) |
boolean |
enlistResource(XAResource xaRes) |
boolean |
equals(Object obj) |
Object |
getResource(Object key) |
boolean |
getRollbackOnly() |
int |
getStatus() |
Object |
getTransactionKey() |
int |
getTransactionStatus() |
void |
putResource(Object key,
Object value) |
void |
registerInterposedSynchronization(Synchronization synchronization) |
void |
registerSynchronization(Synchronization synch) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setRollbackOnly(Throwable reason) |
public TransactionImpl(Xid xid, TransactionManagerImpl txManager)
public int getStatus()
getStatus in interface Transactionpublic boolean getRollbackOnly()
public Object getTransactionKey()
public int getTransactionStatus()
public void registerInterposedSynchronization(Synchronization synchronization)
public void setRollbackOnly()
throws IllegalStateException
setRollbackOnly in interface TransactionIllegalStateExceptionpublic void setRollbackOnly(Throwable reason)
public void registerSynchronization(Synchronization synch) throws IllegalStateException, RollbackException, SystemException
registerSynchronization in interface TransactionIllegalStateExceptionRollbackExceptionSystemExceptionpublic boolean enlistResource(XAResource xaRes) throws IllegalStateException, RollbackException, SystemException
enlistResource in interface TransactionIllegalStateExceptionRollbackExceptionSystemExceptionpublic boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException
delistResource in interface TransactionIllegalStateExceptionSystemExceptionpublic void commit()
throws HeuristicMixedException,
HeuristicRollbackException,
RollbackException,
SecurityException,
SystemException
commit in interface TransactionHeuristicMixedExceptionHeuristicRollbackExceptionRollbackExceptionSecurityExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SystemException
rollback in interface TransactionIllegalStateExceptionSystemExceptionpublic org.apache.geronimo.transaction.manager.TransactionImpl.TransactionBranch addBranchXid(XAResource xaRes, Xid branchId)
Copyright © 2023. All rights reserved.