Package org.neo4j.ogm.cypher.function
Class PropertyComparison
java.lang.Object
org.neo4j.ogm.cypher.function.PropertyComparison
- All Implemented Interfaces:
FilterFunction<Object>
- Direct Known Subclasses:
PropertyComparison.CaseInsensitiveEqualsComparison
- Author:
- Jasper Blues, Michael J. Simons
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Internal class for modifying an EQUALS or CONTAINS comparison to ignore the case of both attribute and parameter. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ComparisonOperator
protected static final String
protected final Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexpression
(String nodeIdentifier, String filteredProperty, UnaryOperator<String> createUniqueParameterName) Generates a cypher expression for this functiongetValue()
parameters
(UnaryOperator<String> createUniqueParameterName, PropertyValueTransformer valueTransformer) Provides the map of parameters to use.
-
Field Details
-
PARAMETER_NAME
- See Also:
-
operator
-
value
-
-
Constructor Details
-
PropertyComparison
-
-
Method Details
-
getOperator
-
getValue
- Specified by:
getValue
in interfaceFilterFunction<Object>
-
expression
public String expression(String nodeIdentifier, String filteredProperty, UnaryOperator<String> createUniqueParameterName) Description copied from interface:FilterFunction
Generates a cypher expression for this function- Specified by:
expression
in interfaceFilterFunction<Object>
- Parameters:
nodeIdentifier
- The identifier of the node to be filtered in the queryfilteredProperty
- The identifier of the filtered propertycreateUniqueParameterName
- An operator to create unique parameter names, the same as inFilterFunction.parameters(UnaryOperator, PropertyValueTransformer)
- Returns:
- The fragment to use
-
parameters
public Map<String,Object> parameters(UnaryOperator<String> createUniqueParameterName, PropertyValueTransformer valueTransformer) Description copied from interface:FilterFunction
Provides the map of parameters to use. It is advised to use the provided operator for creating unique parameter names- Specified by:
parameters
in interfaceFilterFunction<Object>
- Parameters:
createUniqueParameterName
- An operator to create unique parameter namesvalueTransformer
- Transformer for adapting possible values to the domain- Returns:
- The map of parameters
-