|
|||||||||||
| PREV CLASS 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 | |
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 UserTransactionSessionRemoteExceptionpublic Object begin(int timeout) throws RemoteException, NotSupportedException, SystemException
begin in interface UserTransactionSessiontimeout - The timeout value for the new transaction, in seconds.
RemoteException
NotSupportedException
SystemExceptionpublic void commit(Object tpc) throws RemoteException, RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
commit in interface UserTransactionSessiontpc - The transaction propagation context for the transaction.
RemoteException
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemExceptionpublic void rollback(Object tpc) throws RemoteException, SecurityException, IllegalStateException, SystemException
rollback in interface UserTransactionSessiontpc - The transaction propagation context for the transaction.
RemoteException
SecurityException
IllegalStateException
SystemExceptionpublic void setRollbackOnly(Object tpc) throws RemoteException, IllegalStateException, SystemException
setRollbackOnly in interface UserTransactionSessiontpc - The transaction propagation context for the transaction.
RemoteException
IllegalStateException
SystemExceptionpublic int getStatus(Object tpc) throws RemoteException, SystemException
getStatus in interface UserTransactionSessiontpc - The transaction propagation context for the transaction.
RemoteException
SystemExceptionpublic void unreferenced()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||