Top Description Fields Constructors Methods
org.hibernate.mapping

public Class Any

extends SimpleValue
Class Inheritance
Imports
java.util.Map, .Objects, org.hibernate.MappingException, org.hibernate.boot.spi.MetadataBuildingContext, .MetadataImplementor, org.hibernate.type.MetaType, .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 boolean
private String
private Map<K, V>
Inherited from org.hibernate.mapping.SimpleValue:
DEFAULT_ID_GEN_STRATEGY

Constructor Summary

AccessConstructor and Description
public
Any(MetadataImplementor metadata, Table table)

Deprecated Use Any#Any(MetadataBuildingContext, Table) instead.
public
Any(MetadataBuildingContext buildingContext, Table table)

Deprecated as a consequence of Table being deprecated.

Method Summary

Modifier and TypeMethod and Description
public Object
public String
public String
public Map<K, V>
public Type
public boolean
public boolean
public boolean
isSame(Any other)

public void
setIdentifierType(String identifierType)

public void
setLazy(boolean lazy)

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

public void
setTypeByReflection(String propertyClass, String propertyName)

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

Field Detail

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

Constructor Detail

Anyback to summary
public Any(MetadataImplementor metadata, Table table)
Annotations
@Deprecated
Anyback to summary
public Any(MetadataBuildingContext buildingContext, Table table)

Deprecated

as a consequence of Table being deprecated. See corresponding docs for further information.

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.

isLazyback to summary
public boolean isLazy()
isSameback to summary
public boolean isSame(SimpleValue other)

Overrides org.hibernate.mapping.SimpleValue.isSame.

Annotations
@Override
isSameback to summary
public boolean isSame(Any other)
setIdentifierTypeback to summary
public void setIdentifierType(String identifierType)
setLazyback to summary
public void setLazy(boolean lazy)
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.