| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public int | Returns: The transaction status. If no transaction is associated with the current thread, this method returns the Status.NoTransaction value.Obtain the status of the transaction associated with the current thread. |
| public void | |
| public void | setRollbackOnly()
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
The value of the timeout in seconds. If the value is zero,
the transaction service restores the default value. If the value
is negative a SystemException is thrown. seconds)Modify the timeout value that is associated with transactions started by the current thread with the begin method. |
| begin | back to summary |
|---|---|
| public void begin() throws NotSupportedException, SystemException Create a new transaction and associate it with the current thread.
| |
| commit | back to summary |
|---|---|
| public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException Complete the transaction associated with the current thread. When this method completes, the thread is no longer associated with a transaction.
| |
| getStatus | back to summary |
|---|---|
| public int getStatus() throws SystemException Obtain the status of the transaction associated with the current thread.
| |
| rollback | back to summary |
|---|---|
| public void rollback() throws IllegalStateException, SecurityException, SystemException Roll back the transaction associated with the current thread. When this method completes, the thread is no longer associated with a transaction.
| |
| setRollbackOnly | back to summary |
|---|---|
| public void setRollbackOnly() throws IllegalStateException, SystemException Modify the transaction associated with the current thread such that the only possible outcome of the transaction is to roll back the transaction.
| |
| setTransactionTimeout | back to summary |
|---|---|
| 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.
| |