|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstory.dbcore.admin.HistoryFrame
public class HistoryFrame
A History frame object encapsulates a particular state of the db-core by storing all the commands required to rebuild a Document from scratch. Used for implementing undo and redo.
| Constructor Summary | |
|---|---|
HistoryFrame(HistoryFrameID HFID,
DocumentID docID)
Constructor for STATELESS MODE markers. |
|
HistoryFrame(HistoryFrameID HFID,
DocumentID docID,
Executable executable,
Executable undoSequence)
Constructor for normal frames. |
|
| Method Summary | |
|---|---|
DocumentID |
getDocument()
Retrieve the ID of the Document the frame has recorded. |
Executable |
getExecutable()
Retrieve the most recently issued Executable. |
HistoryFrameID |
getID()
Retrieve the ID of the HistoryFrame |
Executable |
getUndoSequence()
Return the Executable to reverse the effects of the most recently issued Executable. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HistoryFrame(HistoryFrameID HFID,
DocumentID docID)
throws Scheherexception
Scheherexception
public HistoryFrame(HistoryFrameID HFID,
DocumentID docID,
Executable executable,
Executable undoSequence)
throws Scheherexception
docID - The ID of the Document the frame records.executable - The most recent executable issued. This is akin to
a "tag" and not a part of the history proper.memento - A CommandSequence of commands that would reconstruct the Document from scratch.
Scheherexception| Method Detail |
|---|
public HistoryFrameID getID()
public DocumentID getDocument()
public Executable getExecutable()
public Executable getUndoSequence()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||