KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > type > AbstractComponentType


1 //$Id: AbstractComponentType.java,v 1.8 2005/06/05 04:31:34 oneovthafew Exp $
2
package org.hibernate.type;
3
4 import java.lang.reflect.Method JavaDoc;
5
6 import org.hibernate.EntityMode;
7 import org.hibernate.FetchMode;
8 import org.hibernate.HibernateException;
9 import org.hibernate.engine.CascadeStyle;
10 import org.hibernate.engine.SessionImplementor;
11
12 /**
13  * Enables other Component-like types to hold collections and have cascades, etc.
14  *
15  * @see ComponentType
16  * @see AnyType
17  * @author Gavin King
18  */

19 public interface AbstractComponentType extends Type {
20     public Type[] getSubtypes();
21     public String JavaDoc[] getPropertyNames();
22     /**
23      * Optional operation
24      * @return nullability of component properties
25      */

26     public boolean[] getPropertyNullability();
27     public Object JavaDoc[] getPropertyValues(Object JavaDoc component, SessionImplementor session) throws HibernateException;
28     /**
29      * Optional operation
30      * @param entityMode
31      */

32     public Object JavaDoc[] getPropertyValues(Object JavaDoc component, EntityMode entityMode) throws HibernateException;
33     /**
34      * Optional operation
35      * @param entityMode TODO
36      */

37     public void setPropertyValues(Object JavaDoc component, Object JavaDoc[] values, EntityMode entityMode) throws HibernateException;
38     public Object JavaDoc getPropertyValue(Object JavaDoc component, int i, SessionImplementor session) throws HibernateException;
39     //public Object instantiate(Object parent, SessionImplementor session) throws HibernateException;
40
public CascadeStyle getCascadeStyle(int i);
41     public FetchMode getFetchMode(int i);
42     public boolean isMethodOf(Method JavaDoc method);
43 }
44
Popular Tags