javax.transaction
接口 UserTransaction


public interface UserTransaction

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

方法摘要
 void begin()
           
 void commit()
           
 int getStatus()
           
 void rollback()
           
 void setRollbackOnly()
           
 void setTransactionTimeout(int seconds)
           
 

方法详细信息

begin

void begin()
           throws NotSupportedException,
                  SystemException
抛出:
NotSupportedException
SystemException

commit

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

getStatus

int getStatus()
              throws SystemException
抛出:
SystemException

rollback

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

setRollbackOnly

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

setTransactionTimeout

void setTransactionTimeout(int seconds)
                           throws SystemException
抛出:
SystemException


Copyright © 2013. All Rights Reserved.