public class ChildDiffLoader extends Object implements GraphChangeHandler
Modifier and Type | Field and Description |
---|---|
protected ObjectContext |
context |
Constructor and Description |
---|
ChildDiffLoader(ObjectContext context) |
Modifier and Type | Method and Description |
---|---|
void |
arcCreated(Object nodeId,
Object targetNodeId,
Object arcId)
Notifies implementing object that a new arc was created between two nodes.
|
void |
arcDeleted(Object nodeId,
Object targetNodeId,
Object arcId)
Notifies implementing object that an arc between two nodes was deleted.
|
protected Persistent |
findObject(Object nodeId) |
protected Persistent |
findObjectInCollection(Object nodeId,
Object toManyHolder) |
static boolean |
isProcessingChildDiff()
Returns whether child diff processing is in progress.
|
void |
nodeCreated(Object nodeId)
Notifies implementing object that a new node was created in the graph.
|
void |
nodeIdChanged(Object nodeId,
Object newId)
Notifies implementing object that a node was assigned a new id.
|
void |
nodePropertyChanged(Object nodeId,
String property,
Object oldValue,
Object newValue)
Notifies implementing object that a node's property was modified.
|
void |
nodeRemoved(Object nodeId)
Notifies implementing object that a node was removed from the graph.
|
static void |
setExternalChange(Boolean flag)
Sets whether child diff processing is in progress.
|
protected ObjectContext context
public ChildDiffLoader(ObjectContext context)
public static boolean isProcessingChildDiff()
public static void setExternalChange(Boolean flag)
public void nodeIdChanged(Object nodeId, Object newId)
GraphChangeHandler
nodeIdChanged
in interface GraphChangeHandler
public void nodeCreated(Object nodeId)
GraphChangeHandler
nodeCreated
in interface GraphChangeHandler
public void nodeRemoved(Object nodeId)
GraphChangeHandler
nodeRemoved
in interface GraphChangeHandler
public void nodePropertyChanged(Object nodeId, String property, Object oldValue, Object newValue)
GraphChangeHandler
nodePropertyChanged
in interface GraphChangeHandler
public void arcCreated(Object nodeId, Object targetNodeId, Object arcId)
GraphChangeHandler
arcCreated
in interface GraphChangeHandler
public void arcDeleted(Object nodeId, Object targetNodeId, Object arcId)
GraphChangeHandler
arcDeleted
in interface GraphChangeHandler
protected Persistent findObject(Object nodeId)
protected Persistent findObjectInCollection(Object nodeId, Object toManyHolder)
Copyright © 2001–2018 Apache Cayenne. All rights reserved.