|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.search.event.impl.FullTextIndexEventListener
public class FullTextIndexEventListener
Hibernate ORM event listener called by various ORM life cycle events. This listener must be registered in order to enable automatic index updates.
Constructor Summary | |
---|---|
FullTextIndexEventListener()
|
Method Summary | ||
---|---|---|
void |
addSynchronization(EventSource eventSource,
Synchronization synchronization)
Adds a synchronization to be performed in the onFlush method; should only be used as workaround for the case a flush is happening out of transaction. |
|
String[] |
getDirtyPropertyNames(PostUpdateEvent event)
|
|
protected AbstractDocumentBuilder |
getDocumentBuilder(Object instance)
It is not suggested to extend FullTextIndexEventListener, but when needed to implement special use cases implementors might need this method. |
|
SearchFactoryImplementor |
getSearchFactoryImplementor()
|
|
void |
initialize(SearchFactoryImplementor searchFactoryImplementor)
Initialize method called by Hibernate Core when the SessionFactory starts |
|
void |
onFlush(FlushEvent event)
Make sure the indexes are updated right after the hibernate flush, avoiding object loading during a flush. |
|
void |
onPostDelete(PostDeleteEvent event)
|
|
void |
onPostInsert(PostInsertEvent event)
|
|
void |
onPostRecreateCollection(PostCollectionRecreateEvent event)
|
|
void |
onPostRemoveCollection(PostCollectionRemoveEvent event)
|
|
void |
onPostUpdate(PostUpdateEvent event)
|
|
void |
onPostUpdateCollection(PostCollectionUpdateEvent event)
|
|
protected void |
processCollectionEvent(AbstractCollectionEvent event)
|
|
protected
|
processWork(T entity,
Serializable id,
WorkType workType,
AbstractEvent event,
boolean identifierRollbackEnabled)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FullTextIndexEventListener()
Method Detail |
---|
public void onPostDelete(PostDeleteEvent event)
onPostDelete
in interface PostDeleteEventListener
public void onPostInsert(PostInsertEvent event)
onPostInsert
in interface PostInsertEventListener
public void onPostUpdate(PostUpdateEvent event)
onPostUpdate
in interface PostUpdateEventListener
public void onPostRecreateCollection(PostCollectionRecreateEvent event)
onPostRecreateCollection
in interface PostCollectionRecreateEventListener
public void onPostRemoveCollection(PostCollectionRemoveEvent event)
onPostRemoveCollection
in interface PostCollectionRemoveEventListener
public void onPostUpdateCollection(PostCollectionUpdateEvent event)
onPostUpdateCollection
in interface PostCollectionUpdateEventListener
public void onFlush(FlushEvent event)
onFlush
in interface FlushEventListener
public SearchFactoryImplementor getSearchFactoryImplementor()
public String[] getDirtyPropertyNames(PostUpdateEvent event)
public void initialize(SearchFactoryImplementor searchFactoryImplementor)
public void addSynchronization(EventSource eventSource, Synchronization synchronization)
eventSource
- should be the Session doing the flushsynchronization
- the synchronisation instanceprotected <T> void processWork(T entity, Serializable id, WorkType workType, AbstractEvent event, boolean identifierRollbackEnabled)
protected void processCollectionEvent(AbstractCollectionEvent event)
protected AbstractDocumentBuilder getDocumentBuilder(Object instance)
instance
- the object instance for which to retrieve the document builder
DocumentBuilder
for the specified object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |