01: //$Id: ReplicateEventListener.java 4185 2004-08-08 11:24:56Z oneovthafew $
02: package org.hibernate.event;
03:
04: import org.hibernate.HibernateException;
05:
06: import java.io.Serializable;
07:
08: /**
09: * Defines the contract for handling of replicate events generated from a session.
10: *
11: * @author Steve Ebersole
12: */
13: public interface ReplicateEventListener extends Serializable {
14:
15: /** Handle the given replicate event.
16: *
17: * @param event The replicate event to be handled.
18: * @throws HibernateException
19: */
20: public void onReplicate(ReplicateEvent event)
21: throws HibernateException;
22:
23: }
|