public final class FullTextIndexEventListener extends Object implements org.hibernate.event.spi.PostDeleteEventListener, org.hibernate.event.spi.PostInsertEventListener, org.hibernate.event.spi.PostUpdateEventListener, org.hibernate.event.spi.PostCollectionRecreateEventListener, org.hibernate.event.spi.PostCollectionRemoveEventListener, org.hibernate.event.spi.PostCollectionUpdateEventListener, org.hibernate.event.spi.FlushEventListener, Serializable
Constructor and Description |
---|
FullTextIndexEventListener() |
Modifier and Type | Method and Description |
---|---|
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.
|
ExtendedSearchIntegrator |
getExtendedSearchFactoryIntegrator() |
void |
initialize(ExtendedSearchIntegrator extendedIntegrator)
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 void |
processWork(String tenantIdentifier,
Object 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
|
public void onPostDelete(org.hibernate.event.spi.PostDeleteEvent event)
onPostDelete
in interface org.hibernate.event.spi.PostDeleteEventListener
public void onPostInsert(org.hibernate.event.spi.PostInsertEvent event)
onPostInsert
in interface org.hibernate.event.spi.PostInsertEventListener
public void onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event)
onPostUpdate
in interface org.hibernate.event.spi.PostUpdateEventListener
public void onPostRecreateCollection(org.hibernate.event.spi.PostCollectionRecreateEvent event)
onPostRecreateCollection
in interface org.hibernate.event.spi.PostCollectionRecreateEventListener
public void onPostRemoveCollection(org.hibernate.event.spi.PostCollectionRemoveEvent event)
onPostRemoveCollection
in interface org.hibernate.event.spi.PostCollectionRemoveEventListener
public void onPostUpdateCollection(org.hibernate.event.spi.PostCollectionUpdateEvent event)
onPostUpdateCollection
in interface org.hibernate.event.spi.PostCollectionUpdateEventListener
public void onFlush(org.hibernate.event.spi.FlushEvent event)
onFlush
in interface org.hibernate.event.spi.FlushEventListener
public ExtendedSearchIntegrator getExtendedSearchFactoryIntegrator()
public String[] getDirtyPropertyNames(org.hibernate.event.spi.PostUpdateEvent event)
public void initialize(ExtendedSearchIntegrator extendedIntegrator)
extendedIntegrator
- the ExtendedSearchIntegrator
public void addSynchronization(org.hibernate.event.spi.EventSource eventSource, Synchronization synchronization)
eventSource
- should be the Session doing the flushsynchronization
- the synchronisation instanceprotected void processWork(String tenantIdentifier, Object 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 builderDocumentBuilder
for the specified objectpublic boolean requiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister persister)
requiresPostCommitHanding
in interface org.hibernate.event.spi.PostDeleteEventListener
requiresPostCommitHanding
in interface org.hibernate.event.spi.PostInsertEventListener
requiresPostCommitHanding
in interface org.hibernate.event.spi.PostUpdateEventListener
Copyright © 2006–2016 Hibernate. All rights reserved.