|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITransactionManager
Interface to access pds transactions.
Method Summary | |
---|---|
void |
addTransactionListener(ITransactionListener listener)
Adds a transaction listener |
ITransaction |
begin(boolean unbounded)
Begins a new transaction |
void |
commit()
Commits the current transaction |
ITransaction |
current()
Returns the current transaction associated with this thread. |
void |
removeTransactionListener(ITransactionListener listener)
Removes a transaction listener |
void |
rollback()
Rollback the current transaction |
Method Detail |
---|
ITransaction current()
ITransaction begin(boolean unbounded) throws IllegalStateException
unbounded
- true
if an unbounded transaction will be created
IllegalStateException
- thrown if there is an active transaction associated with this threadvoid commit() throws IllegalStateException
IllegalStateException
- thrown if there is no active transaction or if there was a problem while commitingvoid rollback() throws IllegalStateException
IllegalStateException
- thrown if there is no active transaction or if there was a problem while rolling backvoid addTransactionListener(ITransactionListener listener)
listener
- void removeTransactionListener(ITransactionListener listener)
listener
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |