Interface TypeBindingContext
- All Superinterfaces:
BindingContext
The context provided to the
TypeBinder.bind(TypeBindingContext) method.-
Method Summary
Modifier and TypeMethodDescription<T2> voidbridge(Class<T2> expectedEntityType, org.hibernate.search.engine.environment.bean.BeanHolder<? extends TypeBridge<T2>> bridgeHolder) Sets the bridge implementing the type/index binding.<T2> voidbridge(Class<T2> expectedEntityType, TypeBridge<T2> bridge) Sets the bridge implementing the type/index binding.default voidbridge(org.hibernate.search.engine.environment.bean.BeanHolder<? extends TypeBridge<Object>> bridgeHolder) Sets the bridge implementing the type/index binding.default voidbridge(TypeBridge<Object> bridge) Sets the bridge implementing the type/index binding.org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaElementorg.hibernate.search.engine.backend.types.dsl.IndexFieldTypeFactoryMethods inherited from interface org.hibernate.search.mapper.pojo.bridge.binding.BindingContext
beanResolver, param, param, paramOptional, paramOptional, params
-
Method Details
-
bridge
Sets the bridge implementing the type/index binding.- Parameters:
bridge- The bridge to use at runtime to convert between the type and the index field value.
-
bridge
default void bridge(org.hibernate.search.engine.environment.bean.BeanHolder<? extends TypeBridge<Object>> bridgeHolder) Sets the bridge implementing the type/index binding.- Parameters:
bridgeHolder- ABeanHoldercontaining the bridge to use at runtime to convert between the type and the index field value. UseBeanHolder.of(Object)if you don't need any particular closing behavior.
-
bridge
Sets the bridge implementing the type/index binding.- Type Parameters:
T2- The type of bridged elements expected by the given bridge.- Parameters:
expectedEntityType- The type of the entity expected by the given bridge.bridge- The bridge to use at runtime to convert between the type and the index field value.
-
bridge
<T2> void bridge(Class<T2> expectedEntityType, org.hibernate.search.engine.environment.bean.BeanHolder<? extends TypeBridge<T2>> bridgeHolder) Sets the bridge implementing the type/index binding.- Type Parameters:
T2- The type of bridged elements expected by the given bridge.- Parameters:
expectedEntityType- The type of the entity expected by the given bridge.bridgeHolder- ABeanHoldercontaining the bridge to use at runtime to convert between the type and the index field value. UseBeanHolder.of(Object)if you don't need any particular closing behavior.
-
bridgedElement
- Returns:
- An entry point allowing to declare expectations and retrieve accessors to the bridged POJO type.
-
dependencies
PojoTypeIndexingDependencyConfigurationContext dependencies()- Returns:
- An entry point allowing to declare the parts of the entity graph that this bridge will depend on.
-
typeFactory
org.hibernate.search.engine.backend.types.dsl.IndexFieldTypeFactory typeFactory()- Returns:
- An entry point allowing to define a new field type.
-
indexSchemaElement
org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaElement indexSchemaElement()- Returns:
- An entry point allowing to declare expectations and retrieve accessors to the index schema.
-