Top Description Inners Methods
org.hibernate.persister.walking.spi

public Interface AnyMappingDefinition

Known Direct Implementers
org.hibernate.persister.walking.internal.StandardAnyTypeDefinition
Imports
org.hibernate.type.AnyType, .Type

Describes an ANY mapping
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
AnyMappingDefinition.DiscriminatorMapping

Models a single discriminator mapping definition

Method Summary

Modifier and TypeMethod and Description
public Type

Returns:

The discriminator type
getDiscriminatorType
()

Access to the type of the value that makes up the discriminator portion of the AnyType.

public Type

Returns:

The identifier type
getIdentifierType
()

Access to the type of the value that makes up the identifier portion of the AnyType.

public Iterable<AnyMappingDefinition.DiscriminatorMapping>

Returns:

The explicitly defined discriminator value mappings.
getMappingDefinedDiscriminatorMappings
()

Access to discriminator mappings explicitly defined in the mapping metadata.

public AnyType

Returns:

The AnyType
getType
()

Access to the mapping's AnyType

public boolean

Returns:

true/false
isLazy
()

Was the mapping defined as lazy?

Method Detail

getDiscriminatorTypeback to summary
public Type getDiscriminatorType()

Access to the type of the value that makes up the discriminator portion of the AnyType. The discriminator is historically called the "meta".

NOTE : If explicit discriminator mappings are given, the type here will be a org.hibernate.type.MetaType.

Returns:Type

The discriminator type

See Also
org.hibernate.annotations.Any#metaColumn(), org.hibernate.annotations.AnyMetaDef#metaType()
getIdentifierTypeback to summary
public Type getIdentifierType()

Access to the type of the value that makes up the identifier portion of the AnyType.

Returns:Type

The identifier type

See Also
org.hibernate.annotations.AnyMetaDef#idType()
getMappingDefinedDiscriminatorMappingsback to summary
public Iterable<AnyMappingDefinition.DiscriminatorMapping> getMappingDefinedDiscriminatorMappings()

Access to discriminator mappings explicitly defined in the mapping metadata. There are 2 flavors of discrimination:

  1. The database holds the concrete entity names. This is an implicit form, meaning that the discriminator mappings do not have to be defined in the mapping metadata. In this case, an empty iterable is returned here
  2. The database holds discriminator values that are interpreted to corresponding entity names based on discriminator mappings explicitly supplied in the mapping metadata (see org.hibernate.annotations.AnyMetaDef#metaValues()). In this case, this method gives access to those explicitly defined mappings.
Returns:Iterable<AnyMappingDefinition.DiscriminatorMapping>

The explicitly defined discriminator value mappings.

getTypeback to summary
public AnyType getType()

Access to the mapping's AnyType

Returns:AnyType

The AnyType

isLazyback to summary
public boolean isLazy()

Was the mapping defined as lazy?

Returns:boolean

true/false

org.hibernate.persister.walking.spi back to summary

public Interface AnyMappingDefinition.DiscriminatorMapping


Models a single discriminator mapping definition

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

The defined discriminator value
getDiscriminatorValue
()

Access to the defined discriminator value (the database value) being mapped.

public String

Returns:

The defined entity name
getEntityName
()

Access to the defined entity name corresponding to the defined getDiscriminatorValue()

Method Detail

getDiscriminatorValueback to summary
public Object getDiscriminatorValue()

Access to the defined discriminator value (the database value) being mapped.

Returns:Object

The defined discriminator value

getEntityNameback to summary
public String getEntityName()

Access to the defined entity name corresponding to the defined getDiscriminatorValue()

Returns:String

The defined entity name