|
||||||||||
| 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(org.hibernate.event.spi.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(org.hibernate.event.spi.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(org.hibernate.event.spi.FlushEvent event)
Make sure the indexes are updated right after the hibernate flush, avoiding object loading during a flush. |
|
void |
onPostDelete(org.hibernate.event.spi.PostDeleteEvent event)
|
|
void |
onPostInsert(org.hibernate.event.spi.PostInsertEvent event)
|
|
void |
onPostRecreateCollection(org.hibernate.event.spi.PostCollectionRecreateEvent event)
|
|
void |
onPostRemoveCollection(org.hibernate.event.spi.PostCollectionRemoveEvent event)
|
|
void |
onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event)
|
|
void |
onPostUpdateCollection(org.hibernate.event.spi.PostCollectionUpdateEvent event)
|
|
protected void |
processCollectionEvent(org.hibernate.event.spi.AbstractCollectionEvent event)
|
|
protected
|
processWork(T entity,
Serializable id,
WorkType workType,
org.hibernate.event.spi.AbstractEvent event,
boolean identifierRollbackEnabled)
|
|
boolean |
requiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister persister)
Required since Hibernate ORM 4.3 |
|
| 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(org.hibernate.event.spi.PostDeleteEvent event)
onPostDelete in interface org.hibernate.event.spi.PostDeleteEventListenerpublic void onPostInsert(org.hibernate.event.spi.PostInsertEvent event)
onPostInsert in interface org.hibernate.event.spi.PostInsertEventListenerpublic void onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event)
onPostUpdate in interface org.hibernate.event.spi.PostUpdateEventListenerpublic void onPostRecreateCollection(org.hibernate.event.spi.PostCollectionRecreateEvent event)
onPostRecreateCollection in interface org.hibernate.event.spi.PostCollectionRecreateEventListenerpublic void onPostRemoveCollection(org.hibernate.event.spi.PostCollectionRemoveEvent event)
onPostRemoveCollection in interface org.hibernate.event.spi.PostCollectionRemoveEventListenerpublic void onPostUpdateCollection(org.hibernate.event.spi.PostCollectionUpdateEvent event)
onPostUpdateCollection in interface org.hibernate.event.spi.PostCollectionUpdateEventListenerpublic void onFlush(org.hibernate.event.spi.FlushEvent event)
onFlush in interface org.hibernate.event.spi.FlushEventListenerpublic SearchFactoryImplementor getSearchFactoryImplementor()
public String[] getDirtyPropertyNames(org.hibernate.event.spi.PostUpdateEvent event)
public void initialize(SearchFactoryImplementor searchFactoryImplementor)
public void addSynchronization(org.hibernate.event.spi.EventSource eventSource,
Synchronization synchronization)
eventSource - should be the Session doing the flushsynchronization - the synchronisation instance
protected <T> void processWork(T entity,
Serializable id,
WorkType workType,
org.hibernate.event.spi.AbstractEvent event,
boolean identifierRollbackEnabled)
protected void processCollectionEvent(org.hibernate.event.spi.AbstractCollectionEvent event)
protected AbstractDocumentBuilder getDocumentBuilder(Object instance)
instance - the object instance for which to retrieve the document builder
DocumentBuilder for the specified objectpublic boolean requiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister persister)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||