KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > mapping > Value


1 //$Id: Value.java,v 1.7 2005/02/12 07:19:26 steveebersole Exp $
2
package org.hibernate.mapping;
3
4 import java.io.Serializable JavaDoc;
5 import java.util.Iterator JavaDoc;
6
7 import org.hibernate.FetchMode;
8 import org.hibernate.MappingException;
9 import org.hibernate.engine.Mapping;
10 import org.hibernate.type.Type;
11
12 /**
13  * A value is anything that is persisted by value, instead of
14  * by reference. It is essentially a Hibernate Type, together
15  * with zero or more columns. Values are wrapped by things with
16  * higher level semantics, for example properties, collections,
17  * classes.
18  *
19  * @author Gavin King
20  */

21 public interface Value extends Serializable JavaDoc {
22     public int getColumnSpan();
23     public Iterator JavaDoc getColumnIterator();
24     public Type getType() throws MappingException;
25     public FetchMode getFetchMode();
26     public Table getTable();
27     public boolean hasFormula();
28     public boolean isAlternateUniqueKey();
29     public boolean isNullable();
30     public boolean[] getColumnUpdateability();
31     public boolean[] getColumnInsertability();
32     public void createForeignKey() throws MappingException;
33     public boolean isSimpleValue();
34     public boolean isValid(Mapping mapping) throws MappingException;
35     public void setTypeUsingReflection(String JavaDoc className, String JavaDoc propertyName) throws MappingException;
36     public Object JavaDoc accept(ValueVisitor visitor);
37 }
Popular Tags