org.jboss.tm.usertx.interfaces
Interface UserTransactionSession

All Superinterfaces:
Remote
All Known Implementing Classes:
UserTransactionSessionImpl

public interface UserTransactionSession
extends Remote

The RMI remote UserTransaction session interface.

Version:
$Revision: 1.2 $
Author:
Ole Husgaard

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

destroy

public void destroy()
             throws RemoteException
Destroy this session.

Throws:
RemoteException

begin

public Object begin(int timeout)
             throws RemoteException,
                    NotSupportedException,
                    SystemException
Start a new transaction, and return its TPC.

Parameters:
timeout - The timeout value for the new transaction, in seconds.
Returns:
The transaction propagation context for the new transaction.
Throws:
RemoteException
NotSupportedException
SystemException

commit

public void commit(Object tpc)
            throws RemoteException,
                   RollbackException,
                   HeuristicMixedException,
                   HeuristicRollbackException,
                   SecurityException,
                   IllegalStateException,
                   SystemException
Commit the transaction.

Parameters:
tpc - The transaction propagation context for the transaction.
Throws:
RemoteException
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException

rollback

public void rollback(Object tpc)
              throws RemoteException,
                     SecurityException,
                     IllegalStateException,
                     SystemException
Rollback the transaction.

Parameters:
tpc - The transaction propagation context for the transaction.
Throws:
RemoteException
SecurityException
IllegalStateException
SystemException

setRollbackOnly

public void setRollbackOnly(Object tpc)
                     throws RemoteException,
                            IllegalStateException,
                            SystemException
Mark the transaction for rollback only.

Parameters:
tpc - The transaction propagation context for the transaction.
Throws:
RemoteException
IllegalStateException
SystemException

getStatus

public int getStatus(Object tpc)
              throws RemoteException,
                     SystemException
Return status of the transaction.

Parameters:
tpc - The transaction propagation context for the transaction.
Throws:
RemoteException
SystemException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.