Interface AutomaticIndexingMappingContext
public interface AutomaticIndexingMappingContext
-
Method Summary
Modifier and TypeMethodDescriptioncreateIndexingQueueEventProcessingPlan
(org.hibernate.Session session) org.hibernate.engine.spi.SessionFactoryImplementor
-
Method Details
-
sessionFactory
org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory()- Returns:
- The Hibernate ORM
SessionFactory
.
-
failureHandler
FailureHandler failureHandler()- Returns:
- A failure handler, to report indexing errors in background processes.
-
createIndexingQueueEventProcessingPlan
AutomaticIndexingQueueEventProcessingPlan createIndexingQueueEventProcessingPlan(org.hibernate.Session session) - Parameters:
session
- A Hibernate ORMSession
created from the samesessionFactory()
as this mapping.- Returns:
- An event processing plan for the given session.
It will not get executed automatically: you need to call
AutomaticIndexingQueueEventProcessingPlan.executeAndReport(OperationSubmitter)
, which is asynchronous and returns a future.
-
entityReferenceFactory
EntityReferenceFactory entityReferenceFactory()
-