public class StandardAnyTypeDefinition extends Object implements AnyMappingDefinition
AnyMappingDefinition.DiscriminatorMapping
Constructor and Description |
---|
StandardAnyTypeDefinition(AnyType anyType,
boolean definedAsLazy) |
Modifier and Type | Method and 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.
|
Iterable<AnyMappingDefinition.DiscriminatorMapping> |
getMappingDefinedDiscriminatorMappings()
Access to discriminator mappings explicitly defined in the mapping metadata.
|
AnyType |
getType()
Access to the mapping's AnyType
|
boolean |
isLazy()
Was the mapping defined as lazy?
|
public StandardAnyTypeDefinition(AnyType anyType, boolean definedAsLazy)
public AnyType getType()
AnyMappingDefinition
getType
in interface AnyMappingDefinition
public boolean isLazy()
AnyMappingDefinition
isLazy
in interface AnyMappingDefinition
public Type getIdentifierType()
AnyMappingDefinition
getIdentifierType
in interface AnyMappingDefinition
AnyMetaDef.idType()
public Type getDiscriminatorType()
AnyMappingDefinition
MetaType
.getDiscriminatorType
in interface AnyMappingDefinition
Any.metaColumn()
,
AnyMetaDef.metaType()
public Iterable<AnyMappingDefinition.DiscriminatorMapping> getMappingDefinedDiscriminatorMappings()
AnyMappingDefinition
AnyMetaDef.metaValues()
). In this case, this method gives access
to those explicitly defined mappings.
getMappingDefinedDiscriminatorMappings
in interface AnyMappingDefinition
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.