类 StandardAnyTypeDefinition
- java.lang.Object
-
- org.hibernate.persister.walking.internal.StandardAnyTypeDefinition
-
- 所有已实现的接口:
AnyMappingDefinition
public class StandardAnyTypeDefinition extends Object implements AnyMappingDefinition
- 作者:
- Steve Ebersole
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.hibernate.persister.walking.spi.AnyMappingDefinition
AnyMappingDefinition.DiscriminatorMapping
-
-
构造器概要
构造器 构造器 说明 StandardAnyTypeDefinition(AnyType anyType, boolean definedAsLazy)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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?
-
-
-
构造器详细资料
-
StandardAnyTypeDefinition
public StandardAnyTypeDefinition(AnyType anyType, boolean definedAsLazy)
-
-
方法详细资料
-
getType
public AnyType getType()
从接口复制的说明:AnyMappingDefinitionAccess to the mapping's AnyType- 指定者:
getType在接口中AnyMappingDefinition- 返回:
- The AnyType
-
isLazy
public boolean isLazy()
从接口复制的说明:AnyMappingDefinitionWas the mapping defined as lazy?- 指定者:
isLazy在接口中AnyMappingDefinition- 返回:
- true/false
-
getIdentifierType
public Type getIdentifierType()
从接口复制的说明:AnyMappingDefinitionAccess to the type of the value that makes up the identifier portion of the AnyType.- 指定者:
getIdentifierType在接口中AnyMappingDefinition- 返回:
- The identifier type
- 另请参阅:
AnyMetaDef.idType()
-
getDiscriminatorType
public Type getDiscriminatorType()
从接口复制的说明:AnyMappingDefinitionAccess 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.- 指定者:
getDiscriminatorType在接口中AnyMappingDefinition- 返回:
- The discriminator type
- 另请参阅:
Any.metaColumn(),AnyMetaDef.metaType()
-
getMappingDefinedDiscriminatorMappings
public Iterable<AnyMappingDefinition.DiscriminatorMapping> getMappingDefinedDiscriminatorMappings()
从接口复制的说明:AnyMappingDefinitionAccess 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.
- 指定者:
getMappingDefinedDiscriminatorMappings在接口中AnyMappingDefinition- 返回:
- The explicitly defined discriminator value mappings.
-
-