List of usage examples for org.hibernate.event.spi AutoFlushEventListener onAutoFlush
public void onAutoFlush(AutoFlushEvent event) throws HibernateException;
From source file:com.blazebit.persistence.integration.hibernate.base.HibernateExtendedQuerySupport.java
License:Apache License
public void autoFlush(Set<String> querySpaces, SessionImplementor sessionImplementor) { AutoFlushEvent event = new AutoFlushEvent(querySpaces, (EventSource) sessionImplementor); for (AutoFlushEventListener listener : sessionImplementor.getFactory().getServiceRegistry() .getService(EventListenerRegistry.class).getEventListenerGroup(EventType.AUTO_FLUSH).listeners()) { listener.onAutoFlush(event); }/* ww w . ja v a 2 s . co m*/ }