|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionManager
The app server transaction interface. Transactions are normally associated with a single thread.
Method Summary | |
---|---|
void |
begin()
Start the transaction. |
void |
commit()
Commits the transaction |
int |
getStatus()
Gets the transaction's status |
Transaction |
getTransaction()
Returns the current transaction. |
void |
resume(Transaction transaction)
Resume a transaction. |
void |
rollback()
Rolls the transaction back |
void |
setRollbackOnly()
Marks the transaction as rollback only. |
void |
setTransactionTimeout(int seconds)
Sets the transaction's timeout. |
Transaction |
suspend()
Suspends the transaction. |
Method Detail |
---|
void setTransactionTimeout(int seconds) throws SystemException
SystemException
Transaction getTransaction() throws SystemException
SystemException
int getStatus() throws SystemException
SystemException
void begin() throws NotSupportedException, SystemException
NotSupportedException
SystemException
Transaction suspend() throws SystemException
SystemException
void resume(Transaction transaction) throws java.lang.IllegalStateException, InvalidTransactionException, SystemException
java.lang.IllegalStateException
InvalidTransactionException
SystemException
void setRollbackOnly() throws java.lang.IllegalStateException, SystemException
java.lang.IllegalStateException
SystemException
void commit() throws java.lang.IllegalStateException, RollbackException, HeuristicMixedException, HeuristicRollbackException, java.lang.SecurityException, SystemException
java.lang.IllegalStateException
RollbackException
HeuristicMixedException
HeuristicRollbackException
java.lang.SecurityException
SystemException
void rollback() throws java.lang.IllegalStateException, java.lang.SecurityException, SystemException
java.lang.IllegalStateException
java.lang.SecurityException
SystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |