|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.tm.usertx.server.UserTransactionSessionImpl
A UserTransaction session implementation. It handles transactions on behalf of a single client.
Constructor Summary | |
UserTransactionSessionImpl()
|
Method Summary | |
java.lang.Object |
begin(int timeout)
Start a new transaction, and return its TPC. |
void |
commit(java.lang.Object tpc)
Commit the transaction. |
void |
destroy()
Destroy this session. |
static UserTransactionSession (src) |
getInstance()
|
int |
getStatus(java.lang.Object tpc)
Return status of the transaction. |
protected static TransactionPropagationContextFactory (src) |
getTPCFactory()
Get a reference to the TPC Factory |
protected static TransactionManager (src) |
getTransactionManager()
Get a reference to the transaction manager. |
void |
rollback(java.lang.Object tpc)
Rollback the transaction. |
void |
setRollbackOnly(java.lang.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 (src) getInstance()
protected static TransactionManager (src) getTransactionManager()
protected static TransactionPropagationContextFactory (src) getTPCFactory()
public void destroy() throws java.rmi.RemoteException
destroy
in interface UserTransactionSession (src)
java.rmi.RemoteException
public java.lang.Object begin(int timeout) throws java.rmi.RemoteException, NotSupportedException (src) , SystemException (src)
begin
in interface UserTransactionSession (src)
timeout
- The timeout value for the new transaction, in seconds.
java.rmi.RemoteException
NotSupportedException (src)
SystemException (src)
public void commit(java.lang.Object tpc) throws java.rmi.RemoteException, RollbackException (src) , HeuristicMixedException (src) , HeuristicRollbackException (src) , java.lang.SecurityException, java.lang.IllegalStateException, SystemException (src)
commit
in interface UserTransactionSession (src)
tpc
- The transaction propagation context for the transaction.
java.rmi.RemoteException
RollbackException (src)
HeuristicMixedException (src)
HeuristicRollbackException (src)
java.lang.SecurityException
java.lang.IllegalStateException
SystemException (src)
public void rollback(java.lang.Object tpc) throws java.rmi.RemoteException, java.lang.SecurityException, java.lang.IllegalStateException, SystemException (src)
rollback
in interface UserTransactionSession (src)
tpc
- The transaction propagation context for the transaction.
java.rmi.RemoteException
java.lang.SecurityException
java.lang.IllegalStateException
SystemException (src)
public void setRollbackOnly(java.lang.Object tpc) throws java.rmi.RemoteException, java.lang.IllegalStateException, SystemException (src)
setRollbackOnly
in interface UserTransactionSession (src)
tpc
- The transaction propagation context for the transaction.
java.rmi.RemoteException
java.lang.IllegalStateException
SystemException (src)
public int getStatus(java.lang.Object tpc) throws java.rmi.RemoteException, SystemException (src)
getStatus
in interface UserTransactionSession (src)
tpc
- The transaction propagation context for the transaction.
java.rmi.RemoteException
SystemException (src)
public void unreferenced()
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |