use of org.hibernate.event.spi.PostCollectionRemoveEventListener in project hibernate-orm by hibernate.
the class CollectionRemoveAction method postRemove.
private void postRemove() {
final EventListenerGroup<PostCollectionRemoveEventListener> listenerGroup = listenerGroup(EventType.POST_COLLECTION_REMOVE);
if (listenerGroup.isEmpty()) {
return;
}
final PostCollectionRemoveEvent event = new PostCollectionRemoveEvent(getPersister(), getCollection(), eventSource(), affectedOwner);
for (PostCollectionRemoveEventListener listener : listenerGroup.listeners()) {
listener.onPostRemoveCollection(event);
}
}
use of org.hibernate.event.spi.PostCollectionRemoveEventListener in project hibernate-reactive by hibernate.
the class ReactiveCollectionRemoveAction method postRemove.
private void postRemove() {
final EventListenerGroup<PostCollectionRemoveEventListener> listenerGroup = listenerGroup(EventType.POST_COLLECTION_REMOVE);
if (listenerGroup.isEmpty()) {
return;
}
final PostCollectionRemoveEvent event = new PostCollectionRemoveEvent(getPersister(), getCollection(), eventSource(), affectedOwner);
for (PostCollectionRemoveEventListener listener : listenerGroup.listeners()) {
listener.onPostRemoveCollection(event);
}
}
Aggregations