Package org.neo4j.ogm.cypher
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 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
-
CaseInsensitiveLikePropertyValueTransformer
public CaseInsensitiveLikePropertyValueTransformer()
-
-
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
-