use of org.hibernate.event.spi.PostCollectionUpdateEvent in project hibernate-orm by hibernate.
the class CollectionUpdateAction method postUpdate.
private void postUpdate() {
final EventListenerGroup<PostCollectionUpdateEventListener> listenerGroup = listenerGroup(EventType.POST_COLLECTION_UPDATE);
if (listenerGroup.isEmpty()) {
return;
}
final PostCollectionUpdateEvent event = new PostCollectionUpdateEvent(getPersister(), getCollection(), eventSource());
for (PostCollectionUpdateEventListener listener : listenerGroup.listeners()) {
listener.onPostUpdateCollection(event);
}
}
use of org.hibernate.event.spi.PostCollectionUpdateEvent in project hibernate-reactive by hibernate.
the class ReactiveCollectionUpdateAction method postUpdate.
private void postUpdate() {
final EventListenerGroup<PostCollectionUpdateEventListener> listenerGroup = listenerGroup(EventType.POST_COLLECTION_UPDATE);
if (listenerGroup.isEmpty()) {
return;
}
final PostCollectionUpdateEvent event = new PostCollectionUpdateEvent(getPersister(), getCollection(), eventSource());
for (PostCollectionUpdateEventListener listener : listenerGroup.listeners()) {
listener.onPostUpdateCollection(event);
}
}
Aggregations