public class DefaultSearchWorkCreator<T> extends Object implements SearchWorkCreator<T>
| Constructor and Description |
|---|
DefaultSearchWorkCreator() |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.hibernate.search.backend.spi.Work<T>> |
createPerEntityTypeWorks(Class<T> entityType,
org.hibernate.search.backend.spi.WorkType workType)
Creates a collection of Work instances that Hibernate-Search should perform for all the entities of the given
entity type.
|
Collection<org.hibernate.search.backend.spi.Work<T>> |
createPerEntityWorks(T entity,
Serializable id,
org.hibernate.search.backend.spi.WorkType workType)
Creates a collection of Work instances that Hibernate-Search should perform for the given entity
|
public Collection<org.hibernate.search.backend.spi.Work<T>> createPerEntityTypeWorks(Class<T> entityType, org.hibernate.search.backend.spi.WorkType workType)
SearchWorkCreatorcreatePerEntityTypeWorks in interface SearchWorkCreator<T>entityType - the entity type that these Works should be created forworkType - the type of work to be donepublic Collection<org.hibernate.search.backend.spi.Work<T>> createPerEntityWorks(T entity, Serializable id, org.hibernate.search.backend.spi.WorkType workType)
SearchWorkCreatorcreatePerEntityWorks in interface SearchWorkCreator<T>entity - the entity that these Works should be created forid - the id of the documentworkType - the type of work to be doneCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.