Search in sources :

Example 1 with NodeDeleteOperation

use of org.apache.cayenne.graph.NodeDeleteOperation in project cayenne by apache.

the class ObjectStore method nodeRemoved.

/**
 * @since 1.2
 */
@Override
public void nodeRemoved(Object nodeId) {
    NodeDiff diff = new NodeDeleteOperation(nodeId);
    if (lifecycleEventInducedChanges != null) {
        registerLifecycleEventInducedChange(diff);
    }
    registerDiff(nodeId, diff);
}
Also used : NodeDiff(org.apache.cayenne.graph.NodeDiff) NodeDeleteOperation(org.apache.cayenne.graph.NodeDeleteOperation)

Example 2 with NodeDeleteOperation

use of org.apache.cayenne.graph.NodeDeleteOperation in project cayenne by apache.

the class CayenneContextGraphManager method nodeRemoved.

@Override
public synchronized void nodeRemoved(Object nodeId) {
    stateLog.nodeRemoved(nodeId);
    processChange(new NodeDeleteOperation(nodeId));
}
Also used : NodeDeleteOperation(org.apache.cayenne.graph.NodeDeleteOperation)

Aggregations

NodeDeleteOperation (org.apache.cayenne.graph.NodeDeleteOperation)2 NodeDiff (org.apache.cayenne.graph.NodeDiff)1