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)
GraphChangeHandlernodeIdChanged in interface GraphChangeHandlerpublic void nodeCreated(Object nodeId)
GraphChangeHandlernodeCreated in interface GraphChangeHandlerpublic void nodeRemoved(Object nodeId)
GraphChangeHandlernodeRemoved in interface GraphChangeHandlerpublic void nodePropertyChanged(Object nodeId, String property, Object oldValue, Object newValue)
GraphChangeHandlernodePropertyChanged in interface GraphChangeHandlerpublic void arcCreated(Object nodeId, Object targetNodeId, Object arcId)
GraphChangeHandlerarcCreated in interface GraphChangeHandlerpublic void arcDeleted(Object nodeId, Object targetNodeId, Object arcId)
GraphChangeHandlerarcDeleted in interface GraphChangeHandlerprotected Persistent findObject(Object nodeId)
protected Persistent findObjectInCollection(Object nodeId, Object toManyHolder)
Copyright © 2001–2018 Apache Cayenne. All rights reserved.