public interface DataChannelListener
DataChannel
lifecycle events. Changes
related to an event are attached as a GraphDiff. If a listener needs to process these
changes, the easiest way to do that is via GraphChangeHandler "visitor":
public void graphChanged(GraphEvent event) { GraphChangeHandler handler = ..; event.getDiff().apply(handler); }
Modifier and Type | Method and Description |
---|---|
void |
graphChanged(GraphEvent event)
Notifies implementing object of the changes that were performed to the object graph
externally, not by one of the channel ObjectContexts.
|
void |
graphFlushed(GraphEvent event)
Notifies implementing object that one of the channel ObjectContexts flushed its
changes to the channel.
|
void |
graphRolledback(GraphEvent event)
Notifies implementing object that one of the channel ObjectContexts initiated a
rollback.
|
void graphChanged(GraphEvent event)
void graphFlushed(GraphEvent event)
void graphRolledback(GraphEvent event)
Copyright © 2001–2023 Apache Cayenne. All rights reserved.