|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The RMI remote UserTransaction session interface.
Method Summary | |
Object |
begin(int timeout)
Start a new transaction, and return its TPC. |
void |
commit(Object tpc)
Commit the transaction. |
void |
destroy()
Destroy this session. |
int |
getStatus(Object tpc)
Return status of the transaction. |
void |
rollback(Object tpc)
Rollback the transaction. |
void |
setRollbackOnly(Object tpc)
Mark the transaction for rollback only. |
Method Detail |
public void destroy() throws RemoteException
RemoteException
public Object begin(int timeout) throws RemoteException, NotSupportedException, SystemException
timeout
- The timeout value for the new transaction, in seconds.
RemoteException
NotSupportedException
SystemException
public void commit(Object tpc) throws RemoteException, RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
tpc
- The transaction propagation context for the transaction.
RemoteException
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException
public void rollback(Object tpc) throws RemoteException, SecurityException, IllegalStateException, SystemException
tpc
- The transaction propagation context for the transaction.
RemoteException
SecurityException
IllegalStateException
SystemException
public void setRollbackOnly(Object tpc) throws RemoteException, IllegalStateException, SystemException
tpc
- The transaction propagation context for the transaction.
RemoteException
IllegalStateException
SystemException
public int getStatus(Object tpc) throws RemoteException, SystemException
tpc
- The transaction propagation context for the transaction.
RemoteException
SystemException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |