Search in sources :

Example 1 with PostCollectionRecreateEventListener

use of org.hibernate.event.spi.PostCollectionRecreateEventListener in project hibernate-reactive by hibernate.

the class ReactiveCollectionRecreateAction method postRecreate.

private void postRecreate() {
    final EventListenerGroup<PostCollectionRecreateEventListener> listenerGroup = listenerGroup(EventType.POST_COLLECTION_RECREATE);
    if (listenerGroup.isEmpty()) {
        return;
    }
    final PostCollectionRecreateEvent event = new PostCollectionRecreateEvent(getPersister(), getCollection(), eventSource());
    for (PostCollectionRecreateEventListener listener : listenerGroup.listeners()) {
        listener.onPostRecreateCollection(event);
    }
}
Also used : PostCollectionRecreateEventListener(org.hibernate.event.spi.PostCollectionRecreateEventListener) PostCollectionRecreateEvent(org.hibernate.event.spi.PostCollectionRecreateEvent)

Example 2 with PostCollectionRecreateEventListener

use of org.hibernate.event.spi.PostCollectionRecreateEventListener in project hibernate-reactive by hibernate.

the class ReactiveCollectionUpdateAction method postRecreate.

private void postRecreate() {
    final EventListenerGroup<PostCollectionRecreateEventListener> listenerGroup = listenerGroup(EventType.POST_COLLECTION_RECREATE);
    if (listenerGroup.isEmpty()) {
        return;
    }
    final PostCollectionRecreateEvent event = new PostCollectionRecreateEvent(getPersister(), getCollection(), eventSource());
    for (PostCollectionRecreateEventListener listener : listenerGroup.listeners()) {
        listener.onPostRecreateCollection(event);
    }
}
Also used : PostCollectionRecreateEventListener(org.hibernate.event.spi.PostCollectionRecreateEventListener) PostCollectionRecreateEvent(org.hibernate.event.spi.PostCollectionRecreateEvent)

Example 3 with PostCollectionRecreateEventListener

use of org.hibernate.event.spi.PostCollectionRecreateEventListener in project hibernate-orm by hibernate.

the class CollectionRecreateAction method postRecreate.

private void postRecreate() {
    final EventListenerGroup<PostCollectionRecreateEventListener> listenerGroup = listenerGroup(EventType.POST_COLLECTION_RECREATE);
    if (listenerGroup.isEmpty()) {
        return;
    }
    final PostCollectionRecreateEvent event = new PostCollectionRecreateEvent(getPersister(), getCollection(), eventSource());
    for (PostCollectionRecreateEventListener listener : listenerGroup.listeners()) {
        listener.onPostRecreateCollection(event);
    }
}
Also used : PostCollectionRecreateEventListener(org.hibernate.event.spi.PostCollectionRecreateEventListener) PostCollectionRecreateEvent(org.hibernate.event.spi.PostCollectionRecreateEvent)

Example 4 with PostCollectionRecreateEventListener

use of org.hibernate.event.spi.PostCollectionRecreateEventListener in project hibernate-reactive by hibernate.

the class ReactiveCollectionRemoveAction method postRecreate.

private void postRecreate() {
    final EventListenerGroup<PostCollectionRecreateEventListener> listenerGroup = listenerGroup(EventType.POST_COLLECTION_RECREATE);
    if (listenerGroup.isEmpty()) {
        return;
    }
    final PostCollectionRecreateEvent event = new PostCollectionRecreateEvent(getPersister(), getCollection(), eventSource());
    for (PostCollectionRecreateEventListener listener : listenerGroup.listeners()) {
        listener.onPostRecreateCollection(event);
    }
}
Also used : PostCollectionRecreateEventListener(org.hibernate.event.spi.PostCollectionRecreateEventListener) PostCollectionRecreateEvent(org.hibernate.event.spi.PostCollectionRecreateEvent)

Aggregations

PostCollectionRecreateEvent (org.hibernate.event.spi.PostCollectionRecreateEvent)4 PostCollectionRecreateEventListener (org.hibernate.event.spi.PostCollectionRecreateEventListener)4