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