org.openorb.ots.jta

Class TransactionManager

public class TransactionManager extends Object implements TransactionManager

This class is an adaptator between the JTA API and the OTS API. This class is used to manage transactions, all invocations are transmit to an OTS implementation.
Constructor Summary
TransactionManager(ORB orb, POA poa, Logger logger)
Constructor.
Method Summary
voidbegin()
Create a new transaction
voidcommit()
Commit the current transaction
intgetStatus()
Return the transaction status.
TransactiongetTransaction()
Return the current transaction object.
voidresume(Transaction t)
Resume a suspended transaction.
voidrollback()
Rollback a transaction
voidsetRollbackOnly()
Set the current transaction to be only rolledback
voidsetTransactionTimeout(int seconds)
Set the transaction timeout.
Transactionsuspend()
Suspend the current transaction

Constructor Detail

TransactionManager

public TransactionManager(ORB orb, POA poa, Logger logger)
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.

getTransaction

public Transaction getTransaction()
Return the current transaction object.

resume

public void resume(Transaction t)
Resume a suspended transaction.

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.

suspend

public Transaction suspend()
Suspend the current transaction