|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.common.transaction.manager.SimpleUserTransaction
public class SimpleUserTransaction
| Constructor Summary | |
|---|---|
SimpleUserTransaction()
|
|
SimpleUserTransaction(java.lang.Object source)
|
|
| Method Summary | |
|---|---|
void |
begin()
Create a new transaction and associate it with this object. |
void |
commit()
Complete the transaction associated with this object. |
java.lang.Object |
getSource()
Return the (optional) reference to the object that is considered the source of the transaction represented by this object. |
int |
getStatus()
Obtain the status of the transaction represented by this object. |
void |
rollback()
Roll back the transaction associated with this object. |
void |
setRollbackOnly()
Modify the transaction associated with this object such that the only possible outcome of the transaction is to roll back the transaction. |
void |
setSource(java.lang.Object source)
|
void |
setTransactionTimeout(int seconds)
Modify the value of the timeout value that is associated with the transactions represented by this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleUserTransaction()
public SimpleUserTransaction(java.lang.Object source)
| Method Detail |
|---|
public void setSource(java.lang.Object source)
public int getStatus()
throws TransactionException
getStatus in interface UserTransactionTransactionException
public void begin()
throws TransactionException
begin in interface UserTransactionTransactionNotSupportedException - if the current thread is already
associated with a transaction and the manager does not support
nested system transactions.
TransactionException
public void setTransactionTimeout(int seconds)
throws TransactionException
setTransactionTimeout in interface UserTransactionseconds - The value of the timeout in seconds. If the value is
zero, the transaction service restores the default value.
java.lang.IllegalStateException - Thrown if this object is not associated with a transaction
TransactionException
public void setRollbackOnly()
throws TransactionException
setRollbackOnly in interface UserTransactionjava.lang.IllegalStateException - Thrown if this object is not
associated with a transaction.
TransactionException
public void commit()
throws TransactionException
commit in interface UserTransactionjava.lang.IllegalStateException - Thrown if this object is not
associated with a transaction.
TransactionException
public void rollback()
throws TransactionException
rollback in interface UserTransactionjava.lang.IllegalStateException - Thrown if this object is not
associated with a transaction.
TransactionException
public java.lang.Object getSource()
throws TransactionException
getSource in interface UserTransactionTransactionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||