|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.state.ChangeLog
Registers changes made to states and references and consolidates empty changes.
Constructor Summary | |
ChangeLog()
|
Method Summary | |
void |
added(ItemState state)
A state has been added |
Iterator |
addedStates()
Return an iterator over all added states. |
void |
deleted(ItemState state)
A state has been deleted. |
Iterator |
deletedStates()
Return an iterator over all deleted states. |
void |
disconnect()
Disconnect all states in the change log from their overlaid states. |
ItemState |
get(ItemId id)
Return an item state given its id. |
NodeReferences |
get(NodeReferencesId id)
Return a node references object given its id. |
boolean |
has(ItemId id)
Return a flag indicating whether a given item state exists. |
void |
merge(ChangeLog other)
Merge another change log with this change log |
void |
modified(ItemState state)
A state has been modified. |
void |
modified(NodeReferences refs)
A references has been modified |
Iterator |
modifiedRefs()
Return an iterator over all modified references. |
Iterator |
modifiedStates()
Return an iterator over all modified states. |
void |
persisted()
After the states have actually been persisted, update their internal states and notify listeners. |
void |
push()
Push all states contained in the various maps of items we have. |
void |
reset()
Reset this change log, removing all members inside the maps we built. |
String |
toString()
Returns a string representation of this change log for diagnostic purposes. |
void |
undo(ItemStateManager parent)
Undo changes made to items in the change log. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ChangeLog()
Method Detail |
public void added(ItemState state)
state
- state that has been addedpublic void modified(ItemState state)
state
- state that has been modifiedpublic void deleted(ItemState state)
state
- state that has been deletedpublic void modified(NodeReferences refs)
refs
- refs that has been modifiedpublic ItemState get(ItemId id) throws NoSuchItemStateException
null
if the item state is neither in the added nor in the modified
section. Throws a NoSuchItemStateException
if
the item state is in the deleted section.
null
NoSuchItemStateException
- if the item has been deletedpublic boolean has(ItemId id)
true
if item state exists within this
log; false
otherwisepublic NodeReferences get(NodeReferencesId id)
null
if the node reference is not in the modified
section.
null
public Iterator addedStates()
public Iterator modifiedStates()
public Iterator deletedStates()
public Iterator modifiedRefs()
public void merge(ChangeLog other)
other
- other change logpublic void push()
public void persisted()
public void reset()
public void disconnect()
public void undo(ItemStateManager parent)
parent
- parent manager that will hold current datapublic String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |