Module org.neo4j.cypherdsl.core
Package org.neo4j.cypherdsl.core
Interface ExposesLogicalOperators<T>
- Type Parameters:
T- the type being returned after the new condition has been chained
- All Known Subinterfaces:
PatternComprehension.OngoingDefinitionWithPatternAndWhere,StatementBuilder.OngoingReadingWithWhere,StatementBuilder.OrderableOngoingReadingAndWithWithWhere
public interface ExposesLogicalOperators<T>
A step exposing logical operators
and and or after a where
clause.- Since:
- 1.1
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionAdds a condition to the existing conditions, connected by anAND.default Tand(RelationshipPattern pathPattern) Adds a condition based on a path pattern to the existing conditions, connected by anAND.Adds a condition to the existing conditions, connected by anOR.default Tor(RelationshipPattern pathPattern) Adds a condition based on a path pattern to the existing conditions, connected by anOR.
-
Method Details
-
and
Adds a condition to the existing conditions, connected by anAND. Existing conditions will be logically grouped by using()in the statement if previous conditions used another logical operator.- Parameters:
condition- an additional condition- Returns:
- the ongoing definition of a match
-
and
Adds a condition based on a path pattern to the existing conditions, connected by anAND. Existing conditions will be logically grouped by using()in the statement if previous conditions used another logical operator.- Parameters:
pathPattern- an additional pattern to include in the conditions- Returns:
- the ongoing definition of a match
-
or
Adds a condition to the existing conditions, connected by anOR. Existing conditions will be logically grouped by using()in the statement if previous conditions used another logical operator.- Parameters:
condition- an additional condition- Returns:
- the ongoing definition of a match
-
or
Adds a condition based on a path pattern to the existing conditions, connected by anOR. Existing conditions will be logically grouped by using()in the statement if previous conditions used another logical operator.- Parameters:
pathPattern- an additional pattern to include in the conditions- Returns:
- the ongoing definition of a match
-