]
The UserTransaction interface defines the methods that allow an
application to explicitly manage transaction boundaries.
| Method from javax.transaction.UserTransaction Detail: |
public void begin() throws SystemException, NotSupportedException
Create a new transaction and associate it with the current thread. |
public void commit() throws SystemException, SecurityException, RollbackException, IllegalStateException, HeuristicRollbackException, HeuristicMixedException
Complete the transaction associated with the current thread. When this
method completes, the thread is no longer associated with a transaction. |
public int getStatus() throws SystemException
Obtain the status of the transaction associated with the current thread. |
public void rollback() throws SystemException, SecurityException, IllegalStateException
Roll back the transaction associated with the current thread. When this
method completes, the thread is no longer associated with a transaction. |
public void setRollbackOnly() throws SystemException, IllegalStateException
Modify the transaction associated with the current thread such that
the only possible outcome of the transaction is to roll back the
transaction. |
public void setTransactionTimeout(int seconds) throws SystemException
Modify the timeout value that is associated with transactions started
by the current thread with the begin method.
If an application has not called this method, the transaction
service uses some default value for the transaction timeout. |