public abstract class LucenePropertyHelper extends Object implements PropertyHelper
Constructor and Description |
---|
LucenePropertyHelper() |
Modifier and Type | Method and Description |
---|---|
Object |
convertToBackendType(String entityType,
List<String> propertyPath,
Object value)
Converts the given property value into the type expected by the query backend.
|
Object |
convertToPropertyType(String entityType,
List<String> propertyPath,
String value)
Returns the given value converted into the type of the given property as determined via the field bridge of the
property.
|
abstract org.hibernate.search.bridge.FieldBridge |
getFieldBridge(String entityType,
List<String> propertyPath) |
public Object convertToBackendType(String entityType, List<String> propertyPath, Object value)
PropertyHelper
convertToBackendType
in interface PropertyHelper
entityType
- the entity type owning the propertypropertyPath
- the path from the entity to the property (will only contain more than one element in case the
entity is hosted on an embedded entity).value
- the value of the propertypublic Object convertToPropertyType(String entityType, List<String> propertyPath, String value)
convertToPropertyType
in interface PropertyHelper
value
- the value to convertentityType
- the type hosting the propertypropertyPath
- the name of the propertyCopyright © 2017. All rights reserved.