Class DataContext.PostSaveEvent

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

public static class DataContext.PostSaveEvent extends EventObject
Event sent after saving changes.

In this event listener, you can get the collection of saved entities returned from DataManager or a custom service. These entities are already merged into the DataContext. For example:

     @Subscribe(target = Target.DATA_CONTEXT)
     protected void onPostSave(DataContext.PostSaveEvent event) {
         log.debug("Saved: " + event.getSavedInstances());
     }
 
See Also:
  • Constructor Details

  • Method Details

    • getSource

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

      public EntitySet getSavedInstances()
      Returns the collection of saved entities.