java.lang.Object
is.codion.framework.model.EntityEditEvents
A central event hub for listening for entity inserts, updates and deletes.
EntityEditModel
uses this to post its events.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
deleted
(Collection<Entity> deletedEntities) Notifies deletestatic Observer<Collection<Entity>>
deleteObserver
(EntityType entityType) Returns a delete observer, notified each time entities of the given type are deleted.static void
inserted
(Collection<Entity> insertedEntities) Notifies insertstatic Observer<Collection<Entity>>
insertObserver
(EntityType entityType) Returns an insert observer, notified each time entities of the given type are inserted.static void
updated
(Map<Entity.Key, Entity> updatedEntities) Notifies updatestatic Observer<Map<Entity.Key,
Entity>> updateObserver
(EntityType entityType) Returns an update observer, notified each time entities of the given type are updated.
-
Method Details
-
insertObserver
Returns an insert observer, notified each time entities of the given type are inserted.- Parameters:
entityType
- the type of entity to listen for- Returns:
- the insert observer for the given entity type
-
updateObserver
Returns an update observer, notified each time entities of the given type are updated.- Parameters:
entityType
- the type of entity to listen for- Returns:
- the update observer for the given entity type
-
deleteObserver
Returns a delete observer, notified each time entities of the given type are deleted.- Parameters:
entityType
- the type of entity to listen for- Returns:
- the delete observer for the given entity type
-
inserted
Notifies insert- Parameters:
insertedEntities
- the inserted entities
-
updated
Notifies update- Parameters:
updatedEntities
- the updated entities mapped to their original primary key
-
deleted
Notifies delete- Parameters:
deletedEntities
- the deleted entities
-