org.hibernate.search.spi

## Interface IndexedTypeIdentifier

- All Known Implementing Classes:
    PojoIndexedTypeIdentifier

      public interface IndexedTypeIdentifier

  Identifies and indexed type. In applications based on Hibernate ORM this will essentially encapsulate a `Class` instance. In upcoming extensions an identifier might be backed by a String. N.B. the Class case is simultaneously considered "legacy" and a special case: an annotated class has direct access to its metadata, while a typical identifier would need to be used to lookup the metadata related to it from an external source.
  Author:
    Sanne Grinovero (C) 2014 Red Hat Inc.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `IndexedTypeSet` | `asTypeSet()`
    `String` | `getName()` Each indexed type must be identified by name which is unique within the scope of a `SearchIntegrator`.
    `Class<?>` | `getPojoType()` Deprecated. This only exists to facilitate an iterative integration, and will be removed ASAP.

- - ### Method Detail

    - #### getName

          String getName()

      Each indexed type must be identified by name which is unique within the scope of a `SearchIntegrator`.
      Returns:
        the name of this type.

    - #### getPojoType

          @Deprecated
          Class<?> getPojoType()

      Deprecated. This only exists to facilitate an iterative integration, and will be removed ASAP.
      Return the class type of the unrelying POJO.
      Returns:
        the class of the indexed POJO, or null if not using POJO mapping.

    - #### asTypeSet

          IndexedTypeSet asTypeSet()

      Returns:
        a representation of this type as a singleton IndexedTypesSet

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved