Package org.apache.cayenne
Interface DataChannelListener
public interface DataChannelListener
A listener of 
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);
   }
 - Since:
- 1.2
- 
Method SummaryModifier and Type Method Description voidgraphChanged(GraphEvent event)Notifies implementing object of the changes that were performed to the object graph externally, not by one of the channel ObjectContexts.voidgraphFlushed(GraphEvent event)Notifies implementing object that one of the channel ObjectContexts flushed its changes to the channel.voidgraphRolledback(GraphEvent event)Notifies implementing object that one of the channel ObjectContexts initiated a rollback.
- 
Method Details- 
graphChangedNotifies implementing object of the changes that were performed to the object graph externally, not by one of the channel ObjectContexts.
- 
graphFlushedNotifies implementing object that one of the channel ObjectContexts flushed its changes to the channel.
- 
graphRolledbackNotifies implementing object that one of the channel ObjectContexts initiated a rollback.
 
-