Package org.neo4j.cypherdsl.core
Interface Condition
-
- All Superinterfaces:
Expression,Visitable
- All Known Subinterfaces:
Case.CaseEnding
- All Known Implementing Classes:
Case.GenericCase.EndingGenericCase,Case.SimpleCase.EndingSimpleCase,Comparison,CompoundCondition,ConstantCondition,HasLabelCondition,NotCondition
@API(status=EXPERIMENTAL, 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 Conditionand(Condition condition)Adds 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()default Conditionor(Condition condition)Adds 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 Conditionxor(Condition condition)Adds 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.
-
-
-
Method Detail
-
and
default 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
default 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
default 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
default 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
default 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
default 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
default Condition not()
-
-