I - The type of identifiers on the POJO side of the bridge.public interface IdentifierBindingContext<I> extends BindingContext
IdentifierBinder.bind(IdentifierBindingContext) method.| Modifier and Type | Method and Description |
|---|---|
PojoModelValue<I> |
getBridgedElement() |
<I2> void |
setBridge(Class<I2> expectedIdentifierType,
BeanHolder<? extends IdentifierBridge<I2>> bridgeHolder)
Sets the bridge implementing the value/index binding.
|
<I2> void |
setBridge(Class<I2> expectedIdentifierType,
IdentifierBridge<I2> bridge)
Sets the bridge implementing the value/index binding.
|
getBeanResolver<I2> void setBridge(Class<I2> expectedIdentifierType, IdentifierBridge<I2> bridge)
I2 - The type of identifiers expected by the given bridge.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.<I2> void setBridge(Class<I2> expectedIdentifierType, BeanHolder<? extends IdentifierBridge<I2>> bridgeHolder)
I2 - The type of identifiers expected by the given bridge.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 - A BeanHolder containing
the bridge to use at runtime to convert between the POJO property value and the index field value.
Use BeanHolder.of(Object) if you don't need any particular closing behavior.@Incubating PojoModelValue<I> getBridgedElement()
Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.