source.getEventListenerManager().partialFlushStart(); if ( flushMightBeNeeded(source) ) { flushEverythingToExecutions(event); if ( flushIsReallyNeeded(event, source) ) { LOG.trace( "Need to execute flush" ); performExecutions(source); postFlush(source); postPostFlush( source ); event.setFlushRequired( flushIsReallyNeeded( event, source ) );
new DefaultAutoFlushEventListener(), listenerArray );
new DefaultAutoFlushEventListener(), workMap );
/** * Handle the given auto-flush event. * * @param event * The auto-flush event to be handled. * @throws HibernateException */ public void onAutoFlush(AutoFlushEvent event) throws HibernateException { final EventSource source = event.getSession(); if ( flushMightBeNeeded(source) ) { flushEverythingToExecutions(event); if ( flushIsReallyNeeded(event, source) ) { LOG.trace( "Need to execute flush" ); performExecutions(source); postFlush(source); // note: performExecutions() clears all collectionXxxxtion // collections (the collection actions) in the session if ( source.getFactory().getStatistics().isStatisticsEnabled() ) { source.getFactory().getStatisticsImplementor().flush(); } } else { LOG.trace( "Don't need to execute flush" ); final int oldSize = source.getActionQueue().numberOfCollectionRemovals(); source.getActionQueue().clearFromFlushNeededCheck( oldSize ); } event.setFlushRequired( flushIsReallyNeeded( event, source ) ); } }
new DefaultAutoFlushEventListener(), workMap );
/** * Handle the given auto-flush event. * * @param event * The auto-flush event to be handled. * @throws HibernateException */ public void onAutoFlush(AutoFlushEvent event) throws HibernateException { final EventSource source = event.getSession(); if ( flushMightBeNeeded(source) ) { flushEverythingToExecutions(event); if ( flushIsReallyNeeded(event, source) ) { LOG.trace( "Need to execute flush" ); performExecutions(source); postFlush(source); // note: performExecutions() clears all collectionXxxxtion // collections (the collection actions) in the session if ( source.getFactory().getStatistics().isStatisticsEnabled() ) { source.getFactory().getStatisticsImplementor().flush(); } } else { LOG.trace( "Don't need to execute flush" ); final int oldSize = source.getActionQueue().numberOfCollectionRemovals(); source.getActionQueue().clearFromFlushNeededCheck( oldSize ); } event.setFlushRequired( flushIsReallyNeeded( event, source ) ); } }
new DefaultAutoFlushEventListener(), listenerArray );
source.getEventListenerManager().partialFlushStart(); if ( flushMightBeNeeded(source) ) { flushEverythingToExecutions(event); if ( flushIsReallyNeeded(event, source) ) { LOG.trace( "Need to execute flush" ); performExecutions(source); postFlush(source); postPostFlush( source ); event.setFlushRequired( flushIsReallyNeeded( event, source ) );