Package org.neo4j.cypherdsl.core
Class Predicates
- java.lang.Object
-
- org.neo4j.cypherdsl.core.Predicates
-
@API(status=STABLE, since="1.0") public final class Predicates extends Object
Factory methods for creating predicates.- Since:
- 1.0
- Author:
- Michael J. Simons
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Predicates.OngoingListBasedPredicateFunction
Allows to define the source of the list predicate.static interface
Predicates.OngoingListBasedPredicateFunctionWithList
Allows to specify the where condition for the list based predicate.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull Predicates.OngoingListBasedPredicateFunction
all(String variable)
static @NotNull Predicates.OngoingListBasedPredicateFunction
all(SymbolicName variable)
Starts building a new condition based on a function invocation for theall()
function.static @NotNull Predicates.OngoingListBasedPredicateFunction
any(String variable)
static @NotNull Predicates.OngoingListBasedPredicateFunction
any(SymbolicName variable)
Starts building a new condition based on a function invocation for theany()
function.static @NotNull Condition
exists(Property property)
Creates a new condition based on a function invocation for theexists()
function.static @NotNull Condition
exists(RelationshipPattern pattern)
Creates a new condition based on a function invocation for theexists()
function.static @NotNull Predicates.OngoingListBasedPredicateFunction
none(String variable)
static @NotNull Predicates.OngoingListBasedPredicateFunction
none(SymbolicName variable)
Starts building a new condition based on a function invocation for thenone()
function.static @NotNull Predicates.OngoingListBasedPredicateFunction
single(String variable)
static @NotNull Predicates.OngoingListBasedPredicateFunction
single(SymbolicName variable)
Starts building a new condition based on a function invocation for thesingle()
function.
-
-
-
Method Detail
-
exists
@NotNull @Contract(pure=true) public static @NotNull Condition exists(Property property)
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
@NotNull @Contract(pure=true) public static @NotNull Condition exists(RelationshipPattern pattern)
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
-
all
@NotNull @Contract(pure=true) public static @NotNull Predicates.OngoingListBasedPredicateFunction all(String variable)
- Parameters:
variable
- The variable referring to elements of a list- Returns:
- A builder for the
all()
predicate function - Since:
- 1.1
- See Also:
all(SymbolicName)
-
all
@NotNull @Contract(pure=true) public static @NotNull Predicates.OngoingListBasedPredicateFunction all(SymbolicName variable)
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)
- Parameters:
variable
- The variable referring to elements of a list- Returns:
- A builder for the
any()
predicate function - Since:
- 1.1
- See Also:
any(SymbolicName)
-
any
@NotNull @Contract(pure=true) public static @NotNull Predicates.OngoingListBasedPredicateFunction any(SymbolicName variable)
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)
- Parameters:
variable
- The variable referring to elements of a list- Returns:
- A builder for the
none()
predicate function - Since:
- 1.1
- See Also:
none(SymbolicName)
-
none
@NotNull @Contract(pure=true) public static @NotNull Predicates.OngoingListBasedPredicateFunction none(SymbolicName variable)
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)
- Parameters:
variable
- The variable referring to elements of a list- Returns:
- A builder for the
single()
predicate function - Since:
- 1.1
- See Also:
single(SymbolicName)
-
single
@NotNull @Contract(pure=true) public static @NotNull Predicates.OngoingListBasedPredicateFunction single(SymbolicName variable)
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
-
-