org.hibernate.search.indexes.interceptor
public class DontInterceptEntityInterceptor extends Object implements EntityIndexingInterceptor<Object>
| Constructor and Description |
|---|
DontInterceptEntityInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
IndexingOverride |
onAdd(Object entity)
Triggered when an entity instance T should be added to the index, either by an event listener or by the
MassIndexer.
|
IndexingOverride |
onCollectionUpdate(Object entity)
A CollectionUpdate event is fired on collections included in an indexed entity, for example when using
IndexedEmbedded This event is triggered on each indexed domain instance T contained in such a collection;
this is generally similar to a EntityIndexingInterceptor.onUpdate(Object) event. |
IndexingOverride |
onDelete(Object entity)
Triggered when an entity instance T should be deleted from the index.
|
IndexingOverride |
onUpdate(Object entity)
Triggered when an entity instance T should be updated in the index.
|
public IndexingOverride onAdd(Object entity)
EntityIndexingInterceptoronAdd in interface EntityIndexingInterceptor<Object>entity - The entity instanceIndexingOverride.APPLY_DEFAULT to have the instance be added to the index as normal; return a
different value to override the behaviour.public IndexingOverride onUpdate(Object entity)
EntityIndexingInterceptoronUpdate in interface EntityIndexingInterceptor<Object>entity - The entity instanceIndexingOverride.APPLY_DEFAULT to have the instance removed and re-added to the index as
normal; return a different value to override the behaviour.public IndexingOverride onDelete(Object entity)
EntityIndexingInterceptoronDelete in interface EntityIndexingInterceptor<Object>entity - The entity instanceIndexingOverride.APPLY_DEFAULT to have the instance removed from the index as normal;
return a different value to override the behaviour.public IndexingOverride onCollectionUpdate(Object entity)
EntityIndexingInterceptorIndexedEmbedded This event is triggered on each indexed domain instance T contained in such a collection;
this is generally similar to a EntityIndexingInterceptor.onUpdate(Object) event.onCollectionUpdate in interface EntityIndexingInterceptor<Object>entity - The entity instanceIndexingOverride.APPLY_DEFAULT to have the instance removed and re-added to the index as
normal; return a different value to override the behaviour.Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved