Class DataContext.PostCommitEvent

java.lang.Object
java.util.EventObject
io.jmix.flowui.model.DataContext.PostCommitEvent
All Implemented Interfaces:
Serializable
Enclosing interface:
DataContext

public static class DataContext.PostCommitEvent extends EventObject
Event sent after committing changes.

In this event listener, you can get the collection of committed entities returned from the middle tier, for example:

     @Subscribe(target = Target.DATA_CONTEXT)
     protected void onPostCommit(DataContext.PostCommitEvent event) {
         log.debug("Committed: " + event.getCommittedInstances());
     }
 
See Also:
  • Constructor Details

  • Method Details

    • getSource

      public DataContext getSource()
      The data context which sent the event.
      Overrides:
      getSource in class EventObject
    • getCommittedInstances

      public EntitySet getCommittedInstances()
      Returns the collection of committed entities.