Class PojoIndexModelBinder
java.lang.Object
org.hibernate.search.mapper.pojo.mapping.building.impl.PojoIndexModelBinder
Binds a mapping to a given entity model and index model
by creating the appropriate
extractors and bridges.
Also binds the bridges where appropriate:
TypeBinder.bind(TypeBindingContext),
PropertyBinder.bind(PropertyBindingContext),
ValueBinder.bind(ValueBindingContext).
Incidentally, this will also generate the index model, due to bridges contributing to the index model as we bind them.
-
Method Summary
Modifier and TypeMethodDescription<C> BoundContainerExtractorPath<C,?> bindExtractorPath(PojoTypeModel<C> pojoGenericTypeModel, ContainerExtractorPath extractorPath) <I> BoundIdentifierBridge<I>bindIdentifier(Optional<IndexedEntityBindingContext> indexedEntityBindingContext, BoundPojoModelPathPropertyNode<?, I> modelPath, IdentifierBinder binder, Map<String, Object> params) <I> BoundIdentifierBridge<I>bindIdentifier(Optional<IndexedEntityBindingContext> indexedEntityBindingContext, PojoTypeModel<I> identifierTypeModel, IdentifierBinder binder, Map<String, Object> params) <P> Optional<BoundPropertyBridge<P>>bindProperty(IndexBindingContext indexBindingContext, BoundPojoModelPathPropertyNode<?, P> modelPath, PropertyBinder binder, Map<String, Object> params) <T> Optional<BoundTypeBridge<T>>bindType(IndexBindingContext indexBindingContext, BoundPojoModelPathTypeNode<T> modelPath, TypeBinder binder, Map<String, Object> params) <V> Optional<BoundValueBridge<V,?>> bindValue(IndexBindingContext indexBindingContext, BoundPojoModelPathValueNode<?, ?, V> modelPath, boolean multiValued, ValueBinder binder, Map<String, Object> params, String relativeFieldName, FieldModelContributor contributor) <T> Optional<BoundPojoModelPathPropertyNode<T,?>> createEntityIdPropertyPath(PojoTypeModel<T> type) <C,V> ContainerExtractorHolder<C, V> createExtractors(BoundContainerExtractorPath<C, V> boundExtractorPath)
-
Method Details
-
createEntityIdPropertyPath
public <T> Optional<BoundPojoModelPathPropertyNode<T,?>> createEntityIdPropertyPath(PojoTypeModel<T> type) -
bindExtractorPath
public <C> BoundContainerExtractorPath<C,?> bindExtractorPath(PojoTypeModel<C> pojoGenericTypeModel, ContainerExtractorPath extractorPath) -
createExtractors
public <C,V> ContainerExtractorHolder<C,V> createExtractors(BoundContainerExtractorPath<C, V> boundExtractorPath) -
bindIdentifier
public <I> BoundIdentifierBridge<I> bindIdentifier(Optional<IndexedEntityBindingContext> indexedEntityBindingContext, BoundPojoModelPathPropertyNode<?, I> modelPath, IdentifierBinder binder, Map<String, Object> params) -
bindIdentifier
public <I> BoundIdentifierBridge<I> bindIdentifier(Optional<IndexedEntityBindingContext> indexedEntityBindingContext, PojoTypeModel<I> identifierTypeModel, IdentifierBinder binder, Map<String, Object> params) -
bindType
public <T> Optional<BoundTypeBridge<T>> bindType(IndexBindingContext indexBindingContext, BoundPojoModelPathTypeNode<T> modelPath, TypeBinder binder, Map<String, Object> params) -
bindProperty
public <P> Optional<BoundPropertyBridge<P>> bindProperty(IndexBindingContext indexBindingContext, BoundPojoModelPathPropertyNode<?, P> modelPath, PropertyBinder binder, Map<String, Object> params) -
bindValue
public <V> Optional<BoundValueBridge<V,?>> bindValue(IndexBindingContext indexBindingContext, BoundPojoModelPathValueNode<?, ?, V> modelPath, boolean multiValued, ValueBinder binder, Map<String, Object> params, String relativeFieldName, FieldModelContributor contributor)
-