Package org.hibernate.mapping
Class Any
- java.lang.Object
-
- org.hibernate.mapping.SimpleValue
-
- org.hibernate.mapping.Any
-
- All Implemented Interfaces:
Serializable,KeyValue,Value
public class Any extends SimpleValue
A Hibernate "any" type (ie. polymorphic association to one-of-several tables).- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.hibernate.mapping.SimpleValue
DEFAULT_ID_GEN_STRATEGY
-
-
Constructor Summary
Constructors Constructor Description Any(MetadataBuildingContext buildingContext, Table table)Any(MetadataImplementor metadata, Table table)Deprecated.UseAny(MetadataBuildingContext, Table)instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(ValueVisitor visitor)StringgetIdentifierType()StringgetMetaType()MapgetMetaValues()TypegetType()booleanisSame(Any other)booleanisSame(SimpleValue other)voidsetIdentifierType(String identifierType)voidsetMetaType(String type)voidsetMetaValues(Map metaValues)voidsetTypeByReflection(String propertyClass, String propertyName)voidsetTypeUsingReflection(String className, String propertyName)-
Methods inherited from class org.hibernate.mapping.SimpleValue
addColumn, addColumn, addFormula, copyTypeFrom, createForeignKey, createForeignKeyOfEntity, createIdentifierGenerator, getColumnInsertability, getColumnIterator, getColumnSpan, getColumnUpdateability, getConstraintColumns, getFetchMode, getForeignKeyDefinition, getForeignKeyName, getIdentifierGeneratorProperties, getIdentifierGeneratorStrategy, getMetadata, getNullValue, getServiceRegistry, getTable, getTypeName, getTypeParameters, hasFormula, isAlternateUniqueKey, isCascadeDeleteEnabled, isIdentityColumn, isLob, isNationalized, isNullable, isSame, isSame, isSimpleValue, isTypeSpecified, isUpdateable, isValid, isVersion, makeLob, makeNationalized, makeVersion, setAlternateUniqueKey, setCascadeDeleteEnabled, setForeignKeyDefinition, setForeignKeyName, setIdentifierGeneratorProperties, setIdentifierGeneratorStrategy, setJpaAttributeConverterDescriptor, setNullValue, setTable, setTypeName, setTypeParameters, toString
-
-
-
-
Constructor Detail
-
Any
@Deprecated public Any(MetadataImplementor metadata, Table table)
Deprecated.UseAny(MetadataBuildingContext, Table)instead.
-
Any
public Any(MetadataBuildingContext buildingContext, Table table)
-
-
Method Detail
-
getIdentifierType
public String getIdentifierType()
-
setIdentifierType
public void setIdentifierType(String identifierType)
-
getType
public Type getType() throws MappingException
- Specified by:
getTypein interfaceValue- Overrides:
getTypein classSimpleValue- Throws:
MappingException
-
getMetaType
public String getMetaType()
-
setMetaType
public void setMetaType(String type)
-
getMetaValues
public Map getMetaValues()
-
setMetaValues
public void setMetaValues(Map metaValues)
-
setTypeUsingReflection
public void setTypeUsingReflection(String className, String propertyName) throws MappingException
- Specified by:
setTypeUsingReflectionin interfaceValue- Overrides:
setTypeUsingReflectionin classSimpleValue- Throws:
MappingException
-
accept
public Object accept(ValueVisitor visitor)
- Specified by:
acceptin interfaceValue- Overrides:
acceptin classSimpleValue
-
isSame
public boolean isSame(SimpleValue other)
- Overrides:
isSamein classSimpleValue
-
isSame
public boolean isSame(Any other)
-
-