Class PojoValueBridgeDocumentValueConverter<V,F>
java.lang.Object
org.hibernate.search.mapper.pojo.bridge.runtime.impl.PojoValueBridgeDocumentValueConverter<V,F>
- All Implemented Interfaces:
FromDocumentValueConverter<F,,V> ToDocumentValueConverter<V,F>
public final class PojoValueBridgeDocumentValueConverter<V,F>
extends Object
implements ToDocumentValueConverter<V,F>, FromDocumentValueConverter<F,V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromDocumentValue(F value, FromDocumentValueConvertContext context) booleanisCompatibleWith(FromDocumentValueConverter<?, ?> other) booleanisCompatibleWith(ToDocumentValueConverter<?, ?> other) toDocumentValue(V value, ToDocumentValueConvertContext context) toString()
-
Constructor Details
-
PojoValueBridgeDocumentValueConverter
-
-
Method Details
-
toString
-
toDocumentValue
- Specified by:
toDocumentValuein interfaceToDocumentValueConverter<V,F> - Parameters:
value- The source value to convert to the document model.context- A context that can beextendedto a more useful type, giving access to such things as a Hibernate ORM SessionFactory (if using the Hibernate ORM mapper).- Returns:
- The converted index field value.
-
fromDocumentValue
- Specified by:
fromDocumentValuein interfaceFromDocumentValueConverter<V,F> - Parameters:
value- The value to convert from the document model.context- A context that can beextendedto a more useful type, giving access to such things as a Hibernate ORM Session (if using the Hibernate ORM mapper).- Returns:
- The converted value.
-
isCompatibleWith
- Specified by:
isCompatibleWithin interfaceToDocumentValueConverter<V,F> - Parameters:
other- AnotherToDocumentValueConverter, nevernull.- Returns:
trueif the given object behaves exactly the same as this object, i.e. itsToDocumentValueConverter.toDocumentValue(Object, ToDocumentValueConvertContext)method is guaranteed to always return the same value as this object's when given the same input.falseotherwise, or when in doubt.
-
isCompatibleWith
- Specified by:
isCompatibleWithin interfaceFromDocumentValueConverter<V,F> - Parameters:
other- AnotherFromDocumentValueConverter, nevernull.- Returns:
trueif the given object behaves exactly the same as this object, i.e. itsFromDocumentValueConverter.fromDocumentValue(Object, FromDocumentValueConvertContext)method is guaranteed to always return the same value as this object's when given the same input.falseotherwise, or when in doubt.
-