KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > event > MergeEventListener


1 //$Id: MergeEventListener.java,v 1.1 2004/09/04 11:37:51 oneovthafew Exp $
2
package org.hibernate.event;
3
4 import java.io.Serializable JavaDoc;
5 import java.util.Map JavaDoc;
6
7 import org.hibernate.HibernateException;
8
9 /**
10  * Defines the contract for handling of merge events generated from a session.
11  *
12  * @author Gavin King
13  */

14 public interface MergeEventListener extends Serializable JavaDoc {
15
16     /**
17      * Handle the given merge event.
18      *
19      * @param event The merge event to be handled.
20      * @throws HibernateException
21      */

22     public Object JavaDoc onMerge(MergeEvent event) throws HibernateException;
23
24     /**
25      * Handle the given merge event.
26      *
27      * @param event The merge event to be handled.
28      * @throws HibernateException
29      */

30     public Object JavaDoc onMerge(MergeEvent event, Map JavaDoc copiedAlready) throws HibernateException;
31
32 }
33
Popular Tags