org.hibernate.mapping

Class DependantValue

Implemented Interfaces:
KeyValue, Serializable, Value

public class DependantValue
extends SimpleValue

A value which is "typed" by reference to some other value (for example, a foreign key is typed by the referenced primary key).
Author:
Gavin King

Constructor Summary

DependantValue(Table table, KeyValue prototype)

Method Summary

Object
accept(ValueVisitor visitor)
Type
getType()
boolean
isNullable()
boolean
isUpdateable()
void
setNullable(boolean nullable)
void
setTypeUsingReflection(String className, String propertyName)
void
setUpdateable(boolean updateable)

Methods inherited from class org.hibernate.mapping.SimpleValue

accept, addColumn, addFormula, createForeignKey, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getConstraintColumns, getFetchMode, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getNullValue, getTable, getType, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isNullable, isSimpleValue, isTypeSpecified, isUpdateable, isValid, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setTypeName, setTypeParameters, setTypeUsingReflection, toString

Constructor Details

DependantValue

public DependantValue(Table table,
                      KeyValue prototype)

Method Details

accept

public Object accept(ValueVisitor visitor)
Specified by:
accept in interface Value
Overrides:
accept in interface SimpleValue

getType

public Type getType()
            throws MappingException
Specified by:
getType in interface Value
Overrides:
getType in interface SimpleValue

isNullable

public boolean isNullable()
Specified by:
isNullable in interface Value
Overrides:
isNullable in interface SimpleValue

isUpdateable

public boolean isUpdateable()
Specified by:
isUpdateable in interface KeyValue
Overrides:
isUpdateable in interface SimpleValue

setNullable

public void setNullable(boolean nullable)

setTypeUsingReflection

public void setTypeUsingReflection(String className,
                                   String propertyName)
Specified by:
setTypeUsingReflection in interface Value
Overrides:
setTypeUsingReflection in interface SimpleValue

setUpdateable

public void setUpdateable(boolean updateable)