Interface AutomaticIndexingMappingContext
-
public interface AutomaticIndexingMappingContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AutomaticIndexingQueueEventProcessingPlancreateIndexingQueueEventProcessingPlan(Session session)EntityReferenceFactory<EntityReference>entityReferenceFactory()FailureHandlerfailureHandler()SessionFactoryImplementorsessionFactory()
-
-
-
Method Detail
-
sessionFactory
SessionFactoryImplementor sessionFactory()
- Returns:
- The Hibernate ORM
SessionFactory.
-
failureHandler
FailureHandler failureHandler()
- Returns:
- A failure handler, to report indexing errors in background processes.
-
createIndexingQueueEventProcessingPlan
AutomaticIndexingQueueEventProcessingPlan createIndexingQueueEventProcessingPlan(Session session)
- Parameters:
session- A Hibernate ORMSessioncreated 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(), which is asynchronous and returns a future.
-
entityReferenceFactory
EntityReferenceFactory<EntityReference> entityReferenceFactory()
-
-