|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.console.ui.views.properties.FakeUserTransaction
public class FakeUserTransaction
Constructor Summary | |
---|---|
FakeUserTransaction()
|
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 |
setTransactionTimeout(int p0)
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 FakeUserTransaction()
Method Detail |
---|
public void begin() throws TransactionException
UserTransaction
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 commit() throws TransactionException
UserTransaction
commit
in interface UserTransaction
TransactionException
public java.lang.Object getSource() throws TransactionException
UserTransaction
getSource
in interface UserTransaction
TransactionException
public int getStatus() throws TransactionException
UserTransaction
getStatus
in interface UserTransaction
TransactionException
public void rollback() throws TransactionException
UserTransaction
rollback
in interface UserTransaction
TransactionException
public void setRollbackOnly() throws TransactionException
UserTransaction
setRollbackOnly
in interface UserTransaction
TransactionException
public void setTransactionTimeout(int p0) throws TransactionException
UserTransaction
setTransactionTimeout
in interface UserTransaction
p0
- The value of the timeout in seconds. If the value is
zero, the transaction service restores the default value.
TransactionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |