Class HibernateOrmMapperDelegate
java.lang.Object
org.hibernate.search.mapper.orm.mapping.impl.HibernateOrmMapperDelegate
- All Implemented Interfaces:
BackendMapperContext,PojoMapperDelegate<HibernateOrmMappingPartialBuildState>
public final class HibernateOrmMapperDelegate
extends Object
implements PojoMapperDelegate<HibernateOrmMappingPartialBuildState>
-
Method Summary
Modifier and TypeMethodDescriptionvoidClose any allocated resource.createContainedTypeExtendedMappingCollector(PojoRawTypeModel<E> rawTypeModel, String entityName) createIndexedTypeExtendedMappingCollector(PojoRawTypeModel<E> rawTypeModel, String entityName) hints()prepareBuild(PojoMappingDelegate mappingDelegate) Partially build the mapping based on the information provided previously.
-
Method Details
-
closeOnFailure
public void closeOnFailure()Description copied from interface:PojoMapperDelegateClose 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.
- Specified by:
closeOnFailurein interfacePojoMapperDelegate<HibernateOrmMappingPartialBuildState>
-
createIndexedTypeExtendedMappingCollector
public <E> PojoIndexedTypeExtendedMappingCollector createIndexedTypeExtendedMappingCollector(PojoRawTypeModel<E> rawTypeModel, String entityName) - Specified by:
createIndexedTypeExtendedMappingCollectorin interfacePojoMapperDelegate<HibernateOrmMappingPartialBuildState>- 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
public <E> PojoContainedTypeExtendedMappingCollector createContainedTypeExtendedMappingCollector(PojoRawTypeModel<E> rawTypeModel, String entityName) - Specified by:
createContainedTypeExtendedMappingCollectorin interfacePojoMapperDelegate<HibernateOrmMappingPartialBuildState>- 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
Description copied from interface:PojoMapperDelegatePartially build the mapping based on the information provided previously.May only be called once on a given object.
- Specified by:
prepareBuildin interfacePojoMapperDelegate<HibernateOrmMappingPartialBuildState>- Parameters:
mappingDelegate- APojoMappingDelegate.- Returns:
- The partially-built mapping.
-
hints
- Specified by:
hintsin interfaceBackendMapperContext- Specified by:
hintsin interfacePojoMapperDelegate<HibernateOrmMappingPartialBuildState>
-