org.openorb.ots.jta

Class UserTransaction

public class UserTransaction extends Object implements UserTransaction

This class provides the UserTransaction interface implementation. It transmits all invocations to the transaction manager.

Author: Jerome Daniel

Constructor Summary
UserTransaction(TransactionManager manager)
Constructor
Method Summary
voidbegin()
Create a new transaction
voidcommit()
Commit the current transaction
intgetStatus()
Return the transaction status.
voidrollback()
Rollback a transaction
voidsetRollbackOnly()
Set the current transaction to be only rolledback
voidsetTransactionTimeout(int seconds)
Set the transaction timeout.

Constructor Detail

UserTransaction

public UserTransaction(TransactionManager manager)
Constructor

Method Detail

begin

public void begin()
Create a new transaction

commit

public void commit()
Commit the current transaction

getStatus

public int getStatus()
Return the transaction status.

rollback

public void rollback()
Rollback a transaction

setRollbackOnly

public void setRollbackOnly()
Set the current transaction to be only rolledback

setTransactionTimeout

public void setTransactionTimeout(int seconds)
Set the transaction timeout.