Package org.neo4j.ogm.cypher
Class NoOpPropertyValueTransformer
java.lang.Object
org.neo4j.ogm.cypher.NoOpPropertyValueTransformer
- All Implemented Interfaces:
PropertyValueTransformer
PropertyValueTransformer
that does nothing but pass through the property value.
This is so that a PropertyValueTransformer
never has to be set to null
for a comparison operator if
no transformation is required.- Author:
- Adam George
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontransformPropertyValue
(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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.neo4j.ogm.cypher.PropertyValueTransformer
andThen
-
Constructor Details
-
NoOpPropertyValueTransformer
public NoOpPropertyValueTransformer()
-
-
Method Details
-
transformPropertyValue
Description copied from interface:PropertyValueTransformer
Transforms the given property value into a format that's compatible with the comparison operator in the context of the current query being built.- Specified by:
transformPropertyValue
in interfacePropertyValueTransformer
- Parameters:
propertyValue
- The property value to transform, which may benull
- Returns:
- The transformed property value or
null
if invoked withnull
-