Interface CollectionMetadata

All Known Implementing Classes:
AbstractCollectionPersister, BasicCollectionPersister, OneToManyPersister

public interface CollectionMetadata
Exposes collection metadata to the application
  • Method Summary

    Modifier and Type
    Method
    Description
    The collection element type
    The collection index type (or null if the collection has no index)
    The collection key type
    The name of this collection role
    boolean
    Is this collection indexed?
    boolean
    Is the collection an array?
    boolean
    Is the collection lazily initialized?
    boolean
    Is the collection a primitive array?
  • Method Details

    • getKeyType

      Type getKeyType()
      The collection key type
    • getElementType

      Type getElementType()
      The collection element type
    • getIndexType

      Type getIndexType()
      The collection index type (or null if the collection has no index)
    • hasIndex

      boolean hasIndex()
      Is this collection indexed?
    • getRole

      String getRole()
      The name of this collection role
    • isArray

      boolean isArray()
      Is the collection an array?
    • isPrimitiveArray

      boolean isPrimitiveArray()
      Is the collection a primitive array?
    • isLazy

      boolean isLazy()
      Is the collection lazily initialized?