javax.transaction

Interface Transaction

public interface Transaction

Method Summary

void
commit()
boolean
delistResource(XAResource xaRes, int flag)
boolean
enlistResource(XAResource xaRes)
int
getStatus()
void
registerSynchronization(Synchronization synch)
void
rollback()
void
setRollbackOnly()

Method Details

commit

public void commit()
            throws HeuristicMixedException,
                   HeuristicRollbackException,
                   RollbackException,
                   SecurityException,
                   SystemException

delistResource

public boolean delistResource(XAResource xaRes,
                              int flag)
            throws IllegalStateException,
                   SystemException

enlistResource

public boolean enlistResource(XAResource xaRes)
            throws IllegalStateException,
                   RollbackException,
                   SystemException

getStatus

public int getStatus()
            throws SystemException

registerSynchronization

public void registerSynchronization(Synchronization synch)
            throws IllegalStateException,
                   RollbackException,
                   SystemException

rollback

public void rollback()
            throws IllegalStateException,
                   SystemException

setRollbackOnly

public void setRollbackOnly()
            throws IllegalStateException,
                   SystemException