接口 AnyMappingDefinition

  • 所有已知实现类:
    StandardAnyTypeDefinition

    public interface AnyMappingDefinition
    Describes an ANY mapping
    作者:
    Steve Ebersole
    • 方法详细资料

      • 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 a MetaType.

        返回:
        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:
        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 AnyMetaDef.metaValues()). In this case, this method gives access to those explicitly defined mappings.
        返回:
        The explicitly defined discriminator value mappings.