|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The type of object used to represent the transactionpublic interface TransactionManager<T>
Interface towards a mechanism that manages transactions
Typically, this will involve opening database transactions or connecting to external systems.
| Method Summary | |
|---|---|
void |
commitTransaction(T transactionStatus)
Commits the transaction identifier by given transactionStatus. |
void |
rollbackTransaction(T transactionStatus)
Rolls back the transaction identifier by given transactionStatus. |
T |
startTransaction()
Starts a transaction. |
| Method Detail |
|---|
T startTransaction()
commitTransaction(Object) or rollbackTransaction(Object).
The returned object must never be null if a transaction was successfully created.
void commitTransaction(T transactionStatus)
transactionStatus.
transactionStatus - The status object provided by startTransaction().void rollbackTransaction(T transactionStatus)
transactionStatus.
transactionStatus - The status object provided by startTransaction().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||