|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NakedObjectTransactionManager
| Method Summary | ||
|---|---|---|
void |
abortTransaction()
|
|
void |
debugData(DebugString debug)
|
|
void |
endTransaction()
Ends the transaction if nesting level is 0. |
|
void |
executeWithinTransaction(TransactionalClosure closure)
Run the supplied block of code (closure) in a transaction. |
|
|
executeWithinTransaction(TransactionalClosureWithReturn<T> closure)
Run the supplied block of code (closure) in a transaction. |
|
boolean |
flushTransaction()
|
|
NakedObjectSession |
getSession()
The owning NakedObjectSession. |
|
NakedObjectTransaction |
getTransaction()
The current transaction, if any. |
|
void |
startTransaction()
|
|
| Methods inherited from interface org.nakedobjects.metamodel.commons.component.SessionScopedComponent |
|---|
close, open |
| Methods inherited from interface org.nakedobjects.metamodel.commons.component.Injectable |
|---|
injectInto |
| Method Detail |
|---|
NakedObjectSession getSession()
void startTransaction()
boolean flushTransaction()
void abortTransaction()
void endTransaction()
NakedObjectTransaction getTransaction()
void executeWithinTransaction(TransactionalClosure closure)
block of code (closure) in a transaction.
If a transaction is in progress, then
uses that. Otherwise will start a transaction before
running the block and commit it at the end. If the
closure throws an exception, then will abort the transaction.
<T> T executeWithinTransaction(TransactionalClosureWithReturn<T> closure)
block of code (closure) in a transaction.
If a transaction is in progress, then
uses that. Otherwise will start a transaction before
running the block and commit it at the end. If the
closure throws an exception, then will abort the transaction.
void debugData(DebugString debug)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||