Package org.apache.cayenne.graph
Interface GraphChangeHandler
- All Known Subinterfaces:
- GraphManager
- All Known Implementing Classes:
- ChildDiffLoader,- DataChannelSyncCallbackAction,- GraphMap,- NoSyncObjectStore,- ObjectStore
public interface GraphChangeHandler
Defines callback API that can be used by object graph nodes to notify of their state
 changes. Graph nodes can be any objects as long as each node supports a notion of a
 unique id within the graph and each directional arc has a unique identifier within its
 source node.
- Since:
- 1.2
- 
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.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.
- 
Method Details- 
nodeIdChangedNotifies implementing object that a node was assigned a new id.
- 
nodeCreatedNotifies implementing object that a new node was created in the graph.
- 
nodeRemovedNotifies implementing object that a node was removed from the graph.
- 
nodePropertyChangedNotifies implementing object that a node's property was modified.
- 
arcCreatedNotifies implementing object that a new arc was created between two nodes.
- 
arcDeletedNotifies implementing object that an arc between two nodes was deleted.
 
-