Package org.apache.cayenne.graph
Class ChildDiffLoader
java.lang.Object
org.apache.cayenne.graph.ChildDiffLoader
- All Implemented Interfaces:
- GraphChangeHandler
public class ChildDiffLoader extends Object implements GraphChangeHandler
A GraphChangeHandler that loads child ObjectContext diffs into a parent
 ObjectContext. Graph node ids are expected to be ObjectIds. This class is
 made public since 3.0 to be used in ObjectContext synchronizing
- Since:
- 1.2
- 
Field SummaryFields Modifier and Type Field Description protected ObjectContextcontext
- 
Constructor SummaryConstructors Constructor Description ChildDiffLoader(ObjectContext context)
- 
Method SummaryModifier and Type Method Description voidarcCreated(Object nodeId, Object targetNodeId, Object arcId)Notifies implementing object that a new arc was created between two nodes.voidarcDeleted(Object nodeId, Object targetNodeId, Object arcId)Notifies implementing object that an arc between two nodes was deleted.protected PersistentfindObject(Object nodeId)protected PersistentfindObjectInCollection(Object nodeId, Object toManyHolder)static booleanisProcessingChildDiff()Returns whether child diff processing is in progress.voidnodeCreated(Object nodeId)Notifies implementing object that a new node was created in the graph.voidnodeIdChanged(Object nodeId, Object newId)Notifies implementing object that a node was assigned a new id.voidnodePropertyChanged(Object nodeId, String property, Object oldValue, Object newValue)Notifies implementing object that a node's property was modified.voidnodeRemoved(Object nodeId)Notifies implementing object that a node was removed from the graph.static voidsetExternalChange(Boolean flag)Sets whether child diff processing is in progress.
- 
Field Details- 
context
 
- 
- 
Constructor Details- 
ChildDiffLoader
 
- 
- 
Method Details- 
isProcessingChildDiffpublic static boolean isProcessingChildDiff()Returns whether child diff processing is in progress.- Since:
- 3.0
 
- 
setExternalChangeSets whether child diff processing is in progress.- Since:
- 3.0
 
- 
nodeIdChangedDescription copied from interface:GraphChangeHandlerNotifies implementing object that a node was assigned a new id.- Specified by:
- nodeIdChangedin interface- GraphChangeHandler
 
- 
nodeCreatedDescription copied from interface:GraphChangeHandlerNotifies implementing object that a new node was created in the graph.- Specified by:
- nodeCreatedin interface- GraphChangeHandler
 
- 
nodeRemovedDescription copied from interface:GraphChangeHandlerNotifies implementing object that a node was removed from the graph.- Specified by:
- nodeRemovedin interface- GraphChangeHandler
 
- 
nodePropertyChangedDescription copied from interface:GraphChangeHandlerNotifies implementing object that a node's property was modified.- Specified by:
- nodePropertyChangedin interface- GraphChangeHandler
 
- 
arcCreatedDescription copied from interface:GraphChangeHandlerNotifies implementing object that a new arc was created between two nodes.- Specified by:
- arcCreatedin interface- GraphChangeHandler
 
- 
arcDeletedDescription copied from interface:GraphChangeHandlerNotifies implementing object that an arc between two nodes was deleted.- Specified by:
- arcDeletedin interface- GraphChangeHandler
 
- 
findObject
- 
findObjectInCollection
 
-