javax.transaction
Interface TransactionManager

All Known Implementing Classes:
TransactionManagerImpl, UserTransactionProxy

public interface TransactionManager

The app server transaction interface. Transactions are normally associated with a single thread.


Method Summary
 void begin()
          Start the transaction.
 void commit()
          Commits the transaction
 int getStatus()
          Gets the transaction's status
 Transaction getTransaction()
          Returns the current transaction.
 void resume(Transaction transaction)
          Resume a transaction.
 void rollback()
          Rolls the transaction back
 void setRollbackOnly()
          Marks the transaction as rollback only.
 void setTransactionTimeout(int seconds)
          Sets the transaction's timeout.
 Transaction suspend()
          Suspends the transaction.
 

Method Detail

setTransactionTimeout

void setTransactionTimeout(int seconds)
                           throws SystemException
Sets the transaction's timeout.

Throws:
SystemException

getTransaction

Transaction getTransaction()
                           throws SystemException
Returns the current transaction.

Throws:
SystemException

getStatus

int getStatus()
              throws SystemException
Gets the transaction's status

Throws:
SystemException

begin

void begin()
           throws NotSupportedException,
                  SystemException
Start the transaction.

Throws:
NotSupportedException
SystemException

suspend

Transaction suspend()
                    throws SystemException
Suspends the transaction.

Throws:
SystemException

resume

void resume(Transaction transaction)
            throws java.lang.IllegalStateException,
                   InvalidTransactionException,
                   SystemException
Resume a transaction.

Throws:
java.lang.IllegalStateException
InvalidTransactionException
SystemException

setRollbackOnly

void setRollbackOnly()
                     throws java.lang.IllegalStateException,
                            SystemException
Marks the transaction as rollback only.

Throws:
java.lang.IllegalStateException
SystemException

commit

void commit()
            throws java.lang.IllegalStateException,
                   RollbackException,
                   HeuristicMixedException,
                   HeuristicRollbackException,
                   java.lang.SecurityException,
                   SystemException
Commits the transaction

Throws:
java.lang.IllegalStateException
RollbackException
HeuristicMixedException
HeuristicRollbackException
java.lang.SecurityException
SystemException

rollback

void rollback()
              throws java.lang.IllegalStateException,
                     java.lang.SecurityException,
                     SystemException
Rolls the transaction back

Throws:
java.lang.IllegalStateException
java.lang.SecurityException
SystemException