Class PojoIndexModelBinder
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.mapping.building.impl.PojoIndexModelBinder
-
public final class PojoIndexModelBinder extends Object
Binds a mapping to a given entity model and index model by creating the appropriateextractorsand 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
-
-
-
Method Detail
-
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)
-
-