接口 AnyMappingDefinition
-
- 所有已知实现类:
StandardAnyTypeDefinition
public interface AnyMappingDefinitionDescribes an ANY mapping- 作者:
- Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static interfaceAnyMappingDefinition.DiscriminatorMappingModels a single discriminator mapping definition
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 TypegetDiscriminatorType()Access to the type of the value that makes up the discriminator portion of the AnyType.TypegetIdentifierType()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.AnyTypegetType()Access to the mapping's AnyTypebooleanisLazy()Was the mapping defined as lazy?
-
-
-
方法详细资料
-
getType
AnyType getType()
Access to the mapping's AnyType- 返回:
- The AnyType
-
isLazy
boolean isLazy()
Was the mapping defined as lazy?- 返回:
- true/false
-
getIdentifierType
Type getIdentifierType()
Access to the type of the value that makes up the identifier portion of the AnyType.- 返回:
- The identifier type
- 另请参阅:
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.- 返回:
- The discriminator type
- 另请参阅:
Any.metaColumn(),AnyMetaDef.metaType()
-
getMappingDefinedDiscriminatorMappings
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.
- 返回:
- The explicitly defined discriminator value mappings.
-
-