Search in sources :

Example 1 with PreCollectionRecreateEvent

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

the class CollectionRecreateAction method preRecreate.

private void preRecreate() {
    final EventListenerGroup<PreCollectionRecreateEventListener> listenerGroup = listenerGroup(EventType.PRE_COLLECTION_RECREATE);
    if (listenerGroup.isEmpty()) {
        return;
    }
    final PreCollectionRecreateEvent event = new PreCollectionRecreateEvent(getPersister(), getCollection(), eventSource());
    for (PreCollectionRecreateEventListener listener : listenerGroup.listeners()) {
        listener.onPreRecreateCollection(event);
    }
}
Also used : PreCollectionRecreateEventListener(org.hibernate.event.spi.PreCollectionRecreateEventListener) PreCollectionRecreateEvent(org.hibernate.event.spi.PreCollectionRecreateEvent)

Example 2 with PreCollectionRecreateEvent

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

the class ReactiveCollectionRecreateAction method preRecreate.

private void preRecreate() {
    final EventListenerGroup<PreCollectionRecreateEventListener> listenerGroup = listenerGroup(EventType.PRE_COLLECTION_RECREATE);
    if (listenerGroup.isEmpty()) {
        return;
    }
    final PreCollectionRecreateEvent event = new PreCollectionRecreateEvent(getPersister(), getCollection(), eventSource());
    for (PreCollectionRecreateEventListener listener : listenerGroup.listeners()) {
        listener.onPreRecreateCollection(event);
    }
}
Also used : PreCollectionRecreateEventListener(org.hibernate.event.spi.PreCollectionRecreateEventListener) PreCollectionRecreateEvent(org.hibernate.event.spi.PreCollectionRecreateEvent)

Example 3 with PreCollectionRecreateEvent

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

the class ReactiveCollectionRemoveAction method preRecreate.

private void preRecreate() {
    final EventListenerGroup<PreCollectionRecreateEventListener> listenerGroup = listenerGroup(EventType.PRE_COLLECTION_RECREATE);
    if (listenerGroup.isEmpty()) {
        return;
    }
    final PreCollectionRecreateEvent event = new PreCollectionRecreateEvent(getPersister(), getCollection(), eventSource());
    for (PreCollectionRecreateEventListener listener : listenerGroup.listeners()) {
        listener.onPreRecreateCollection(event);
    }
}
Also used : PreCollectionRecreateEventListener(org.hibernate.event.spi.PreCollectionRecreateEventListener) PreCollectionRecreateEvent(org.hibernate.event.spi.PreCollectionRecreateEvent)

Example 4 with PreCollectionRecreateEvent

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

the class ReactiveCollectionUpdateAction method preRecreate.

private void preRecreate() {
    final EventListenerGroup<PreCollectionRecreateEventListener> listenerGroup = listenerGroup(EventType.PRE_COLLECTION_RECREATE);
    if (listenerGroup.isEmpty()) {
        return;
    }
    final PreCollectionRecreateEvent event = new PreCollectionRecreateEvent(getPersister(), getCollection(), eventSource());
    for (PreCollectionRecreateEventListener listener : listenerGroup.listeners()) {
        listener.onPreRecreateCollection(event);
    }
}
Also used : PreCollectionRecreateEventListener(org.hibernate.event.spi.PreCollectionRecreateEventListener) PreCollectionRecreateEvent(org.hibernate.event.spi.PreCollectionRecreateEvent)

Aggregations

PreCollectionRecreateEvent (org.hibernate.event.spi.PreCollectionRecreateEvent)4 PreCollectionRecreateEventListener (org.hibernate.event.spi.PreCollectionRecreateEventListener)4