Top Description Fields Constructors Methods
org.hibernate.mapping

public Class Any

extends SimpleValue
Class Inheritance
Imports
java.util.Map, org.hibernate.MappingException, org.hibernate.cfg.Mappings, org.hibernate.type.MetaType, .AnyType, .Type

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

Field Summary

Modifier and TypeField and Description
private String
private String
private Map<K, V>
Inherited from org.hibernate.mapping.SimpleValue:
DEFAULT_ID_GEN_STRATEGY

Constructor Summary

AccessConstructor and Description
public
Any(Mappings mappings, Table table)

Method Summary

Modifier and TypeMethod and Description
public Object
public String
public String
public Map<K, V>
public Type
public void
setIdentifierType(String identifierType)

public void
public void
setMetaValues(Map<K, V> metaValues)

public void
setTypeByReflection(String propertyClass, String propertyName)

public void
Inherited from org.hibernate.mapping.SimpleValue:
addColumnaddFormulacreateForeignKeycreateForeignKeyOfEntitycreateIdentifierGeneratorgetColumnInsertabilitygetColumnIteratorgetColumnSpangetColumnUpdateabilitygetConstraintColumnsgetFetchModegetForeignKeyNamegetIdentifierGeneratorPropertiesgetIdentifierGeneratorStrategygetMappingsgetNullValuegetTablegetTypeNamegetTypeParametershasFormulaisAlternateUniqueKeyisCascadeDeleteEnabledisIdentityColumnisNullableisSimpleValueisTypeSpecifiedisUpdateableisValidsetAlternateUniqueKeysetCascadeDeleteEnabledsetForeignKeyNamesetIdentifierGeneratorPropertiessetIdentifierGeneratorStrategysetNullValuesetTablesetTypeNamesetTypeParameterstoString

Field Detail

identifierTypeNameback to summary
private String identifierTypeName
metaTypeNameback to summary
private String metaTypeName
metaValuesback to summary
private Map<K, V> metaValues

Constructor Detail

Anyback to summary
public Any(Mappings mappings, Table table)

Method Detail

acceptback to summary
public Object accept(ValueVisitor visitor)

Overrides org.hibernate.mapping.SimpleValue.accept.

Implements org.hibernate.mapping.Value.accept.

getIdentifierTypeback to summary
public String getIdentifierType()
getMetaTypeback to summary
public String getMetaType()
getMetaValuesback to summary
public Map<K, V> getMetaValues()
getTypeback to summary
public Type getType() throws MappingException

Overrides org.hibernate.mapping.SimpleValue.getType.

Implements org.hibernate.mapping.Value.getType.

setIdentifierTypeback to summary
public void setIdentifierType(String identifierType)
setMetaTypeback to summary
public void setMetaType(String type)
setMetaValuesback to summary
public void setMetaValues(Map<K, V> metaValues)
setTypeByReflectionback to summary
public void setTypeByReflection(String propertyClass, String propertyName)
setTypeUsingReflectionback to summary
public void setTypeUsingReflection(String className, String propertyName) throws MappingException

Overrides org.hibernate.mapping.SimpleValue.setTypeUsingReflection.

Implements org.hibernate.mapping.Value.setTypeUsingReflection.