Uses of Interface
com.sap.cds.ql.Predicate
Packages that use Predicate
-
Uses of Predicate in com.sap.cds.ql
Subinterfaces of Predicate in com.sap.cds.qlMethods in com.sap.cds.ql that return PredicateModifier and TypeMethodDescriptionStructuredType.allMatch
(CqnPredicate p) Creates a predicate that tests whether all elements of the entity set referenced by this structured type match a given condition.StructuredType.allMatch
(Function<T, CqnPredicate> p) Creates a predicate that tests whether all elements of the entity set referenced by this structured type match a given condition.static Predicate
CQL.and
(CqnPredicate p1, CqnPredicate p2) Creates a conjunction of two given predicatesstatic Predicate
CQL.and
(Iterable<? extends CqnPredicate> predicates) Creates a conjunction of given predicatesPredicate.and
(CqnPredicate other, CqnPredicate... more) Creates a conjunction of this predicate with other predicatesStructuredType.anyMatch
(CqnPredicate p) Creates a predicate that tests whether any instance of the entity set referenced by this structured type matches a given condition.StructuredType.anyMatch
(Function<T, CqnPredicate> p) Creates a predicate that tests whether any instance of the entity set referenced by this structured type matches a given condition.Creates a between predicate that tests if this value is within a closed interval with given boundsCreates a between predicate that tests if this value is within a closed interval with given boundsCreates a between predicate that tests if this value is within a closed interval with given boundsCreates a between predicate that tests if this value is within a closed interval with given boundsstatic Predicate
CQL.comparison
(CqnValue lhs, CqnComparisonPredicate.Operator op, CqnValue rhs) Creates a comparison predicate.CqnBuilder.QueryBuilderSupport.comparison
(CqnValue lhs, CqnComparisonPredicate.Operator op, CqnValue rhs) static Predicate
CQL.connect
(CqnConnectivePredicate.Operator operator, Iterable<? extends CqnPredicate> predicates) Creates a logical connection of given predicatesCqnPredicate
.CqnBuilder.QueryBuilderSupport.connect
(CqnConnectivePredicate.Operator operator, Iterable<? extends CqnPredicate> predicates) static Predicate
CQL.containment
(CqnContainmentTest.Position position, CqnValue value, CqnValue substring, boolean caseInsensitive) Creates a predicate that tests whether a string value contains a given substring at a given positionCqnContainmentTest.Position
CqnBuilder.QueryBuilderSupport.containment
(CqnContainmentTest.Position position, CqnValue value, CqnValue term, boolean caseInsensitive) static Predicate
Creates a predicate that tests whether a string value contains a given substringCreates a predicate that tests whether this string value contains a given substringCreates a predicate that tests whether this string value contains a given substringCreates a predicate that tests whether this string value contains a given substringstatic Predicate
CQL.copy
(CqnPredicate pred) Creates a copy of the given predicate.static Predicate
CQL.copy
(CqnPredicate pred, Modifier modifier) Creates a modified copy of the given predicate.CqnBuilder.copy
(CqnPredicate pred) CqnBuilder.copy
(CqnPredicate pred, Modifier modifier) static Predicate
Creates a predicate that tests whether a string value ends with a given suffixCreates a predicate that tests whether this string value ends with a given suffixCreates a predicate that tests whether this string value ends with a given suffixCreates a comparison predicate that tests if this value is equal to a given value.Creates a comparison predicate that tests if this value is equal to a given value.static Predicate
Creates an exists predicate that tests if a given subquery returns any rowStructuredType.exists()
Creates a predicate that tests whether any instance of the entity set referenced by this structured type exists, i.e.Creates a predicate that applies a given function to this values and optional additional valuesCreates a comparison predicate that tests if this value is greater than or equal to a given valueCreates a comparison predicate that tests if this value is greater than or equal to a given valueCreates a comparison predicate that tests if this value is greater than a given valueCreates a comparison predicate that tests if this value is greater than a given valueBuild a predicate to check, whether searchable matches a given search term.static Predicate
Creates anin
predicate.static Predicate
CQL.in
(CqnValue value, Collection<? extends CqnValue> values) Creates anin
predicate.static Predicate
Creates a predicate that checks if the values of the given elements match any of the given value sets.CqnBuilder.QueryBuilderSupport.in
(CqnValue lhs, Collection<? extends CqnValue> values) Creates an IN predicate that tests if this value is equal to any value in a given listCreates an IN predicate that tests if this value is equal to any value in a given listCreates an IN predicate that tests if this value is equal to any value in a given listCreates an IN predicate that tests if this value is equal to any value in a given listCreates a comparison predicate that tests if this value is equal to a given value.Creates a comparison predicate that tests if this value is equal to a given value.Creates a comparison predicate that tests if this value is not equal to a given value.Creates a comparison predicate that tests if this value is not equal to a given value.Value.isNotNull()
Creates a predicate that tests if this value is not NULLValue.isNull()
Creates a predicate that tests if this value is NULLCreates a comparison predicate that tests if this value is less than or equal to a given valueCreates a comparison predicate that tests if this value is less than or equal to a given valueCreates a comparison predicate that tests if this value is less than a given valueCreates a comparison predicate that tests if this value is less than a given valuestatic Predicate
CQL.match
(CqnStructuredTypeRef ref, CqnPredicate pred, CqnMatchPredicate.Quantifier quantifier) Creates a match predicate that tests if a given ref matches a given filterCqnBuilder.QueryBuilderSupport.match
(CqnStructuredTypeRef ref, CqnPredicate pred, CqnMatchPredicate.Quantifier quantifier) static Predicate
Creates a predicate from a map of element names to values or parameters.Creates a comparison predicate that tests if this value is not equal to a given value.Creates a comparison predicate that tests if this value is not equal to a given value.static Predicate
CQL.not
(CqnPredicate predicate) Negates a givenCqnPredicate
.CqnBuilder.QueryBuilderSupport.not
(CqnPredicate p) Predicate.not()
Negates this predicatestatic Predicate
CQL.or
(CqnPredicate p1, CqnPredicate p2) Creates a disjunction of two given predicatesstatic Predicate
CQL.or
(Iterable<? extends CqnPredicate> predicates) Creates a disjunction of given predicatesPredicate.or
(CqnPredicate other, CqnPredicate... more) Creates a disjunction of this predicate with other predicatesstatic Predicate
Creates a search predicate.static Predicate
CQL.startsWith
(CqnValue value, CqnValue prefix, boolean caseInsensitive) Creates a predicate that tests whether a string value starts with a given prefixValue.startsWith
(Value<String> prefix) Creates a predicate that tests whether this string value starts with a given prefixValue.startsWith
(String prefix) Creates a predicate that tests whether this string value starts with a given prefixMethod parameters in com.sap.cds.ql with type arguments of type PredicateModifier and TypeMethodDescriptionSelect.search
(Function<Searchable, Predicate> pred) Adds a search filter to this select statement, requiring that any searchable element of the target entity set matches the given search predicate.Adds a search filter to this select statement, requiring that any searchable element of the target entity set matches the given search predicate. -
Uses of Predicate in com.sap.cds.ql.cqn
Methods in com.sap.cds.ql.cqn with parameters of type PredicateModifier and TypeMethodDescriptiondefault CqnPredicate
default CqnPredicate
Override this method to replace a logicalnegation
.default CqnPredicate
default CqnPredicate
Override this method to set thewhere
clause offilterable
statements.Method parameters in com.sap.cds.ql.cqn with type arguments of type PredicateModifier and TypeMethodDescriptiondefault CqnPredicate
Modifier.connective
(CqnConnectivePredicate.Operator op, List<Predicate> predicates) Override this method to replace a logicalconnection
predicate, which connects multiple predicates with the givenoperator
.