FileDocCategorySizeDatePackage
DefaultFlushEventListener.javaAPI DocHibernate 3.2.51112Thu May 26 22:54:08 BST 2005org.hibernate.event.def

DefaultFlushEventListener

public class DefaultFlushEventListener extends AbstractFlushingEventListener implements org.hibernate.event.FlushEventListener
Defines the default flush event listeners used by hibernate for flushing session state in response to generated flush events.
author
Steve Ebersole

Fields Summary
Constructors Summary
Methods Summary
public voidonFlush(org.hibernate.event.FlushEvent event)
Handle the given flush event.

param
event The flush event to be handled.
throws
HibernateException

		final EventSource source = event.getSession();
		if ( source.getPersistenceContext().hasNonReadOnlyEntities() ) {
			
			flushEverythingToExecutions(event);
			performExecutions(source);
			postFlush(source);
		
			if ( source.getFactory().getStatistics().isStatisticsEnabled() ) {
				source.getFactory().getStatisticsImplementor().flush();
			}
			
		}