Interface EntityConverter


public interface EntityConverter
Can convert an entity before indexing it.
Author:
Fabio Massimo Ercoli
  • Method Details

    • targetType

      Class<?> targetType()
      Returns:
      The type that is supposed to be converted
    • convertedTypeIdentifiers

      Set<org.hibernate.search.mapper.pojo.model.spi.PojoRawTypeIdentifier<?>> convertedTypeIdentifiers()
      Returns:
      The resulting converted type
    • typeIsIndexed

      boolean typeIsIndexed(Class<?> type)
      Parameters:
      type - The type to check
      Returns:
      Whether the type is supposed to be converted
    • convert

      EntityConverter.ConvertedEntity convert(Object entity, Object providedId)
      Perform the conversion.
      Parameters:
      entity - The entity to convert
      providedId - The id that could be used in the conversion process
      Returns:
      The converted entity