Class TypeMappingStepImpl
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.mapping.definition.programmatic.impl.TypeMappingStepImpl
-
- All Implemented Interfaces:
PojoSearchMappingTypeNode,PojoTypeMetadataContributor,TypeMappingStep,PojoMappingConfigurationContributor
public class TypeMappingStepImpl extends Object implements TypeMappingStep, PojoMappingConfigurationContributor, PojoTypeMetadataContributor
-
-
Constructor Summary
Constructors Constructor Description TypeMappingStepImpl(PojoRawTypeModel<?> typeModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeMappingStepbinder(TypeBinder binder, Map<String,Object> params)Define a type binder, responsible for creating a bridge.voidconfigure(MappingBuildContext buildContext, PojoMappingConfigurationContext configurationContext, MappingConfigurationCollector<PojoTypeMetadataContributor> configurationCollector)ConstructorMappingStepconstructor(Class<?>... parameterTypes)Starts the definition of the mapping of the constructor of this type accepting arguments with the given types.Map<List<Class<?>>,? extends PojoSearchMappingConstructorNode>constructors()voidcontributeAdditionalMetadata(PojoAdditionalMetadataCollectorTypeNode collector)voidcontributeIndexMapping(PojoIndexMappingCollectorTypeNode collector)TypeMappingIndexedStepindexed()Maps an entity type to an index.ConstructorMappingStepmainConstructor()Starts the definition of the mapping of the main constructor of this type.PropertyMappingStepproperty(String propertyName)Starts the definition of the mapping of a specific property.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.mapper.pojo.mapping.definition.programmatic.TypeMappingStep
binder
-
-
-
-
Constructor Detail
-
TypeMappingStepImpl
public TypeMappingStepImpl(PojoRawTypeModel<?> typeModel)
-
-
Method Detail
-
configure
public void configure(MappingBuildContext buildContext, PojoMappingConfigurationContext configurationContext, MappingConfigurationCollector<PojoTypeMetadataContributor> configurationCollector)
- Specified by:
configurein interfacePojoMappingConfigurationContributor
-
contributeAdditionalMetadata
public void contributeAdditionalMetadata(PojoAdditionalMetadataCollectorTypeNode collector)
- Specified by:
contributeAdditionalMetadatain interfacePojoTypeMetadataContributor
-
contributeIndexMapping
public void contributeIndexMapping(PojoIndexMappingCollectorTypeNode collector)
- Specified by:
contributeIndexMappingin interfacePojoTypeMetadataContributor
-
indexed
public TypeMappingIndexedStep indexed()
Description copied from interface:TypeMappingStepMaps an entity type to an index.- Specified by:
indexedin interfaceTypeMappingStep- Returns:
this, for method chaining.- See Also:
Indexed
-
binder
public TypeMappingStep binder(TypeBinder binder, Map<String,Object> params)
Description copied from interface:TypeMappingStepDefine a type binder, responsible for creating a bridge. With this method it is possible to pass a set of parameters to the binder.- Specified by:
binderin interfaceTypeMappingStep- Parameters:
binder- ATypeBinderresponsible for creating a bridge.params- The parameters to pass to the binder.- Returns:
this, for method chaining.- See Also:
TypeBinder
-
mainConstructor
public ConstructorMappingStep mainConstructor()
Description copied from interface:TypeMappingStepStarts the definition of the mapping of the main constructor of this type.The main constructor only exists if this type defines a single constructor and that constructor accepts at least one argument.
- Specified by:
mainConstructorin interfaceTypeMappingStep- Returns:
- A DSL step where the property mapping can be defined in more details.
-
constructor
public ConstructorMappingStep constructor(Class<?>... parameterTypes)
Description copied from interface:TypeMappingStepStarts the definition of the mapping of the constructor of this type accepting arguments with the given types.- Specified by:
constructorin interfaceTypeMappingStep- Parameters:
parameterTypes- The type of parameters of a constructor in the type being mapped.- Returns:
- A DSL step where the property mapping can be defined in more details.
-
constructors
public Map<List<Class<?>>,? extends PojoSearchMappingConstructorNode> constructors()
- Specified by:
constructorsin interfacePojoSearchMappingTypeNode- Returns:
- Search mapping relative to constructors.
-
property
public PropertyMappingStep property(String propertyName)
Description copied from interface:TypeMappingStepStarts the definition of the mapping of a specific property.- Specified by:
propertyin interfaceTypeMappingStep- Parameters:
propertyName- The name of a property in the type being mapped.- Returns:
- A DSL step where the property mapping can be defined in more details.
-
-