Package io.jmix.ui.model
Class DataContext.PostCommitEvent
java.lang.Object
java.util.EventObject
io.jmix.ui.model.DataContext.PostCommitEvent
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- DataContext
Event sent after committing changes.
In this event listener, you can get the collection of committed 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 onPostCommit(DataContext.PostCommitEvent event) { log.debug("Committed: " + event.getCommittedInstances()); }
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the collection of committed entities.The data context which sent the event.Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
PostCommitEvent
-
-
Method Details
-
getSource
The data context which sent the event.- Overrides:
getSource
in classEventObject
-
getCommittedInstances
Returns the collection of committed entities.
-