Class Conditions

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.
use Cypher instead. This class will become package private in the next major release and no longer be accessible.
Builder for various conditions.
Since:
1.0
Author:
Michael J. Simons, Gerrit Meier, Aakash Sorathiya
  • Method Details

    • matching

      public static Condition matching(RelationshipPattern relationshipPattern)
      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

      @NotNull @Contract(pure=true) public static @NotNull Condition 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

      public static Condition isTrue()
      Deprecated.
      Returns:
      a condition that is always true.
    • isFalse

      public static Condition isFalse()
      Deprecated.
      Returns:
      a condition that is always false.
    • hasLabelsOrType

      public static Condition hasLabelsOrType(SymbolicName symbolicName, String... labelsOrTypes)
      Deprecated.
      Parameters:
      symbolicName - Reference to the entity that should be checked for labels or types
      labelsOrTypes - 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