Interface IdentifierBindingContext<I>
-
- Type Parameters:
I
- The type of identifiers on the POJO side of the bridge.
- All Superinterfaces:
BindingContext
public interface IdentifierBindingContext<I> extends BindingContext
The context provided to theIdentifierBinder.bind(IdentifierBindingContext)
method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <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.PojoModelValue<I>
bridgedElement()
-
Methods inherited from interface org.hibernate.search.mapper.pojo.bridge.binding.BindingContext
beanResolver, param, paramOptional
-
-
-
-
Method Detail
-
bridge
<I2> void bridge(Class<I2> expectedIdentifierType, IdentifierBridge<I2> 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
@Incubating PojoModelValue<I> bridgedElement()
- Returns:
- An entry point allowing to inspect the type of values that will be passed to this bridge.
-
-