KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > proxy > ProxyFactory


1 //$Id: ProxyFactory.java,v 1.3 2005/02/12 07:19:45 steveebersole Exp $
2
package org.hibernate.proxy;
3
4 import java.io.Serializable JavaDoc;
5 import java.lang.reflect.Method JavaDoc;
6 import java.util.Set JavaDoc;
7
8 import org.hibernate.HibernateException;
9 import org.hibernate.engine.SessionImplementor;
10 import org.hibernate.type.AbstractComponentType;
11
12 /**
13  * @author Gavin King
14  */

15 public interface ProxyFactory {
16
17     /**
18      * Called immediately after instantiation
19      */

20     public void postInstantiate(
21         String JavaDoc entityName,
22         Class JavaDoc persistentClass,
23         Set JavaDoc interfaces,
24         Method JavaDoc getIdentifierMethod,
25         Method JavaDoc setIdentifierMethod,
26         AbstractComponentType componentIdType
27     ) throws HibernateException;
28
29     /**
30      * Create a new proxy
31      */

32     public HibernateProxy getProxy(
33         Serializable JavaDoc id,
34         SessionImplementor session
35     ) throws HibernateException;
36
37 }
38
Popular Tags