|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserTransactionSession
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 |
---|
void destroy() throws RemoteException
RemoteException
Object begin(int timeout) throws RemoteException, NotSupportedException, SystemException
timeout
- The timeout value for the new transaction, in seconds.
RemoteException
NotSupportedException
SystemException
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
void rollback(Object tpc) throws RemoteException, SecurityException, IllegalStateException, SystemException
tpc
- The transaction propagation context for the transaction.
RemoteException
SecurityException
IllegalStateException
SystemException
void setRollbackOnly(Object tpc) throws RemoteException, IllegalStateException, SystemException
tpc
- The transaction propagation context for the transaction.
RemoteException
IllegalStateException
SystemException
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 |