use of org.apache.cayenne.graph.ChildDiffLoader in project cayenne by apache.
the class DataContext method onContextFlush.
@Override
protected GraphDiff onContextFlush(ObjectContext originatingContext, GraphDiff changes, boolean cascade) {
boolean childContext = this != originatingContext && changes != null;
try {
if (childContext) {
getObjectStore().childContextSyncStarted();
changes.apply(new ChildDiffLoader(this));
fireDataChannelChanged(originatingContext, changes);
}
return (cascade) ? flushToParent(true) : new CompoundDiff();
} finally {
if (childContext) {
getObjectStore().childContextSyncStopped();
}
}
}
Aggregations