Package org.neo4j.cypherdsl.core
Interface Condition
-
- All Superinterfaces:
Expression,Visitable
- All Known Implementing Classes:
Comparison,ConstantCondition,ExistentialSubquery,HasLabelCondition,RelationshipPatternCondition
@API(status=STABLE, since="1.0") public interface Condition extends ExpressionShared interface for all conditions.- Since:
- 1.0
- Author:
- Michael J. Simons
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default @NotNull Conditionand(Condition condition)Adds a condition to this condition with an AND.default @NotNull Conditionand(RelationshipPattern pathPattern)Adds a condition based on a path pattern to this condition with an AND.default @NotNull Conditionnot()Negates this condition.default @NotNull Conditionor(Condition condition)Adds a condition to this condition with an OR.default @NotNull Conditionor(RelationshipPattern pathPattern)Adds a condition based on a path pattern to this condition with an OR.default @NotNull Conditionxor(Condition condition)Adds a condition to this condition with a XOR.default @NotNull 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, remainder, size, sorted, startsWith, subtract
-
-
-
-
Method Detail
-
and
@NotNull @Contract(pure=true) default @NotNull Condition and(Condition condition)
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
@NotNull @Contract(pure=true) default @NotNull Condition or(Condition condition)
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
@NotNull @Contract(pure=true) default @NotNull Condition xor(Condition condition)
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
@NotNull @Contract(pure=true) default @NotNull Condition and(RelationshipPattern pathPattern)
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
@NotNull @Contract(pure=true) default @NotNull Condition or(RelationshipPattern pathPattern)
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
@NotNull @Contract(pure=true) default @NotNull Condition xor(RelationshipPattern pathPattern)
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
@NotNull @Contract(pure=true) default @NotNull Condition not()
Negates this condition.- Returns:
- A new condition.
-
-