Package org.neo4j.ogm.cypher
Interface PropertyValueTransformer
- All Known Implementing Classes:
CaseInsensitiveLikePropertyValueTransformer
,NoOpPropertyValueTransformer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Allows a property value to be transformed into a certain format for use with particular
ComparisonOperator
s
when building a Cypher query.- Author:
- Adam George, Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptiondefault PropertyValueTransformer
andThen
(PropertyValueTransformer after) Applies this transformer first, then after as the next transformation.transformPropertyValue
(Object propertyValue) Transforms the given property value into a format that's compatible with the comparison operator in the context of the current query being built.
-
Method Details
-
transformPropertyValue
Transforms the given property value into a format that's compatible with the comparison operator in the context of the current query being built.- Parameters:
propertyValue
- The property value to transform, which may benull
- Returns:
- The transformed property value or
null
if invoked withnull
-
andThen
Applies this transformer first, then after as the next transformation.- Parameters:
after
- The next transformation.- Returns:
- A new property value transformer.
-