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 Transaction
public boolean getRollbackOnly()
public Object getTransactionKey()
public int getTransactionStatus()
public void registerInterposedSynchronization(Synchronization synchronization)
public void setRollbackOnly() throws IllegalStateException
setRollbackOnly
in interface Transaction
IllegalStateException
public void setRollbackOnly(Throwable reason)
public void registerSynchronization(Synchronization synch) throws IllegalStateException, RollbackException, SystemException
registerSynchronization
in interface Transaction
IllegalStateException
RollbackException
SystemException
public boolean enlistResource(XAResource xaRes) throws IllegalStateException, RollbackException, SystemException
enlistResource
in interface Transaction
IllegalStateException
RollbackException
SystemException
public boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException
delistResource
in interface Transaction
IllegalStateException
SystemException
public void commit() throws HeuristicMixedException, HeuristicRollbackException, RollbackException, SecurityException, SystemException
commit
in interface Transaction
HeuristicMixedException
HeuristicRollbackException
RollbackException
SecurityException
SystemException
public void rollback() throws IllegalStateException, SystemException
rollback
in interface Transaction
IllegalStateException
SystemException
public org.apache.geronimo.transaction.manager.TransactionImpl.TransactionBranch addBranchXid(XAResource xaRes, Xid branchId)
Copyright © 2017. All rights reserved.