javax.transaction
接口 Transaction


public interface Transaction

版本:
$Rev: 467742 $ $Date: 2010/04/07 16:52:44 $

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

方法详细信息

commit

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

delistResource

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

enlistResource

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

getStatus

int getStatus()
              throws SystemException
抛出:
SystemException

registerSynchronization

void registerSynchronization(Synchronization synch)
                             throws IllegalStateException,
                                    RollbackException,
                                    SystemException
抛出:
IllegalStateException
RollbackException
SystemException

rollback

void rollback()
              throws IllegalStateException,
                     SystemException
抛出:
IllegalStateException
SystemException

setRollbackOnly

void setRollbackOnly()
                     throws IllegalStateException,
                            SystemException
抛出:
IllegalStateException
SystemException


Copyright © 2013. All Rights Reserved.