Class PojoMappingDelegateImpl
java.lang.Object
org.hibernate.search.mapper.pojo.mapping.impl.PojoMappingDelegateImpl
- All Implemented Interfaces:
AutoCloseable,PojoMappingDelegate
-
Constructor Summary
ConstructorsConstructorDescriptionPojoMappingDelegateImpl(ThreadPoolProvider threadPoolProvider, FailureHandler failureHandler, TenancyMode tenancyMode, PojoTypeManagerContainer typeManagers, PojoSearchQueryElementRegistry searchQueryElementRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()configuredSearchIndexingPlanFilter(SearchIndexingPlanFilter filter, ConfiguredSearchIndexingPlanFilter fallback) org.hibernate.search.mapper.pojo.mapping.impl.PojoEntityReferenceFactorycreateEventProcessingPlan(PojoWorkSessionContext context, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy, PojoIndexingQueueEventSendingPlan sendingPlan) createIndexer(PojoWorkSessionContext context) createIndexingPlan(PojoWorkSessionContext context, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy) createIndexingPlan(PojoWorkSessionContext context, PojoIndexingQueueEventSendingPlan sendingPlan) <R extends EntityReference,C>
Optional<PojoScopeDelegate<R,Object, C>> createPojoAllScope(PojoScopeMappingContext mappingContext, PojoScopeTypeExtendedContextProvider<Object, C> indexedTypeExtendedContextProvider) <R extends EntityReference,E, C>
PojoScopeDelegate<R,E, C> createPojoScope(PojoScopeMappingContext mappingContext, Collection<? extends PojoRawTypeIdentifier<? extends E>> targetedTypes, PojoScopeTypeExtendedContextProvider<E, C> indexedTypeExtendedContextProvider) Deprecated.<R extends EntityReference,E, C>
PojoScopeDelegate<R,E, C> createPojoScopeForClasses(PojoScopeMappingContext mappingContext, Collection<? extends Class<? extends E>> classes, PojoScopeTypeExtendedContextProvider<E, C> indexedTypeExtendedContextProvider) Creates aPojoScopeDelegatelimited to indexed entity types among the given classes and their subtypes.<R extends EntityReference,E, C>
PojoScopeDelegate<R,E, C> createPojoScopeForEntityNames(PojoScopeMappingContext mappingContext, Class<E> expectedSuperType, Collection<String> entityNames, PojoScopeTypeExtendedContextProvider<E, C> indexedTypeExtendedContextProvider) Creates aPojoScopeDelegatelimited to indexed entity types among the entities with the given names and their subtypes.mappedTypeContext(String name)
-
Constructor Details
-
PojoMappingDelegateImpl
public PojoMappingDelegateImpl(ThreadPoolProvider threadPoolProvider, FailureHandler failureHandler, TenancyMode tenancyMode, PojoTypeManagerContainer typeManagers, PojoSearchQueryElementRegistry searchQueryElementRegistry)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePojoMappingDelegate
-
threadPoolProvider
- Specified by:
threadPoolProviderin interfacePojoMappingDelegate
-
failureHandler
- Specified by:
failureHandlerin interfacePojoMappingDelegate
-
typeIdentifierResolver
- Specified by:
typeIdentifierResolverin interfacePojoMappingDelegate
-
typeContextProvider
- Specified by:
typeContextProviderin interfacePojoMappingDelegate
-
tenancyMode
- Specified by:
tenancyModein interfacePojoMappingDelegate
-
projectionRegistry
- Specified by:
projectionRegistryin interfacePojoMappingDelegate
-
mappedTypeContext
- Specified by:
mappedTypeContextin interfacePojoMappingDelegate
-
createEntityReferenceFactory
public org.hibernate.search.mapper.pojo.mapping.impl.PojoEntityReferenceFactory createEntityReferenceFactory(PojoEntityReferenceFactoryDelegate delegate) - Specified by:
createEntityReferenceFactoryin interfacePojoMappingDelegate
-
createPojoScopeForClasses
public <R extends EntityReference,E, PojoScopeDelegate<R,C> E, createPojoScopeForClassesC> (PojoScopeMappingContext mappingContext, Collection<? extends Class<? extends E>> classes, PojoScopeTypeExtendedContextProvider<E, C> indexedTypeExtendedContextProvider) Description copied from interface:PojoMappingDelegateCreates aPojoScopeDelegatelimited to indexed entity types among the given classes and their subtypes.- Specified by:
createPojoScopeForClassesin interfacePojoMappingDelegate- Type Parameters:
R- The type of entity references.E- A supertype of all indexed entity types to include in the scope.C- The type of extended, mapper-specific type contexts.- Parameters:
mappingContext- The mapping context.classes- A collection of classes. Each must be an indexed entity type or a supertype of such type.indexedTypeExtendedContextProvider- A provider of extended, mapper-specific type contexts. that will be made available throughPojoScopeDelegate.includedIndexedTypes().- Returns:
- A
PojoScopeDelegate
-
createPojoScopeForEntityNames
public <R extends EntityReference,E, PojoScopeDelegate<R,C> E, createPojoScopeForEntityNamesC> (PojoScopeMappingContext mappingContext, Class<E> expectedSuperType, Collection<String> entityNames, PojoScopeTypeExtendedContextProvider<E, C> indexedTypeExtendedContextProvider) Description copied from interface:PojoMappingDelegateCreates aPojoScopeDelegatelimited to indexed entity types among the entities with the given names and their subtypes.- Specified by:
createPojoScopeForEntityNamesin interfacePojoMappingDelegate- Type Parameters:
R- The type of entity references.E- A supertype of all indexed entity types to include in the scope.C- The type of extended, mapper-specific type contexts.- Parameters:
mappingContext- The mapping context.expectedSuperType- A supertype of all indexed entity types to include in the scope.entityNames- A collection of entity names. Each entity type referenced in the collection must be an indexed entity type or a supertype of such type.indexedTypeExtendedContextProvider- A provider of extended, mapper-specific type contexts. that will be made available throughPojoScopeDelegate.includedIndexedTypes().- Returns:
- A
PojoScopeDelegate
-
createPojoScope
@Deprecated public <R extends EntityReference,E, PojoScopeDelegate<R,C> E, createPojoScopeC> (PojoScopeMappingContext mappingContext, Collection<? extends PojoRawTypeIdentifier<? extends E>> targetedTypes, PojoScopeTypeExtendedContextProvider<E, C> indexedTypeExtendedContextProvider) Deprecated.Description copied from interface:PojoMappingDelegateCreates aPojoScopeDelegatelimited to indexed entity types among the given types and their subtypes.- Specified by:
createPojoScopein interfacePojoMappingDelegate- Type Parameters:
R- The type of entity references.E- A supertype of all indexed entity types to include in the scope.C- The type of extended, mapper-specific type contexts.- Parameters:
mappingContext- The mapping context.targetedTypes- A collection of types. Each must be an indexed entity type or a supertype of such type.indexedTypeExtendedContextProvider- A provider of extended, mapper-specific type contexts. that will be made available throughPojoScopeDelegate.includedIndexedTypes().- Returns:
- A
PojoScopeDelegate
-
createPojoAllScope
public <R extends EntityReference,C> Optional<PojoScopeDelegate<R,Object, createPojoAllScopeC>> (PojoScopeMappingContext mappingContext, PojoScopeTypeExtendedContextProvider<Object, C> indexedTypeExtendedContextProvider) - Specified by:
createPojoAllScopein interfacePojoMappingDelegate
-
createIndexingPlan
public PojoIndexingPlan createIndexingPlan(PojoWorkSessionContext context, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy) - Specified by:
createIndexingPlanin interfacePojoMappingDelegate
-
createIndexingPlan
public PojoIndexingPlan createIndexingPlan(PojoWorkSessionContext context, PojoIndexingQueueEventSendingPlan sendingPlan) - Specified by:
createIndexingPlanin interfacePojoMappingDelegate
-
createEventProcessingPlan
public PojoIndexingQueueEventProcessingPlan createEventProcessingPlan(PojoWorkSessionContext context, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy, PojoIndexingQueueEventSendingPlan sendingPlan) - Specified by:
createEventProcessingPlanin interfacePojoMappingDelegate
-
createIndexer
- Specified by:
createIndexerin interfacePojoMappingDelegate
-
configuredSearchIndexingPlanFilter
public ConfiguredSearchIndexingPlanFilter configuredSearchIndexingPlanFilter(SearchIndexingPlanFilter filter, ConfiguredSearchIndexingPlanFilter fallback) - Specified by:
configuredSearchIndexingPlanFilterin interfacePojoMappingDelegate
-