KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: PersistEventListener.java,v 1.1 2005/02/21 14:39:01 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 create events generated from a session.
11  *
12  * @author Gavin King
13  */

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

22     public void onPersist(PersistEvent event) throws HibernateException;
23
24     /**
25      * Handle the given create event.
26      *
27      * @param event The create event to be handled.
28      * @throws HibernateException
29      */

30     public void onPersist(PersistEvent event, Map JavaDoc createdAlready) throws HibernateException;
31
32 }
33
Popular Tags