javax.transaction
Interface Transaction
- public interface Transaction
TMSUCCESS
public static final int TMSUCCESS
TMSUSPEND
public static final int TMSUSPEND
TMFAIL
public static final int TMFAIL
commit
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
java.lang.SecurityException,
SystemException
delistResource
public boolean delistResource(javax.transaction.xa.XAResource xaRes,
int flag)
throws java.lang.IllegalStateException,
SystemException
enlistResource
public boolean enlistResource(javax.transaction.xa.XAResource xaRes)
throws RollbackException,
java.lang.IllegalStateException,
SystemException
getStatus
public int getStatus()
throws SystemException
registerSynchronization
public void registerSynchronization(Synchronization sync)
throws RollbackException,
java.lang.IllegalStateException,
SystemException
rollback
public void rollback()
throws java.lang.IllegalStateException,
SystemException
setRollbackOnly
public void setRollbackOnly()
throws java.lang.IllegalStateException,
SystemException