public class PseudoTransactionService.MyTransaction
extends java.lang.Object
Constructor and Description |
---|
MyTransaction() |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
boolean |
delistResource(javax.transaction.xa.XAResource xaRes,
int flag) |
boolean |
enlistResource(javax.transaction.xa.XAResource xaRes) |
java.lang.Object |
getResource(java.lang.Object key) |
boolean |
getRollbackOnly() |
int |
getStatus() |
void |
putResource(java.lang.Object key,
java.lang.Object value) |
void |
registerInterposedSynchronization(Synchronization synchronization) |
void |
registerSynchronization(Synchronization synchronization) |
void |
rollback() |
void |
setRollbackOnly() |
public boolean delistResource(javax.transaction.xa.XAResource xaRes, int flag)
public boolean enlistResource(javax.transaction.xa.XAResource xaRes)
public int getStatus()
public void registerSynchronization(Synchronization synchronization)
public void registerInterposedSynchronization(Synchronization synchronization)
public boolean getRollbackOnly()
public void setRollbackOnly()
public java.lang.Object getResource(java.lang.Object key)
public void putResource(java.lang.Object key, java.lang.Object value)
public void commit() throws RollbackException
RollbackException
public void rollback()