org.hibernate.mapping

Interface Value

All Superinterfaces:
Serializable
Known Subinterfaces:
KeyValue
Known Implementing Classes:
Any, Array, Bag, Collection, Component, DependantValue, IdentifierBag, IdentifierCollection, IndexedCollection, List, ManyToOne, Map, OneToMany, OneToOne, PrimitiveArray, Set, SimpleValue, ToOne

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 Details

accept

public Object accept(ValueVisitor visitor)

createForeignKey

public void createForeignKey()
            throws MappingException

getColumnInsertability

public boolean[] getColumnInsertability()

getColumnIterator

public Iterator getColumnIterator()

getColumnSpan

public int getColumnSpan()

getColumnUpdateability

public boolean[] getColumnUpdateability()

getFetchMode

public FetchMode getFetchMode()

getTable

public Table getTable()

getType

public Type getType()
            throws MappingException

hasFormula

public boolean hasFormula()

isAlternateUniqueKey

public boolean isAlternateUniqueKey()

isNullable

public boolean isNullable()

isSimpleValue

public boolean isSimpleValue()

isValid

public boolean isValid(Mapping mapping)
            throws MappingException

setTypeUsingReflection

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