|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 UserTransaction
TransactionException
public void begin() throws TransactionException
begin
in interface UserTransaction
TransactionNotSupportedException
- 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 UserTransaction
seconds
- 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 UserTransaction
java.lang.IllegalStateException
- Thrown if this object is not
associated with a transaction.
TransactionException
public void commit() throws TransactionException
commit
in interface UserTransaction
java.lang.IllegalStateException
- Thrown if this object is not
associated with a transaction.
TransactionException
public void rollback() throws TransactionException
rollback
in interface UserTransaction
java.lang.IllegalStateException
- Thrown if this object is not
associated with a transaction.
TransactionException
public java.lang.Object getSource() throws TransactionException
getSource
in interface UserTransaction
TransactionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |