Open Source Repository

Home /hibernate/hibernate-3.2.4.ga | Repository Home



org/hibernate/event/FlushEventListener.java
//$Id: FlushEventListener.java 4185 2004-08-08 11:24:56Z oneovthafew $
package org.hibernate.event;

import org.hibernate.HibernateException;

import java.io.Serializable;

/**
 * Defines the contract for handling of session flush events.
 *
 @author Steve Ebersole
 */
public interface FlushEventListener extends Serializable {

    /** Handle the given flush event.
     *
     @param event The flush event to be handled.
     @throws HibernateException
     */
  public void onFlush(FlushEvent eventthrows HibernateException;
}