|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.search.indexes.interceptor.DefaultEntityInterceptor
public class DefaultEntityInterceptor
Default interceptor logic: If the hierarchy does not define a specific interceptor, then no interception logic is applied If the hierarchy defines a specific interceptor, then we inherit the explicit interceptor defined by the most specific superclass and use it.
Constructor Summary | |
---|---|
DefaultEntityInterceptor()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultEntityInterceptor()
Method Detail |
---|
public IndexingOverride onAdd(Object entity)
EntityIndexingInterceptor
onAdd
in interface EntityIndexingInterceptor<Object>
entity
- The entity instance
IndexingOverride.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)
EntityIndexingInterceptor
onUpdate
in interface EntityIndexingInterceptor<Object>
entity
- The entity instance
IndexingOverride.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)
EntityIndexingInterceptor
onDelete
in interface EntityIndexingInterceptor<Object>
entity
- The entity instance
IndexingOverride.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)
EntityIndexingInterceptor
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.
onCollectionUpdate
in interface EntityIndexingInterceptor<Object>
entity
- The entity instance
IndexingOverride.APPLY_DEFAULT
to have the instance removed and re-added to the index as
normal; return a different value to override the behaviour.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |