Deprecated
| Modifier and Type | Field and Description |
|---|---|
| pack-priv TransactionImpl | tx
Deprecated
as a consequence of
TransactionImpl being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | begin()
Implements jakarta. |
| public void | commit()
Implements jakarta. |
| private void | |
| public Connection | |
| public int | getStatus()
Implements jakarta. |
| public Transaction | getTransaction()
Implements jakarta. |
| public boolean | |
| public void | resume(Transaction
The transaction)Transaction object that represents the
transaction to be resumed.Implements jakarta. |
| public void | rollback()
Implements jakarta. |
| public void | setRollbackOnly()
Implements jakarta. |
| 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. i)Implements jakarta. |
| public Transaction | suspend()
Implements jakarta. |
| tx | back to summary |
|---|---|
| pack-priv TransactionImpl tx
Deprecated as a consequence of | |
| TransactionManagerImpl | back to summary |
|---|---|
| public TransactionManagerImpl() | |
| begin | back to summary |
|---|---|
| public void begin() throws NotSupportedException, SystemException Implements jakarta. Doc from jakarta. 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 Implements jakarta. Doc from jakarta. Complete the transaction associated with the current thread. When this method completes, the thread is no longer associated with a transaction.
| |
| debug | back to summary |
|---|---|
| private void debug(String s) | |
| getConnection | back to summary |
|---|---|
| public Connection getConnection(DataSourceImpl ds, String user, String password) throws SQLException | |
| getStatus | back to summary |
|---|---|
| public int getStatus() throws SystemException Implements jakarta. Doc from jakarta. Obtain the status of the transaction associated with the current thread.
| |
| getTransaction | back to summary |
|---|---|
| public Transaction getTransaction() throws SystemException Implements jakarta. Doc from jakarta. Get the transaction object that represents the transaction context of the calling thread.
| |
| isTransactionActive | back to summary |
|---|---|
| public boolean isTransactionActive() | |
| resume | back to summary |
|---|---|
| public void resume(Transaction transaction) throws InvalidTransactionException, IllegalStateException, SystemException Implements jakarta. Doc from jakarta. Resume the transaction context association of the calling thread with the transaction represented by the supplied Transaction object. When this method returns, the calling thread is associated with the transaction context specified.
| |
| rollback | back to summary |
|---|---|
| public void rollback() throws IllegalStateException, SecurityException, SystemException Implements jakarta. Doc from jakarta. 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 Implements jakarta. Doc from jakarta. 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 i) throws SystemException Implements jakarta. Doc from jakarta. 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.
| |
| suspend | back to summary |
|---|---|
| public Transaction suspend() throws SystemException Implements jakarta. Doc from jakarta. Suspend the transaction currently associated with the calling thread and return a Transaction object that represents the transaction context being suspended. If the calling thread is not associated with a transaction, the method returns a null object reference. When this method returns, the calling thread is not associated with a transaction.
| |