Interface SearchWorkCreator


  • public interface SearchWorkCreator
    Deprecated.
    since 10.1.1. To be removed in version 12.0 after migrating to Hibernate Search 6.
    Creates Work instances that should be performed by Hibernate-Search.
    Author:
    Marko Luksa
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      org.hibernate.search.backend.spi.Work createPerEntityTypeWork​(org.hibernate.search.spi.IndexedTypeIdentifier entityType, org.hibernate.search.backend.spi.WorkType workType)
      Deprecated.
      Creates a collection of Work instances that Hibernate-Search should perform for all the entities of the given entity type.
      org.hibernate.search.backend.spi.Work createPerEntityWork​(Serializable id, org.hibernate.search.spi.IndexedTypeIdentifier entityType, org.hibernate.search.backend.spi.WorkType workType)
      Deprecated.
      Creates a Work instance for a given entity.
      org.hibernate.search.backend.spi.Work createPerEntityWork​(Object entity, Serializable id, org.hibernate.search.backend.spi.WorkType workType)
      Deprecated.
      Creates a collection of Work instances that Hibernate-Search should perform for the given entity
    • Method Detail

      • createPerEntityTypeWork

        org.hibernate.search.backend.spi.Work createPerEntityTypeWork​(org.hibernate.search.spi.IndexedTypeIdentifier entityType,
                                                                      org.hibernate.search.backend.spi.WorkType workType)
        Deprecated.
        Creates a collection of Work instances that Hibernate-Search should perform for all the entities of the given entity type.
        Parameters:
        entityType - the entity type that these Works should be created for
        workType - the type of work to be done
        Returns:
        collection of Work instances
      • createPerEntityWork

        org.hibernate.search.backend.spi.Work createPerEntityWork​(Object entity,
                                                                  Serializable id,
                                                                  org.hibernate.search.backend.spi.WorkType workType)
        Deprecated.
        Creates a collection of Work instances that Hibernate-Search should perform for the given entity
        Parameters:
        entity - the entity that these Works should be created for
        id - the id of the document
        workType - the type of work to be done
        Returns:
        collection of Work instances
      • createPerEntityWork

        org.hibernate.search.backend.spi.Work createPerEntityWork​(Serializable id,
                                                                  org.hibernate.search.spi.IndexedTypeIdentifier entityType,
                                                                  org.hibernate.search.backend.spi.WorkType workType)
        Deprecated.
        Creates a Work instance for a given entity.
        Parameters:
        id - the id of the entity
        entityType - the entity type that the Work should be created for
        workType - the type of the Work to be done
        Returns:
        Work instance to be performed by the Hibernate Search engine