|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserTransaction
| 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 seconds)
Modify the value of the timeout value that is associated with the transactions represented by this object. |
| Method Detail |
|---|
int getStatus()
throws TransactionException
TransactionException
void begin()
throws TransactionException
TransactionNotSupportedException - if the current thread is already
associated with a transaction and the manager does not support
nested system transactions.
TransactionException
void setTransactionTimeout(int seconds)
throws TransactionException
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
void setRollbackOnly()
throws TransactionException
java.lang.IllegalStateException - Thrown if this object is not
associated with a transaction.
TransactionException
void commit()
throws TransactionException
java.lang.IllegalStateException - Thrown if this object is not
associated with a transaction.
TransactionException
void rollback()
throws TransactionException
java.lang.IllegalStateException - Thrown if this object is not
associated with a transaction.
TransactionException
java.lang.Object getSource()
throws TransactionException
TransactionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||