java.lang.Object
org.neo4j.cypherdsl.core.Conditions
@API(status=DEPRECATED,
since="2023.9.0")
@Deprecated(since="2023.9.0")
public final class Conditions
extends Object
Deprecated.
Builder for various conditions.
- Since:
- 1.0
- Author:
- Michael J. Simons, Gerrit Meier, Aakash Sorathiya
-
Method Summary
Modifier and TypeMethodDescriptionstatic Condition
hasLabelsOrType
(SymbolicName symbolicName, String... labelsOrTypes) Deprecated.static Condition
isFalse()
Deprecated.static Condition
isTrue()
Deprecated.static Condition
matching
(RelationshipPattern relationshipPattern) Deprecated.static @NotNull Condition
Deprecated.Creates a placeholder condition which is not rendered in the final statement but is useful while chaining conditions together.static @NotNull Condition
Deprecated.Negates the given condition.static @NotNull Condition
not
(@NotNull RelationshipPattern pattern) Deprecated.Negates the given pattern element: The pattern must not matched to be included in the result.
-
Method Details
-
matching
Deprecated.- Parameters:
relationshipPattern
- The pattern being evaluated in a condition- Returns:
- A new condition matching the given pattern
-
not
@NotNull @Contract(pure=true) public static @NotNull Condition not(@NotNull @NotNull Condition condition) Deprecated.Negates the given condition.- Parameters:
condition
- The condition to negate. Must not be null.- Returns:
- The negated condition.
-
not
@NotNull @Contract(pure=true) public static @NotNull Condition not(@NotNull @NotNull RelationshipPattern pattern) Deprecated.Negates the given pattern element: The pattern must not matched to be included in the result.- Parameters:
pattern
- The pattern to negate. Must not be null.- Returns:
- A condition that evaluates to true when the pattern does not match.
-
noCondition
Deprecated.Creates a placeholder condition which is not rendered in the final statement but is useful while chaining conditions together.- Returns:
- A placeholder condition.
-
isTrue
Deprecated.- Returns:
- a condition that is always true.
-
isFalse
Deprecated.- Returns:
- a condition that is always false.
-
hasLabelsOrType
Deprecated.- Parameters:
symbolicName
- Reference to the entity that should be checked for labels or typeslabelsOrTypes
- the list of labels or types to check for- Returns:
- A condition that checks whether a node has a set of given labels or a relationship a set of given types.
- Since:
- 2021.3.0
-
Cypher
instead. This class will become package private in the next major release and no longer be accessible.