Interface PojoMapperDelegate<MPBS>
- Type Parameters:
MPBS
- The Java type of the partial build state of the produced mapping.
- All Superinterfaces:
BackendMapperContext
A delegate for the POJO mapper,
exposing hooks so that mappers based on the POJO mapper can consume metadata.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Close any allocated resource.createContainedTypeExtendedMappingCollector
(PojoRawTypeModel<E> rawTypeModel, String entityName) createIndexedTypeExtendedMappingCollector
(PojoRawTypeModel<E> rawTypeModel, String entityName) default BackendMappingHints
hints()
prepareBuild
(PojoMappingDelegate mappingDelegate) Partially build the mapping based on the information provided previously.
-
Method Details
-
closeOnFailure
void closeOnFailure()Close any allocated resource.This method is called when an error occurs while starting up Hibernate Search. When this method is called, it is guaranteed to be the last call on this object.
-
hints
- Specified by:
hints
in interfaceBackendMapperContext
-
createIndexedTypeExtendedMappingCollector
<E> PojoIndexedTypeExtendedMappingCollector createIndexedTypeExtendedMappingCollector(PojoRawTypeModel<E> rawTypeModel, String entityName) - Type Parameters:
E
- The indexed entity type.- Parameters:
rawTypeModel
- The raw type model for an indexed entity type, i.e. a type mapped to an index directly.entityName
- The name of the entity type.- Returns:
- A collector of extended mapping information.
-
createContainedTypeExtendedMappingCollector
<E> PojoContainedTypeExtendedMappingCollector createContainedTypeExtendedMappingCollector(PojoRawTypeModel<E> rawTypeModel, String entityName) - Type Parameters:
E
- The contained entity type.- Parameters:
rawTypeModel
- The raw type model for a contained entity type, i.e. a type mapped to indexes only indirectly by indexed-embedding.entityName
- The name of the entity type.- Returns:
- A collector of extended mapping information.
-
prepareBuild
Partially build the mapping based on the information provided previously.May only be called once on a given object.
- Parameters:
mappingDelegate
- APojoMappingDelegate
.- Returns:
- The partially-built mapping.
-