Search in sources :

Example 1 with PostCollectionUpdateEvent

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);
    }
}
Also used : PostCollectionUpdateEventListener(org.hibernate.event.spi.PostCollectionUpdateEventListener) PostCollectionUpdateEvent(org.hibernate.event.spi.PostCollectionUpdateEvent)

Example 2 with PostCollectionUpdateEvent

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);
    }
}
Also used : PostCollectionUpdateEventListener(org.hibernate.event.spi.PostCollectionUpdateEventListener) PostCollectionUpdateEvent(org.hibernate.event.spi.PostCollectionUpdateEvent)

Aggregations

PostCollectionUpdateEvent (org.hibernate.event.spi.PostCollectionUpdateEvent)2 PostCollectionUpdateEventListener (org.hibernate.event.spi.PostCollectionUpdateEventListener)2