接口 CollectionElementDefinition


  • public interface CollectionElementDefinition
    Represents a collection element.
    作者:
    Steve Ebersole
    • 方法详细资料

      • getCollectionDefinition

        CollectionDefinition getCollectionDefinition()
        Returns the collection definition.
        返回:
        the collection definition.
      • getType

        Type getType()
        Returns the collection element type.
        返回:
        the collection element type
      • toAnyMappingDefinition

        AnyMappingDefinition toAnyMappingDefinition()
        If the element type returned by getType() is an AnyType, then the any mapping definition for the collection element is returned; otherwise, IllegalStateException is thrown.
        返回:
        the any mapping definition for the collection element.
        抛出:
        IllegalStateException - if the collection element type returned by getType() is not of type AnyType.
      • toEntityDefinition

        EntityDefinition toEntityDefinition()
        If the element type returned by getType() is an EntityType, then the entity definition for the collection element is returned; otherwise, IllegalStateException is thrown.
        返回:
        the entity definition for the collection element.
        抛出:
        IllegalStateException - if the collection element type returned by getType() is not of type EntityType.