|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arjuna.mw.wst.UserTransaction
This is the interface that allows transactions to be started and terminated. The messaging layer converts the Commit, Rollback and Notify messages into calls on this. Importantly, a UserTransaction does not represent a specific transaction, but rather is responsible for providing access to an implicit per-thread transaction context; it is similar to the UserTransaction in the JTA specification. Therefore, all of the UserTransaction methods implicitly act on the current thread of control.
Constructor Summary | |
UserTransaction()
|
Method Summary | |
abstract void |
begin()
Start a new transaction. |
abstract void |
begin(int timeout)
Start a new transaction with the specified timeout as its lifetime. |
abstract void |
commit()
The transaction is committed by the commit method. |
static UserTransaction |
getUserTransaction()
Get the user transaction. |
abstract void |
rollback()
The rollback operation will terminate the transaction and return normally if it succeeded, while throwing an appropriate exception if it didn't. |
static void |
setUserTransaction(UserTransaction userTransaction)
Set the user transaction. |
abstract java.lang.String |
transactionIdentifier()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserTransaction()
Method Detail |
public static UserTransaction getUserTransaction()
public static void setUserTransaction(UserTransaction userTransaction)
userTransaction
- The user transaction.public abstract void begin() throws WrongStateException, SystemException
WrongStateException
SystemException
public abstract void begin(int timeout) throws WrongStateException, SystemException
WrongStateException
SystemException
public abstract void commit() throws TransactionRolledBackException, UnknownTransactionException, java.lang.SecurityException, SystemException
TransactionRolledBackException
UnknownTransactionException
java.lang.SecurityException
SystemException
public abstract void rollback() throws UnknownTransactionException, java.lang.SecurityException, SystemException
UnknownTransactionException
java.lang.SecurityException
SystemException
public abstract java.lang.String transactionIdentifier()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |