Package com.sap.cds.ql
Interface Predicate
-
- All Superinterfaces:
CqnExpression
,CqnPredicate
,CqnToken
,CqnValue
,JSONizable
- All Known Subinterfaces:
BooleanFunction
public interface Predicate extends CqnPredicate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Predicate
and(CqnPredicate other, CqnPredicate... more)
Creates a conjunction of this predicate with other predicatesPredicate
not()
Negates this predicatePredicate
or(CqnPredicate other, CqnPredicate... more)
Creates a disjunction of this predicate with other predicates-
Methods inherited from interface com.sap.cds.ql.cqn.CqnExpression
accept, asArithmeticExpression, asExpression, asNegation, isArithmeticExpression, isExpression, isNegation, toJson
-
Methods inherited from interface com.sap.cds.ql.cqn.CqnPredicate
asPredicate, isPredicate
-
Methods inherited from interface com.sap.cds.ql.cqn.CqnValue
as, asFunction, asList, asLiteral, asNullValue, asParameter, asPlain, asRef, isFunction, isList, isLiteral, isNullValue, isParameter, isPlain, isRef, ofRef, type
-
-
-
-
Method Detail
-
and
Predicate and(CqnPredicate other, CqnPredicate... more)
Creates a conjunction of this predicate with other predicates- Parameters:
other
- other predicate to connect this predicate withmore
- more predicates to connect this predicate with- Returns:
- the conjunction
-
or
Predicate or(CqnPredicate other, CqnPredicate... more)
Creates a disjunction of this predicate with other predicates- Parameters:
other
- other predicate to connect this predicate withmore
- more predicates to connect this predicate with- Returns:
- the disjunction
-
not
Predicate not()
Negates this predicate- Returns:
- the negated predicate
-
-