org.hibernate.mapping
Interface Value

All Superinterfaces:
Serializable
All Known Subinterfaces:
KeyValue
All Known Implementing Classes:
Collection, OneToMany, SimpleValue

public interface Value
extends Serializable

A value is anything that is persisted by value, instead of by reference. It is essentially a Hibernate Type, together with zero or more columns. Values are wrapped by things with higher level semantics, for example properties, collections, classes.

Author:
Gavin King

Method Summary
 Object accept(ValueVisitor visitor)
           
 void createForeignKey()
           
 boolean[] getColumnInsertability()
           
 Iterator getColumnIterator()
           
 int getColumnSpan()
           
 boolean[] getColumnUpdateability()
           
 FetchMode getFetchMode()
           
 Table getTable()
           
 Type getType()
           
 boolean hasFormula()
           
 boolean isAlternateUniqueKey()
           
 boolean isNullable()
           
 boolean isSimpleValue()
           
 boolean isValid(Mapping mapping)
           
 void setTypeUsingReflection(String className, String propertyName)
           
 

Method Detail

getColumnSpan

public int getColumnSpan()

getColumnIterator

public Iterator getColumnIterator()

getType

public Type getType()
             throws MappingException
Throws:
MappingException

getFetchMode

public FetchMode getFetchMode()

getTable

public Table getTable()

hasFormula

public boolean hasFormula()

isAlternateUniqueKey

public boolean isAlternateUniqueKey()

isNullable

public boolean isNullable()

getColumnUpdateability

public boolean[] getColumnUpdateability()

getColumnInsertability

public boolean[] getColumnInsertability()

createForeignKey

public void createForeignKey()
                      throws MappingException
Throws:
MappingException

isSimpleValue

public boolean isSimpleValue()

isValid

public boolean isValid(Mapping mapping)
                throws MappingException
Throws:
MappingException

setTypeUsingReflection

public void setTypeUsingReflection(String className,
                                   String propertyName)
                            throws MappingException
Throws:
MappingException

accept

public Object accept(ValueVisitor visitor)