org.hibernate.search.indexes.interceptor
Interface EntityIndexingInterceptor<T>
- All Known Implementing Classes:
- DefaultEntityInterceptor, DontInterceptEntityInterceptor
public interface EntityIndexingInterceptor<T>
This interceptor is called upon indexing operations to optionally change the behavior.
Implementations must be thread safe and should have a no-arg constructor.
Typical use case include so called soft deletes.
- Author:
- Emmanuel Bernard
onAdd
IndexingOverride onAdd(T entity)
onUpdate
IndexingOverride onUpdate(T entity)
onDelete
IndexingOverride onDelete(T entity)
onCollectionUpdate
IndexingOverride onCollectionUpdate(T entity)
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved