Interface AnyMappingDefinition
-
public interface AnyMappingDefinition
Describes an ANY mapping
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AnyMappingDefinition.DiscriminatorMapping
Models a single discriminator mapping definition
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Type
getDiscriminatorType()
Access to the type of the value that makes up the discriminator portion of the AnyType.Type
getIdentifierType()
Access to the type of the value that makes up the identifier portion of the AnyType.java.lang.Iterable<AnyMappingDefinition.DiscriminatorMapping>
getMappingDefinedDiscriminatorMappings()
Access to discriminator mappings explicitly defined in the mapping metadata.AnyType
getType()
Access to the mapping's AnyTypeboolean
isLazy()
Was the mapping defined as lazy?
-
-
-
Method Detail
-
getType
AnyType getType()
Access to the mapping's AnyType- Returns:
- The AnyType
-
isLazy
boolean isLazy()
Was the mapping defined as lazy?- Returns:
- true/false
-
getIdentifierType
Type getIdentifierType()
Access to the type of the value that makes up the identifier portion of the AnyType.- Returns:
- The identifier type
- See Also:
AnyMetaDef.idType()
-
getDiscriminatorType
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 aMetaType
.- Returns:
- The discriminator type
- See Also:
Any.metaColumn()
,AnyMetaDef.metaType()
-
getMappingDefinedDiscriminatorMappings
java.lang.Iterable<AnyMappingDefinition.DiscriminatorMapping> getMappingDefinedDiscriminatorMappings()
Access to discriminator mappings explicitly defined in the mapping metadata. There are 2 flavors of discrimination:- 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
-
The database holds discriminator values that are interpreted to corresponding entity names based on
discriminator mappings explicitly supplied in the mapping metadata (see
AnyMetaDef.metaValues()
). In this case, this method gives access to those explicitly defined mappings.
- Returns:
- The explicitly defined discriminator value mappings.
-
-