org.hibernate.mapping
Class Any
java.lang.Object
org.hibernate.mapping.SimpleValue
org.hibernate.mapping.Any
- All Implemented Interfaces:
- java.io.Serializable, KeyValue, Value
public class Any
- extends SimpleValue
A Hibernate "any" type (ie. polymorphic association to
one-of-several tables).
- Author:
- Gavin King
- See Also:
- Serialized Form
Methods inherited from class org.hibernate.mapping.SimpleValue |
addColumn, addFormula, createForeignKey, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getConstraintColumns, getFetchMode, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getNullValue, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isNullable, isSimpleValue, isTypeSpecified, isUpdateable, isValid, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setNullValue, setTable, setTypeName, setTypeParameters, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Any
public Any(Table table)
getIdentifierType
public java.lang.String getIdentifierType()
setIdentifierType
public void setIdentifierType(java.lang.String identifierType)
getType
public Type getType()
throws MappingException
- Specified by:
getType
in interface Value
- Overrides:
getType
in class SimpleValue
- Throws:
MappingException
setTypeByReflection
public void setTypeByReflection(java.lang.String propertyClass,
java.lang.String propertyName)
getMetaType
public java.lang.String getMetaType()
setMetaType
public void setMetaType(java.lang.String type)
getMetaValues
public java.util.Map getMetaValues()
setMetaValues
public void setMetaValues(java.util.Map metaValues)
setTypeUsingReflection
public void setTypeUsingReflection(java.lang.String className,
java.lang.String propertyName)
throws MappingException
- Specified by:
setTypeUsingReflection
in interface Value
- Overrides:
setTypeUsingReflection
in class SimpleValue
- Throws:
MappingException
accept
public java.lang.Object accept(ValueVisitor visitor)
- Specified by:
accept
in interface Value
- Overrides:
accept
in class SimpleValue
Copyright © 2008 Hibernate.org. All Rights Reserved.