|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openorb.ots.jta.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(org.omg.CORBA.ORB orb,
org.omg.PortableServer.POA poa,
Logger logger)
Constructor. |
Method Summary | |
void |
begin()
Create a new transaction |
void |
commit()
Commit the current transaction |
int |
getStatus()
Return the transaction status. |
javax.transaction.Transaction |
getTransaction()
Return the current transaction object. |
void |
resume(javax.transaction.Transaction t)
Resume a suspended transaction. |
void |
rollback()
Rollback a transaction |
void |
setRollbackOnly()
Set the current transaction to be only rolledback |
void |
setTransactionTimeout(int seconds)
Set the transaction timeout. |
javax.transaction.Transaction |
suspend()
Suspend the current transaction |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransactionManager(org.omg.CORBA.ORB orb, org.omg.PortableServer.POA poa, Logger logger)
Method Detail |
public void begin() throws javax.transaction.NotSupportedException, javax.transaction.SystemException
javax.transaction.NotSupportedException
javax.transaction.SystemException
public void commit() throws javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, java.lang.SecurityException, java.lang.IllegalStateException, javax.transaction.SystemException
javax.transaction.RollbackException
javax.transaction.HeuristicMixedException
javax.transaction.HeuristicRollbackException
java.lang.SecurityException
java.lang.IllegalStateException
javax.transaction.SystemException
public int getStatus() throws javax.transaction.SystemException
javax.transaction.SystemException
public javax.transaction.Transaction getTransaction() throws javax.transaction.SystemException
javax.transaction.SystemException
public void resume(javax.transaction.Transaction t) throws javax.transaction.InvalidTransactionException, java.lang.IllegalStateException, javax.transaction.SystemException
javax.transaction.InvalidTransactionException
java.lang.IllegalStateException
javax.transaction.SystemException
public void rollback() throws java.lang.IllegalStateException, java.lang.SecurityException, javax.transaction.SystemException
java.lang.IllegalStateException
java.lang.SecurityException
javax.transaction.SystemException
public void setRollbackOnly() throws java.lang.IllegalStateException, javax.transaction.SystemException
java.lang.IllegalStateException
javax.transaction.SystemException
public void setTransactionTimeout(int seconds) throws javax.transaction.SystemException
javax.transaction.SystemException
public javax.transaction.Transaction suspend() throws javax.transaction.SystemException
javax.transaction.SystemException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |