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 PredicateCQL.and(CqnPredicate p1, CqnPredicate p2) Creates a conjunction of two given predicatesstatic PredicateCQL.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.static PredicateCreates abetweenpredicate that tests if thisvalueis 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 boundsCreates a between predicate that tests if this value is within a closed interval with given boundsstatic PredicateCQL.comparison(CqnValue lhs, CqnComparisonPredicate.Operator op, CqnValue rhs) Creates a comparison predicate.CqnBuilder.QueryBuilderSupport.comparison(CqnValue lhs, CqnComparisonPredicate.Operator op, CqnValue rhs) static PredicateCQL.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 PredicateCQL.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.PositionCqnBuilder.QueryBuilderSupport.containment(CqnContainmentTest.Position position, CqnValue value, CqnValue term, boolean caseInsensitive) static PredicateCreates 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 PredicateCQL.copy(CqnPredicate pred) Creates a copy of the given predicate.static PredicateCQL.copy(CqnPredicate pred, Modifier modifier) Creates a modified copy of the given predicate.CqnBuilder.copy(CqnPredicate pred) CqnBuilder.copy(CqnPredicate pred, Modifier modifier) static PredicateCreates 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 PredicateCQL.eTag(CqnElementRef elementRef, Object value) Creates aCqnEtagPredicatepredicate.static PredicateCQL.eTag(CqnListValue values) Creates aCqnEtagPredicatepredicate.static PredicateCreates aCqnEtagPredicatepredicate.CqnBuilder.QueryBuilderSupport.eTag(CqnListValue values) StructuredType.eTag(CqnListValue values) static PredicateCreates 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. the entity set referenced by this structured type is not empty.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 PredicateCreates an IN predicate that tests if this value is equal to any value returned by the subquery.static PredicateCreates aninpredicate.static PredicateCQL.in(CqnValue value, Collection<? extends CqnValue> values) Creates aninpredicate.static PredicateCreates 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 returned by the subquery.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 listValue.in(Collection<? extends T> ts) Creates an IN predicate that tests if this value is equal to any value in a given collectionCreates 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 PredicateCQL.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 PredicateCQL.matchesPattern(CqnValue value, CqnValue pattern) Creates a predicate that tests if this value matches a specified regular expressionstatic PredicateCQL.matchesPattern(CqnValue value, CqnValue pattern, boolean caseInsensitive, boolean multiLineSensitive) Creates a predicate that tests if this value matches a specified regular expressionstatic PredicateCQL.matchesPattern(CqnValue value, CqnValue pattern, CqnValue options) Creates a predicate that tests if this value matches a specified regular expressionstatic PredicateCQL.matchesPattern(CqnValue value, String pattern) Creates a predicate that tests if this value matches a specified regular expressionCqnBuilder.QueryBuilderSupport.matchesPattern(CqnValue value, CqnValue pattern) CqnBuilder.QueryBuilderSupport.matchesPattern(CqnValue value, CqnValue pattern, boolean caseInsensitive, boolean multilineSensitive) CqnBuilder.QueryBuilderSupport.matchesPattern(CqnValue value, CqnValue pattern, CqnValue options) Value.matchesPattern(Value<String> pattern) Creates a predicate that tests if this value matches a specified regular expressionValue.matchesPattern(Value<String> pattern, boolean caseInsensitive, boolean multiLineSensitive) Creates a predicate that tests if this value matches a specified regular expressionValue.matchesPattern(Value<String> pattern, Value<String> options) Creates a predicate that tests if this value matches a specified regular expressionValue.matchesPattern(String pattern) Creates a predicate that tests if this value matches a specified regular expressionstatic PredicateCreates 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 PredicateCQL.not(CqnPredicate predicate) Negates a givenCqnPredicate.CqnBuilder.QueryBuilderSupport.not(CqnPredicate p) Predicate.not()Negates this predicatestatic PredicateCQL.or(CqnPredicate p1, CqnPredicate p2) Creates a disjunction of two given predicatesstatic PredicateCQL.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 PredicateCreates a search predicate.static PredicateCQL.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 CqnPredicatedefault CqnPredicateOverride this method to replace a logicalnegation.default CqnPredicatedefault CqnPredicateOverride this method to set thewhereclause offilterablestatements.Method parameters in com.sap.cds.ql.cqn with type arguments of type PredicateModifier and TypeMethodDescriptiondefault CqnPredicateModifier.connective(CqnConnectivePredicate.Operator op, List<Predicate> predicates) Override this method to replace a logicalconnectionpredicate, which connects multiple predicates with the givenoperator.