javax.transaction
Interface UserTransaction

All Known Implementing Classes:
UserTransactionImpl, UserTransactionProxy

public interface UserTransaction

The user 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
 void rollback()
          Rolls the transaction back
 void setRollbackOnly()
          Marks the transaction as rollback only.
 void setTransactionTimeout(int seconds)
          Sets the transaction's timeout.
 

Method Detail

setTransactionTimeout

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

Throws:
SystemException

getStatus

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

Throws:
SystemException

setRollbackOnly

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

Throws:
java.lang.IllegalStateException
SystemException

begin

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

Throws:
NotSupportedException
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