javax.transaction
public interface Transaction
Modifier and Type | Method and Description |
---|---|
void |
commit() |
boolean |
delistResource(XAResource xaRes,
int flag) |
boolean |
enlistResource(XAResource xaRes) |
int |
getStatus() |
void |
registerSynchronization(Synchronization sync) |
void |
rollback() |
void |
setRollbackOnly() |
void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException
boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException
IllegalStateException
SystemException
boolean enlistResource(XAResource xaRes) throws RollbackException, IllegalStateException, SystemException
int getStatus() throws SystemException
SystemException
void registerSynchronization(Synchronization sync) throws RollbackException, IllegalStateException, SystemException
void rollback() throws IllegalStateException, SystemException
IllegalStateException
SystemException
void setRollbackOnly() throws IllegalStateException, SystemException
IllegalStateException
SystemException