org.hibernate.search.indexes.interceptor
Class DefaultEntityInterceptor
java.lang.Object
org.hibernate.search.indexes.interceptor.DefaultEntityInterceptor
- All Implemented Interfaces:
- EntityIndexingInterceptor<Object>
public class DefaultEntityInterceptor
- extends Object
- implements EntityIndexingInterceptor<Object>
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.
- Author:
- Emmanuel Bernard
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultEntityInterceptor
public DefaultEntityInterceptor()
onAdd
public IndexingOverride onAdd(Object entity)
- Specified by:
onAdd
in interface EntityIndexingInterceptor<Object>
onUpdate
public IndexingOverride onUpdate(Object entity)
- Specified by:
onUpdate
in interface EntityIndexingInterceptor<Object>
onDelete
public IndexingOverride onDelete(Object entity)
- Specified by:
onDelete
in interface EntityIndexingInterceptor<Object>
onCollectionUpdate
public IndexingOverride onCollectionUpdate(Object entity)
- Specified by:
onCollectionUpdate
in interface EntityIndexingInterceptor<Object>
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved