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);
}
}
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);
}
}
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);
}
}
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);
}
}
Aggregations