Interface IdentifierBindingContext<I>
- Type Parameters:
I
- The type of identifiers on the POJO side of the bridge.
- All Superinterfaces:
BindingContext
The context provided to the
IdentifierBinder.bind(IdentifierBindingContext)
method.-
Method Summary
Modifier and TypeMethodDescription<I2> void
bridge
(Class<I2> expectedIdentifierType, BeanHolder<? extends IdentifierBridge<I2>> bridgeHolder) Sets the bridge implementing the value/index binding.<I2> void
bridge
(Class<I2> expectedIdentifierType, IdentifierBridge<I2> bridge) Sets the bridge implementing the value/index binding.Methods inherited from interface org.hibernate.search.mapper.pojo.bridge.binding.BindingContext
beanResolver, param, param, paramOptional, paramOptional
-
Method Details
-
bridge
Sets the bridge implementing the value/index binding.- Type Parameters:
I2
- The type of identifiers expected by the given bridge.- Parameters:
expectedIdentifierType
- The type of identifiers expected by the given bridge. Hibernate Search will check that these expectations are met, and throw an exception if they are not.bridge
- The bridge to use at runtime to convert between the POJO identifier and the document identifier.
-
bridge
<I2> void bridge(Class<I2> expectedIdentifierType, BeanHolder<? extends IdentifierBridge<I2>> bridgeHolder) Sets the bridge implementing the value/index binding.- Type Parameters:
I2
- The type of identifiers expected by the given bridge.- Parameters:
expectedIdentifierType
- The type of values expected by the given bridge. Hibernate Search will check that these expectations are met, and throw an exception if they are not.bridgeHolder
- ABeanHolder
containing the bridge to use at runtime to convert between the POJO property value and the index field value. UseBeanHolder.of(Object)
if you don't need any particular closing behavior.
-
bridgedElement
- Returns:
- An entry point allowing to inspect the type of values that will be passed to this bridge.
-