java.lang.Object
org.neo4j.cypherdsl.core.Predicates
@API(status=DEPRECATED,
since="2023.9.0")
@Deprecated(since="2023.9.0")
public final class Predicates
extends Object
Deprecated.
Factory methods for creating predicates.
- Since:
- 1.0
- Author:
- Michael J. Simons
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Deprecated.Allows to define the source of the list predicate.static interface
Deprecated.Allows to specify the where condition for the list based predicate. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Predicates.OngoingListBasedPredicateFunction
Deprecated.static @NotNull Predicates.OngoingListBasedPredicateFunction
all
(SymbolicName variable) Deprecated.Starts building a new condition based on a function invocation for theall()
function.static @NotNull Predicates.OngoingListBasedPredicateFunction
Deprecated.static @NotNull Predicates.OngoingListBasedPredicateFunction
any
(SymbolicName variable) Deprecated.Starts building a new condition based on a function invocation for theany()
function.static Condition
exists
(List<PatternElement> pattern) Deprecated.Creates a new condition via an existential sub-query based on the list of patternsstatic Condition
exists
(List<PatternElement> pattern, @Nullable Where where) Deprecated.Creates a new condition via an existential sub-query based on the list of patterns and an optionalwhere-clause
.static Condition
exists
(PatternElement pattern) Deprecated.Creates a new condition via an existential sub-query based on the list of patternsstatic @NotNull Condition
Deprecated.Creates a new condition based on a function invocation for theexists()
function.static @NotNull Condition
exists
(RelationshipPattern pattern) Deprecated.Creates a new condition based on a function invocation for theexists()
function.static Condition
exists
(Statement statement, IdentifiableElement... imports) Deprecated.Creates a new condition via an existential sub-query.static Condition
Deprecated.Creates a new condition based on a function invocation for theisEmpty()
function.static @NotNull Predicates.OngoingListBasedPredicateFunction
Deprecated.static @NotNull Predicates.OngoingListBasedPredicateFunction
none
(SymbolicName variable) Deprecated.Starts building a new condition based on a function invocation for thenone()
function.static @NotNull Predicates.OngoingListBasedPredicateFunction
Deprecated.static @NotNull Predicates.OngoingListBasedPredicateFunction
single
(SymbolicName variable) Deprecated.Starts building a new condition based on a function invocation for thesingle()
function.
-
Method Details
-
exists
Deprecated.Creates a new condition based on a function invocation for theexists()
function. See exists.- Parameters:
property
- The property to be passed toexists()
- Returns:
- A function call for
exists()
for one property
-
exists
Deprecated.Creates a new condition based on a function invocation for theexists()
function. See exists.- Parameters:
pattern
- The pattern to be passed toexists()
- Returns:
- A function call for
exists()
for one pattern
-
exists
Deprecated.Creates a new condition via an existential sub-query. The statement may or may not have a RETURN clause. It must however not contain any updates. While it would render syntactically correct Cypher, Neo4j does not support updates inside existential sub-queries.- Parameters:
statement
- The statement to be passed toexists{}
imports
- Optional imports to be used in the statement (will be imported with WITH)- Returns:
- An existential sub-query.
- Since:
- 2023.1.0
-
exists
Deprecated.Creates a new condition via an existential sub-query based on the list of patterns- Parameters:
pattern
- the pattern that must exists- Returns:
- An existential sub-query.
- Since:
- 2023.9.0
-
exists
Deprecated.Creates a new condition via an existential sub-query based on the list of patterns- Parameters:
pattern
- the list of patterns that must exists- Returns:
- An existential sub-query.
- Since:
- 2023.9.0
-
exists
Deprecated.Creates a new condition via an existential sub-query based on the list of patterns and an optionalwhere-clause
.- Parameters:
pattern
- the list of patterns that must existswhere
- an optional where-clause- Returns:
- An existential sub-query.
- Since:
- 2023.9.0
-
all
@NotNull @Contract(pure=true) public static @NotNull Predicates.OngoingListBasedPredicateFunction all(String variable) Deprecated.- Parameters:
variable
- The variable referring to elements of a list- Returns:
- A builder for the
all()
predicate function - Since:
- 1.1
- See Also:
-
all
@NotNull @Contract(pure=true) public static @NotNull Predicates.OngoingListBasedPredicateFunction all(SymbolicName variable) Deprecated.Starts building a new condition based on a function invocation for theall()
function. See exists.- Parameters:
variable
- The variable referring to elements of a list- Returns:
- A builder for the
all()
predicate function - Since:
- 1.1
-
any
@NotNull @Contract(pure=true) public static @NotNull Predicates.OngoingListBasedPredicateFunction any(String variable) Deprecated.- Parameters:
variable
- The variable referring to elements of a list- Returns:
- A builder for the
any()
predicate function - Since:
- 1.1
- See Also:
-
any
@NotNull @Contract(pure=true) public static @NotNull Predicates.OngoingListBasedPredicateFunction any(SymbolicName variable) Deprecated.Starts building a new condition based on a function invocation for theany()
function. See exists.- Parameters:
variable
- The variable referring to elements of a list- Returns:
- A builder for the
any()
predicate function - Since:
- 1.1
-
none
@NotNull @Contract(pure=true) public static @NotNull Predicates.OngoingListBasedPredicateFunction none(String variable) Deprecated.- Parameters:
variable
- The variable referring to elements of a list- Returns:
- A builder for the
none()
predicate function - Since:
- 1.1
- See Also:
-
none
@NotNull @Contract(pure=true) public static @NotNull Predicates.OngoingListBasedPredicateFunction none(SymbolicName variable) Deprecated.Starts building a new condition based on a function invocation for thenone()
function. See exists.- Parameters:
variable
- The variable referring to elements of a list- Returns:
- A builder for the
none()
predicate function - Since:
- 1.1
-
single
@NotNull @Contract(pure=true) public static @NotNull Predicates.OngoingListBasedPredicateFunction single(String variable) Deprecated.- Parameters:
variable
- The variable referring to elements of a list- Returns:
- A builder for the
single()
predicate function - Since:
- 1.1
- See Also:
-
single
@NotNull @Contract(pure=true) public static @NotNull Predicates.OngoingListBasedPredicateFunction single(SymbolicName variable) Deprecated.Starts building a new condition based on a function invocation for thesingle()
function. See exists.- Parameters:
variable
- The variable referring to elements of a list- Returns:
- A builder for the
single()
predicate function - Since:
- 1.1
-
isEmpty
Deprecated.Creates a new condition based on a function invocation for theisEmpty()
function. See isEmpty.The argument
e
must refer to an expression that evaluates to a list forisEmpty()
to work- Parameters:
e
- An expression referring to a list- Returns:
- A function call for
isEmpty()
for a list - Since:
- 2023.6.1
-
Cypher
instead. This class will become package private in the next major release and no longer be accessible.