Class CaseInsensitiveLikePropertyValueTransformer

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

public class CaseInsensitiveLikePropertyValueTransformer extends Object implements PropertyValueTransformer
Implementation of PropertyValueTransformer that transforms a traditional "LIKE" expression with asterisk wildcards into a case-insensitive regular expression compatible with Cypher.
Author:
Adam George
  • Constructor Details

    • CaseInsensitiveLikePropertyValueTransformer

      public CaseInsensitiveLikePropertyValueTransformer()
  • 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