Class NoOpPropertyValueTransformer

java.lang.Object
org.neo4j.ogm.cypher.NoOpPropertyValueTransformer
All Implemented Interfaces:
PropertyValueTransformer

public class NoOpPropertyValueTransformer extends Object implements 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 Details

    • NoOpPropertyValueTransformer

      public NoOpPropertyValueTransformer()
  • Method Details

    • transformPropertyValue

      public Object transformPropertyValue(Object propertyValue)
      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 interface PropertyValueTransformer
      Parameters:
      propertyValue - The property value to transform, which may be null
      Returns:
      The transformed property value or null if invoked with null