- All Superinterfaces:
Expression,PropertyAccessor,Visitable
- All Known Implementing Classes:
Comparison,ConstantCondition,ExistentialSubquery,HasLabelCondition
Shared interface for all conditions.
- Since:
- 1.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptiondefault ConditionAdds a condition to this condition with an AND.default Conditionand(RelationshipPattern pathPattern) Adds a condition based on a path pattern to this condition with an AND.default Conditionnot()Negates this condition.default ConditionAdds a condition to this condition with an OR.default Conditionor(RelationshipPattern pathPattern) Adds a condition based on a path pattern to this condition with an OR.default ConditionAdds a condition to this condition with a XOR.default Conditionxor(RelationshipPattern pathPattern) Adds a condition based on a path pattern to this condition with a XOR.Methods inherited from interface org.neo4j.cypherdsl.core.Expression
add, as, as, ascending, asCondition, concat, contains, descending, divide, endsWith, eq, gt, gte, hasSize, in, includesAll, includesAny, isEmpty, isEqualTo, isFalse, isNotEqualTo, isNotNull, isNull, isTrue, lt, lte, matches, matches, multiply, ne, pow, property, property, remainder, size, sorted, startsWith, subtractMethods inherited from interface org.neo4j.cypherdsl.core.PropertyAccessor
property
-
Method Details
-
and
Adds a condition to this condition with an AND.- Parameters:
condition- the new condition to add, must not be null.- Returns:
- a new condition.
-
or
Adds a condition to this condition with an OR.- Parameters:
condition- the new condition to add, must not be null.- Returns:
- a new condition.
-
xor
Adds a condition to this condition with a XOR.- Parameters:
condition- the new condition to add, must not be null.- Returns:
- a new condition.
-
and
Adds a condition based on a path pattern to this condition with an AND. See Using path patterns in WHERE.- Parameters:
pathPattern- the path pattern to add to the where clause. This path pattern must not be null and must not introduce new variables not available in the match.- Returns:
- a new condition.
- Since:
- 1.0.1
-
or
Adds a condition based on a path pattern to this condition with an OR. See Using path patterns in WHERE.- Parameters:
pathPattern- the path pattern to add to the where clause. This path pattern must not be null and must not introduce new variables not available in the match.- Returns:
- a new condition.
- Since:
- 1.0.1
-
xor
Adds a condition based on a path pattern to this condition with a XOR. See Using path patterns in WHERE.- Parameters:
pathPattern- the path pattern to add to the where clause. This path pattern must not be null and must not introduce new variables not available in the match.- Returns:
- a new condition.
- Since:
- 1.0.1
-
not
Negates this condition.- Returns:
- a new condition.
-