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 sync)
           
 void rollback()
           
 void setRollbackOnly()
           
 

Method Detail

commit

void commit()
            throws RollbackException,
                   HeuristicMixedException,
                   HeuristicRollbackException,
                   SecurityException,
                   SystemException
Throws:
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
SystemException

delistResource

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

enlistResource

boolean enlistResource(XAResource xaRes)
                       throws RollbackException,
                              IllegalStateException,
                              SystemException
Throws:
RollbackException
IllegalStateException
SystemException

getStatus

int getStatus()
              throws SystemException
Throws:
SystemException

registerSynchronization

void registerSynchronization(Synchronization sync)
                             throws RollbackException,
                                    IllegalStateException,
                                    SystemException
Throws:
RollbackException
IllegalStateException
SystemException

rollback

void rollback()
              throws IllegalStateException,
                     SystemException
Throws:
IllegalStateException
SystemException

setRollbackOnly

void setRollbackOnly()
                     throws IllegalStateException,
                            SystemException
Throws:
IllegalStateException
SystemException