public abstract class DataChannelSyncCallbackAction extends Object implements GraphChangeHandler
Modifier and Type | Method and Description |
---|---|
abstract void |
applyPostCommit() |
abstract void |
applyPreCommit() |
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.
|
static DataChannelSyncCallbackAction |
getCallbackAction(LifecycleCallbackRegistry callbackRegistry,
GraphManager graphManager,
GraphDiff changes,
int syncType) |
protected abstract boolean |
hasListeners() |
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.
|
public static DataChannelSyncCallbackAction getCallbackAction(LifecycleCallbackRegistry callbackRegistry, GraphManager graphManager, GraphDiff changes, int syncType)
protected abstract boolean hasListeners()
public abstract void applyPreCommit()
public abstract void applyPostCommit()
public void nodeCreated(Object nodeId)
GraphChangeHandler
nodeCreated
in interface GraphChangeHandler
public void nodeRemoved(Object nodeId)
GraphChangeHandler
nodeRemoved
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
public void nodeIdChanged(Object nodeId, Object newId)
GraphChangeHandler
nodeIdChanged
in interface GraphChangeHandler
public void nodePropertyChanged(Object nodeId, String property, Object oldValue, Object newValue)
GraphChangeHandler
nodePropertyChanged
in interface GraphChangeHandler
Copyright © 2001–2018 Apache Cayenne. All rights reserved.