|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface TransactionManagerAdapter
We have this interface so that we do not try to load the Java EE UserTransaction in an SE environment
| Method Summary | |
|---|---|
void |
begin()
Create a new transaction and associate it with the current thread. |
void |
commit()
Complete the transaction associated with the current thread. |
int |
getStatus()
Obtain the status of the transaction associated with the current thread. |
void |
rollback()
Roll back the transaction associated with the current thread. |
void |
setRollbackOnly()
Modify the transaction associated with the current thread such that the only possible outcome of the transaction is to roll back the transaction. |
void |
setTransactionTimeout(int arg0)
Modify the value of the timeout value that is associated with the transactions started by the current thread with the begin method. |
| Method Detail |
|---|
void begin()
throws Exception
Exception - Thrown if the transaction
manager encounters an unexpected error condition.
void commit()
throws Exception
Exception - Thrown if the transaction
manager encounters an unexpected error condition.
int getStatus()
throws Exception
Exception - Thrown if the transaction
manager encounters an unexpected error condition.
void rollback()
throws Exception
Exception - Thrown if the transaction manager
encounters an unexpected error condition.
void setRollbackOnly()
throws Exception
Exception - Thrown if the transaction manager
encounters an unexpected error condition.
void setTransactionTimeout(int arg0)
throws Exception
arg0 - seconds - The value of the timeout
in seconds. If the value is zero, the transaction
service restores the default value.
Exception - Thrown if the transaction manager
encounters an unexpected error condition.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||