|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.tm.usertx.server.UserTransactionSessionImpl
A UserTransaction session implementation. It handles transactions on behalf of a single client.
Constructor Summary | |
UserTransactionSessionImpl()
|
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. |
static UserTransactionSession |
getInstance()
|
int |
getStatus(Object tpc)
Return status of the transaction. |
protected static org.jboss.tm.TransactionPropagationContextFactory |
getTPCFactory()
Get a reference to the TPC Factory |
protected static TransactionManager |
getTransactionManager()
Get a reference to the transaction manager. |
void |
rollback(Object tpc)
Rollback the transaction. |
void |
setRollbackOnly(Object tpc)
Mark the transaction for rollback only. |
void |
unreferenced()
When no longer referenced, be sure to rollback any transactions that are still active. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserTransactionSessionImpl()
Method Detail |
public static UserTransactionSession getInstance()
protected static TransactionManager getTransactionManager()
protected static org.jboss.tm.TransactionPropagationContextFactory getTPCFactory()
public void destroy() throws RemoteException
destroy
in interface UserTransactionSession
RemoteException
public Object begin(int timeout) throws RemoteException, NotSupportedException, SystemException
begin
in interface UserTransactionSession
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
commit
in interface UserTransactionSession
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
rollback
in interface UserTransactionSession
tpc
- The transaction propagation context for the transaction.
RemoteException
SecurityException
IllegalStateException
SystemException
public void setRollbackOnly(Object tpc) throws RemoteException, IllegalStateException, SystemException
setRollbackOnly
in interface UserTransactionSession
tpc
- The transaction propagation context for the transaction.
RemoteException
IllegalStateException
SystemException
public int getStatus(Object tpc) throws RemoteException, SystemException
getStatus
in interface UserTransactionSession
tpc
- The transaction propagation context for the transaction.
RemoteException
SystemException
public void unreferenced()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |