|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActionRecordManager
Extends the RecordManager to allow callers to group their RecordManager interface calls into actions. Actions operate in isolation. Each thread has a current action context associated with it. Threads can switch between different action context using set/unsetActionContext calls.
| Field Summary |
|---|
| Fields inherited from interface jdbm.RecordManager |
|---|
NAME_DIRECTORY_ROOT |
| Method Summary | |
|---|---|
void |
abortAction(ActionContext context)
Aborts the given action. |
ActionContext |
beginAction(boolean readOnly,
String whoStarted)
Initializes the context for the action. |
void |
endAction(ActionContext context)
Ends the action associated with the context. |
void |
setCurrentActionContext(ActionContext context)
Set the context as the current action context for the given thread |
void |
unsetCurrentActionContext(ActionContext context)
Unsets the context as the current action context. |
| Methods inherited from interface jdbm.RecordManager |
|---|
close, commit, delete, fetch, fetch, getNamedObject, getRoot, getRootCount, insert, insert, rollback, setNamedObject, setRoot, update, update |
| Method Detail |
|---|
ActionContext beginAction(boolean readOnly,
String whoStarted)
readOnly - true if action does not do any modificationwhoStarted - caller can use this for debugging
void endAction(ActionContext context)
context - identifies the action to endvoid abortAction(ActionContext context)
context - identifies the action to abortvoid setCurrentActionContext(ActionContext context)
context - identifies the contextvoid unsetCurrentActionContext(ActionContext context)
context - identifies the context.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||