public interface UserTransactionServer extends Remote
| Modifier and Type | Method and Description |
|---|---|
String |
begin(int timeout)
Create a new transaction.
|
void |
commit(String tid)
Commit the transaction.
|
int |
getStatus(String tid)
Get the status of the transaction.
|
void |
rollback(String tid)
Rollback the transaction.
|
void |
setRollbackOnly(String tid)
Mark the transaction for rollback only.
|
String begin(int timeout) throws RemoteException, SystemException, NotSupportedException
timeout - The timeout setting of the client UserTx.RemoteExceptionSystemExceptionNotSupportedExceptionvoid commit(String tid) throws RemoteException, RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
tid - The tid of the tx to commit.RemoteExceptionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionvoid rollback(String tid) throws RemoteException, IllegalStateException, SecurityException, SystemException
tid - The tid of the transaction to rollback.RemoteExceptionIllegalStateExceptionSecurityExceptionSystemExceptionvoid setRollbackOnly(String tid) throws RemoteException, IllegalStateException, SystemException
tid - The tid of the transaction to mark.RemoteExceptionIllegalStateExceptionSystemExceptionint getStatus(String tid) throws RemoteException, SystemException
tid - The tid.RemoteExceptionSystemExceptionCopyright © 2016. All Rights Reserved.