Package | Description |
---|---|
com.sap.cds.ql | |
com.sap.cds.ql.cqn |
Modifier and Type | Interface and Description |
---|---|
interface |
BooleanFunction |
Modifier and Type | Method and Description |
---|---|
Predicate |
StructuredType.allMatch(CqnPredicate p)
Creates a predicate that tests whether all elements of the entity
set referenced by this structured type match a given condition.
|
Predicate |
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.
|
Predicate |
Predicate.and(CqnPredicate other,
CqnPredicate... more)
Creates a conjunction of this predicate with other predicates
|
static Predicate |
CQL.and(CqnPredicate p1,
CqnPredicate p2)
Creates a conjunction of two given predicates
|
static Predicate |
CQL.and(Iterable<? extends CqnPredicate> predicates)
Creates a conjunction of given predicates
|
Predicate |
StructuredType.anyMatch(CqnPredicate p)
Creates a predicate that tests whether any instance of the entity
set referenced by this structured type matches a given condition.
|
Predicate |
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.
|
Predicate |
Value.between(T low,
T high)
Creates a between predicate that tests if this value is within a closed
interval with given bounds
|
Predicate |
Value.between(T low,
Value<T> high)
Creates a between predicate that tests if this value is within a closed
interval with given bounds
|
Predicate |
Value.between(Value<T> low,
T high)
Creates a between predicate that tests if this value is within a closed
interval with given bounds
|
Predicate |
Value.between(Value<T> low,
Value<T> high)
Creates a between predicate that tests if this value is within a closed
interval with given bounds
|
Predicate |
CqnBuilder.QueryBuilderSupport.comparison(CqnValue lhs,
CqnComparisonPredicate.Operator op,
CqnValue rhs) |
static Predicate |
CQL.comparison(CqnValue lhs,
CqnComparisonPredicate.Operator op,
CqnValue rhs)
Creates a comparison predicate.
|
Predicate |
CqnBuilder.QueryBuilderSupport.connect(CqnConnectivePredicate.Operator operator,
Iterable<? extends CqnPredicate> predicates) |
static Predicate |
CQL.connect(CqnConnectivePredicate.Operator operator,
Iterable<? extends CqnPredicate> predicates)
Creates a logical connection of given predicates
CqnPredicate . |
Predicate |
CqnBuilder.QueryBuilderSupport.containment(CqnContainmentTest.Position position,
CqnValue value,
CqnValue term,
boolean caseInsensitive) |
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 position
CqnContainmentTest.Position |
static Predicate |
CQL.contains(CqnValue value,
CqnValue substring,
boolean caseInsensitive)
Creates a predicate that tests whether a string value contains a given
substring
|
Predicate |
Value.contains(String substring)
Creates a predicate that tests whether this string value contains a given
substring
|
Predicate |
Value.contains(Value<String> substring)
Creates a predicate that tests whether this string value contains a given
substring
|
Predicate |
Value.contains(Value<String> substring,
boolean caseInsensitive)
Creates a predicate that tests whether this string value contains a given
substring
|
Predicate |
CqnBuilder.copy(CqnPredicate pred) |
static Predicate |
CQL.copy(CqnPredicate pred)
Creates a copy of the given predicate.
|
Predicate |
CqnBuilder.copy(CqnPredicate pred,
Modifier modifier) |
static Predicate |
CQL.copy(CqnPredicate pred,
Modifier modifier)
Creates a modified copy of the given predicate.
|
static Predicate |
CQL.endsWith(CqnValue value,
CqnValue suffix,
boolean caseInsensitive)
Creates a predicate that tests whether a string value ends with a given
suffix
|
Predicate |
Value.endsWith(String suffix)
Creates a predicate that tests whether this string value ends with a given
suffix
|
Predicate |
Value.endsWith(Value<String> suffix)
Creates a predicate that tests whether this string value ends with a given
suffix
|
Predicate |
Value.eq(T v)
Creates a comparison predicate that tests if this value is equal to a given
value.
|
Predicate |
Value.eq(Value<T> v)
Creates a comparison predicate that tests if this value is equal to a given
value.
|
Predicate |
StructuredType.exists()
Creates a predicate that tests whether any instance of the entity
set referenced by this structured type exists, i.e.
|
Predicate |
CqnBuilder.QueryBuilderSupport.exists(CqnSelect subQuery) |
static Predicate |
CQL.exists(CqnSelect subQuery)
Creates an exists predicate that tests if a given subquery returns any row
|
Predicate |
StructuredType.exists(Function<T,Select<?>> subQuery) |
Predicate |
Value.func(String functionName,
Value<?>... additional)
Creates a predicate that applies a given function to this values and optional
additional values
|
Predicate |
Value.ge(T v)
Creates a comparison predicate that tests if this value is greater than or
equal to a given value
|
Predicate |
Value.ge(Value<T> v)
Creates a comparison predicate that tests if this value is greater than or
equal to a given value
|
Predicate |
Value.gt(T v)
Creates a comparison predicate that tests if this value is greater than a
given value
|
Predicate |
Value.gt(Value<T> v)
Creates a comparison predicate that tests if this value is greater than a
given value
|
Predicate |
Searchable.has(String searchTerm)
Build a predicate to check, whether searchable matches a given search term.
|
Predicate |
CqnBuilder.QueryBuilderSupport.in(CqnValue lhs,
Collection<? extends CqnValue> values) |
static Predicate |
CQL.in(CqnValue lhs,
Collection<? extends CqnValue> values)
Creates an in predicate.
|
Predicate |
CqnBuilder.QueryBuilderSupport.in(CqnValue lhs,
CqnValue valueSet) |
static Predicate |
CQL.in(CqnValue lhs,
CqnValue valueSet)
Creates an in predicate.
|
Predicate |
Value.in(Iterable<Value<? extends T>> ts)
Creates an IN predicate that tests if this value is equal to any value in a
given list
|
Predicate |
Value.in(List<? extends T> ts)
Creates an IN predicate that tests if this value is equal to any value in a
given list
|
Predicate |
Value.in(T... vs)
Creates an IN predicate that tests if this value is equal to any value in a
given list
|
Predicate |
Value.in(Value<T>... ts)
Creates an IN predicate that tests if this value is equal to any value in a
given list
|
Predicate |
Value.is(T v)
Creates a comparison predicate that tests if this value is equal to a given
value.
|
Predicate |
Value.is(Value<T> v)
Creates a comparison predicate that tests if this value is equal to a given
value.
|
Predicate |
Value.isNot(T v)
Creates a comparison predicate that tests if this value is not equal to a
given value.
|
Predicate |
Value.isNot(Value<T> v)
Creates a comparison predicate that tests if this value is not equal to a
given value.
|
Predicate |
Value.isNotNull()
Creates a predicate that tests if this value is not NULL
|
Predicate |
Value.isNull()
Creates a predicate that tests if this value is NULL
|
Predicate |
Value.le(T v)
Creates a comparison predicate that tests if this value is less than or equal
to a given value
|
Predicate |
Value.le(Value<T> v)
Creates a comparison predicate that tests if this value is less than or equal
to a given value
|
Predicate |
Value.lt(T v)
Creates a comparison predicate that tests if this value is less than a given
value
|
Predicate |
Value.lt(Value<T> v)
Creates a comparison predicate that tests if this value is less than a given
value
|
Predicate |
CqnBuilder.QueryBuilderSupport.match(StructuredTypeRef ref,
Predicate pred,
CqnMatchPredicate.Quantifier quantifier) |
static Predicate |
CQL.match(StructuredTypeRef ref,
Predicate pred,
CqnMatchPredicate.Quantifier quantifier)
Creates a match predicate that tests if a given ref matches a given filter
|
Predicate |
CqnBuilder.matching(Map<String,?> keyValueMap) |
static Predicate |
CQL.matching(Map<String,?> elementToValueMap)
Creates a predicate from a map of element names to values or parameters.
|
Predicate |
Value.ne(T v)
Creates a comparison predicate that tests if this value is not equal to a
given value.
|
Predicate |
Value.ne(Value<T> v)
Creates a comparison predicate that tests if this value is not equal to a
given value.
|
Predicate |
Predicate.not()
Negates this predicate
|
static Predicate |
CqnBuilder.not(CqnPredicate p)
Deprecated.
instead use
CQL.not(com.sap.cds.ql.cqn.CqnPredicate) |
Predicate |
CqnBuilder.QueryBuilderSupport.not(CqnPredicate p) |
static Predicate |
CQL.not(CqnPredicate predicate)
Negates a given
CqnPredicate . |
Predicate |
Predicate.or(CqnPredicate other,
CqnPredicate... more)
Creates a disjunction of this predicate with other predicates
|
static Predicate |
CQL.or(CqnPredicate p1,
CqnPredicate p2)
Creates a disjunction of two given predicates
|
static Predicate |
CQL.or(Iterable<? extends CqnPredicate> predicates)
Creates a disjunction of given predicates
|
Predicate |
Value.plain(Object... p) |
Predicate |
CqnBuilder.QueryBuilderSupport.search(String term) |
static Predicate |
CQL.search(String term)
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
prefix
|
Predicate |
Value.startsWith(String prefix)
Creates a predicate that tests whether this string value starts with a given
prefix
|
Predicate |
Value.startsWith(Value<String> prefix)
Creates a predicate that tests whether this string value starts with a given
prefix
|
Modifier and Type | Method and Description |
---|---|
Predicate |
CqnBuilder.QueryBuilderSupport.match(StructuredTypeRef ref,
Predicate pred,
CqnMatchPredicate.Quantifier quantifier) |
static Predicate |
CQL.match(StructuredTypeRef ref,
Predicate pred,
CqnMatchPredicate.Quantifier quantifier)
Creates a match predicate that tests if a given ref matches a given filter
|
Modifier and Type | Method and Description |
---|---|
abstract Select<T> |
Select.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.
|
abstract Select<T> |
Select.search(Function<Searchable,Predicate> pred,
Iterable<String> searchableElements)
Adds a search filter to this select statement, requiring that any searchable
element of the target entity set matches the given search predicate.
|
Modifier and Type | Method and Description |
---|---|
default Predicate |
Modifier.booleanFunction(String name,
List<Value<?>> args) |
default Predicate |
Modifier.comparison(Value<?> lhs,
CqnComparisonPredicate.Operator op,
Value<?> rhs) |
default Predicate |
Modifier.connective(CqnConnectivePredicate.Operator op,
List<Predicate> predicates) |
default Predicate |
Modifier.containment(CqnContainmentTest.Position position,
CqnValue value,
CqnValue substring,
boolean caseInsensitive) |
default Predicate |
Modifier.exists(Select<?> subQuery) |
default Predicate |
Modifier.having(Predicate having) |
default Predicate |
Modifier.in(Value<?> value,
Collection<Value<?>> list)
Deprecated.
instead use
Modifier.in(Value, CqnValue) and check valueSet for CqnListValue |
default Predicate |
Modifier.in(Value<?> value,
CqnValue valueSet) |
default Predicate |
Modifier.match(StructuredTypeRef ref,
Predicate pred,
CqnMatchPredicate.Quantifier quantifier) |
default Predicate |
Modifier.negation(Predicate p) |
default Predicate |
Modifier.search(Predicate search) |
default Predicate |
Modifier.search(String term) |
default Predicate |
Modifier.where(Predicate where) |
Modifier and Type | Method and Description |
---|---|
default Predicate |
Modifier.having(Predicate having) |
default Predicate |
Modifier.match(StructuredTypeRef ref,
Predicate pred,
CqnMatchPredicate.Quantifier quantifier) |
default Predicate |
Modifier.negation(Predicate p) |
default Predicate |
Modifier.search(Predicate search) |
default Predicate |
Modifier.where(Predicate where) |
Modifier and Type | Method and Description |
---|---|
default Predicate |
Modifier.connective(CqnConnectivePredicate.Operator op,
List<Predicate> predicates) |
Copyright © 2022 SAP. All rights reserved.