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.

@FunctionalInterface public interface PropertyValueTransformer
Allows a property value to be transformed into a certain format for use with particular ComparisonOperators when building a Cypher query.
Author:
Adam George, Michael J. Simons
  • Method Summary

    Modifier and Type
    Method
    Description
    Applies this transformer first, then after as the next transformation.
    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

      Object 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.
      Parameters:
      propertyValue - The property value to transform, which may be null
      Returns:
      The transformed property value or null if invoked with null
    • andThen

      Applies this transformer first, then after as the next transformation.
      Parameters:
      after - The next transformation.
      Returns:
      A new property value transformer.