org.hibernate.mapping

Class Any

Implemented Interfaces:
KeyValue, Serializable, Value

public class Any
extends SimpleValue

A Hibernate "any" type (ie. polymorphic association to one-of-several tables).
Author:
Gavin King

Constructor Summary

Any(Table table)

Method Summary

Object
accept(ValueVisitor visitor)
String
getIdentifierType()
String
getMetaType()
Map
getMetaValues()
Type
getType()
void
setIdentifierType(String identifierType)
void
setMetaType(String type)
void
setMetaValues(Map metaValues)
void
setTypeByReflection(String propertyClass, String propertyName)
void
setTypeUsingReflection(String className, String propertyName)

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

Any

public Any(Table table)

Method Details

accept

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

getIdentifierType

public String getIdentifierType()

getMetaType

public String getMetaType()

getMetaValues

public Map getMetaValues()

getType

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

setIdentifierType

public void setIdentifierType(String identifierType)

setMetaType

public void setMetaType(String type)

setMetaValues

public void setMetaValues(Map metaValues)

setTypeByReflection

public void setTypeByReflection(String propertyClass,
                                String propertyName)

setTypeUsingReflection

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