|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openorb.ots.jta.UserTransaction
This class provides the UserTransaction interface implementation. It transmits all invocations to the transaction manager.
Constructor Summary | |
UserTransaction(javax.transaction.TransactionManager manager)
Constructor |
Method Summary | |
void |
begin()
Create a new transaction |
void |
commit()
Commit the current transaction |
int |
getStatus()
Return the transaction status. |
void |
rollback()
Rollback a transaction |
void |
setRollbackOnly()
Set the current transaction to be only rolledback |
void |
setTransactionTimeout(int seconds)
Set the transaction timeout. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserTransaction(javax.transaction.TransactionManager manager)
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 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |