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 -
Method Summary
Modifier and TypeMethodDescriptionbinder(TypeBinder binder, Map<String, Object> params) Define a type binder, responsible for creating a bridge.voidconfigure(MappingBuildContext buildContext, PojoMappingConfigurationContext configurationContext, MappingConfigurationCollector<PojoTypeMetadataContributor> configurationCollector) constructor(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> voidvoidindexed()Maps an entity type to an index.Starts the definition of the mapping of the main constructor of this type.Starts the definition of the mapping of a specific property.Marks a type as an entity type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.search.mapper.pojo.mapping.definition.programmatic.TypeMappingStep
binder
-
Constructor Details
-
TypeMappingStepImpl
-
-
Method Details
-
configure
public void configure(MappingBuildContext buildContext, PojoMappingConfigurationContext configurationContext, MappingConfigurationCollector<PojoTypeMetadataContributor> configurationCollector) - Specified by:
configurein interfacePojoMappingConfigurationContributor
-
contributeAdditionalMetadata
- Specified by:
contributeAdditionalMetadatain interfacePojoTypeMetadataContributor
-
contributeIndexMapping
- Specified by:
contributeIndexMappingin interfacePojoTypeMetadataContributor
-
indexed
Description copied from interface:TypeMappingStepMaps an entity type to an index.- Specified by:
indexedin interfaceTypeMappingStep- Returns:
this, for method chaining.- See Also:
-
searchEntity
Description copied from interface:TypeMappingStepMarks a type as an entity type.WARNING: this is unnecessary when using the Hibernate ORM integration, which contributes this information automatically, and is in fact unsupported with the Hibernate ORM integration. See HSEARCH-5076 to track progress on allowing the use of `@SearchEntity` in the Hibernate ORM integration to map non-ORM entities.
- Specified by:
searchEntityin interfaceTypeMappingStep- See Also:
-
binder
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:
-
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
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
- Specified by:
constructorsin interfacePojoSearchMappingTypeNode- Returns:
- Search mapping relative to constructors.
-
property
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.
-