Class DefaultSearchWorkCreator

    • Constructor Detail

      • DefaultSearchWorkCreator

        public DefaultSearchWorkCreator()
    • Method Detail

      • createPerEntityTypeWorks

        public Collection<org.hibernate.search.backend.spi.Work> createPerEntityTypeWorks​(org.hibernate.search.spi.IndexedTypeIdentifier entityType,
                                                                                          org.hibernate.search.backend.spi.WorkType workType)
        Description copied from interface: SearchWorkCreator
        Creates a collection of Work instances that Hibernate-Search should perform for all the entities of the given entity type.
        Specified by:
        createPerEntityTypeWorks in interface SearchWorkCreator
        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
      • createPerEntityWorks

        public Collection<org.hibernate.search.backend.spi.Work> createPerEntityWorks​(Object entity,
                                                                                      Serializable id,
                                                                                      org.hibernate.search.backend.spi.WorkType workType)
        Description copied from interface: SearchWorkCreator
        Creates a collection of Work instances that Hibernate-Search should perform for the given entity
        Specified by:
        createPerEntityWorks in interface SearchWorkCreator
        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
      • createEntityWork

        public org.hibernate.search.backend.spi.Work createEntityWork​(Serializable id,
                                                                      org.hibernate.search.spi.IndexedTypeIdentifier entityType,
                                                                      org.hibernate.search.backend.spi.WorkType workType)
        Description copied from interface: SearchWorkCreator
        Creates a Work instance for a given entity.
        Specified by:
        createEntityWork in interface SearchWorkCreator
        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