Class ProgrammaticMappingConfigurationContextImpl
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.mapping.definition.programmatic.impl.ProgrammaticMappingConfigurationContextImpl
-
- All Implemented Interfaces:
ProgrammaticMappingConfigurationContext,PojoMappingConfigurationContributor
public class ProgrammaticMappingConfigurationContextImpl extends Object implements ProgrammaticMappingConfigurationContext, PojoMappingConfigurationContributor
-
-
Constructor Summary
Constructors Constructor Description ProgrammaticMappingConfigurationContextImpl(PojoBootstrapIntrospector introspector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(MappingBuildContext buildContext, PojoMappingConfigurationContext configurationContext, MappingConfigurationCollector<PojoTypeMetadataContributor> configurationCollector)TypeMappingSteptype(Class<?> clazz)Starts the definition of the mapping of a specific type.TypeMappingSteptype(String typeName)Starts the definition of the mapping of a specific named type.
-
-
-
Constructor Detail
-
ProgrammaticMappingConfigurationContextImpl
public ProgrammaticMappingConfigurationContextImpl(PojoBootstrapIntrospector introspector)
-
-
Method Detail
-
configure
public void configure(MappingBuildContext buildContext, PojoMappingConfigurationContext configurationContext, MappingConfigurationCollector<PojoTypeMetadataContributor> configurationCollector)
- Specified by:
configurein interfacePojoMappingConfigurationContributor
-
type
public TypeMappingStep type(Class<?> clazz)
Description copied from interface:ProgrammaticMappingConfigurationContextStarts the definition of the mapping of a specific type.- Specified by:
typein interfaceProgrammaticMappingConfigurationContext- Parameters:
clazz- The type to map.- Returns:
- The initial step of a DSL where the type mapping can be defined.
-
type
public TypeMappingStep type(String typeName)
Description copied from interface:ProgrammaticMappingConfigurationContextStarts the definition of the mapping of a specific named type.- Specified by:
typein interfaceProgrammaticMappingConfigurationContext- Parameters:
typeName- The name of the type. For example for a dynamic, map-based entity type, this would be the entity name.- Returns:
- The initial step of a DSL where the type mapping can be defined.
-
-