Package | Description |
---|---|
com.sap.cds.ql | |
com.sap.cds.ql.cqn | |
com.sap.cds.reflect |
Modifier and Type | Interface and Description |
---|---|
interface |
BooleanFunction |
interface |
Predicate |
Modifier and Type | Method and Description |
---|---|
Collector<CqnPredicate,?,CqnPredicate> |
CqnBuilder.QueryBuilderSupport.withAnd() |
Collector<CqnPredicate,?,CqnPredicate> |
CqnBuilder.QueryBuilderSupport.withAnd() |
static Collector<CqnPredicate,?,CqnPredicate> |
CQL.withAnd()
Returns a
Collector that connects the input predicates with AND. |
static Collector<CqnPredicate,?,CqnPredicate> |
CQL.withAnd()
Returns a
Collector that connects the input predicates with AND. |
Collector<CqnPredicate,?,CqnPredicate> |
CqnBuilder.QueryBuilderSupport.withOr() |
Collector<CqnPredicate,?,CqnPredicate> |
CqnBuilder.QueryBuilderSupport.withOr() |
static Collector<CqnPredicate,?,CqnPredicate> |
CQL.withOr()
Returns a
Collector that connects the input predicates with OR. |
static Collector<CqnPredicate,?,CqnPredicate> |
CQL.withOr()
Returns a
Collector that connects the input predicates with OR. |
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 |
Predicate.and(CqnPredicate other,
CqnPredicate... more)
Creates a conjunction of this predicate with other predicates
|
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
|
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 |
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.
|
T |
StructuredType.filter(CqnPredicate p) |
default RefSegment |
RefSegment.filter(CqnPredicate filter)
Deprecated.
instead use
CQL.refSegment(String, CqnPredicate) |
RefBuilder.RefSegment |
RefBuilder.RefSegment.filter(CqnPredicate filter)
Sets the filter of this segment.
|
abstract Select<T> |
Select.having(CqnPredicate pred)
Sets the having clause of the select statement.
|
Predicate |
CqnBuilder.QueryBuilderSupport.match(CqnStructuredTypeRef ref,
CqnPredicate pred,
CqnMatchPredicate.Quantifier quantifier) |
static Predicate |
CQL.match(CqnStructuredTypeRef ref,
CqnPredicate pred,
CqnMatchPredicate.Quantifier quantifier)
Creates a match predicate that tests if a given ref matches a given filter
|
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
|
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
|
CqnReference.Segment |
CqnBuilder.QueryBuilderSupport.refSegment(String id,
CqnPredicate filter) |
static CqnReference.Segment |
CQL.refSegment(String id,
CqnPredicate filter)
Creates a segment of a structured type or element reference with a filter
condition.
|
abstract Select<T> |
Select.search(CqnPredicate pred)
Adds a search filter to this select statement, requiring that any searchable
element of the target entity set matches the given search predicate.
|
Update<T> |
Update.where(CqnPredicate predicate)
Sets the where condition of this update statement to a given predicate.
|
abstract Select<T> |
Select.where(CqnPredicate pred)
Sets the where condition of this select statement to a given predicate.
|
S |
FilterableStatement.where(CqnPredicate predicate)
Sets the where condition of this filterable statement to a given predicate.
|
Delete<T> |
Delete.where(CqnPredicate predicate)
Sets the where condition of this delete statement.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static Predicate |
CQL.and(Iterable<? extends CqnPredicate> predicates)
Creates a conjunction of given predicates
|
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 |
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 . |
T |
StructuredType.filter(Function<T,CqnPredicate> p) |
abstract Select<T> |
Select.having(Function<T,CqnPredicate> pred)
Sets the having clause of the select statement.
|
static Predicate |
CQL.or(Iterable<? extends CqnPredicate> predicates)
Creates a disjunction of given predicates
|
Update<T> |
Update.where(Function<T,CqnPredicate> predicate)
Sets the where condition of this update statement.
|
abstract Select<T> |
Select.where(Function<T,CqnPredicate> pred)
Sets the where condition of this select statement.
|
S |
FilterableStatement.where(Function<T,CqnPredicate> predicate)
Sets the where condition of this filterable statement.
|
Delete<T> |
Delete.where(Function<T,CqnPredicate> predicate)
Sets the where condition of this delete statement.
|
Modifier and Type | Interface and Description |
---|---|
interface |
CqnComparisonPredicate |
interface |
CqnConnectivePredicate
|
interface |
CqnContainmentTest |
interface |
CqnExistsSubquery |
interface |
CqnInPredicate
|
interface |
CqnMatchPredicate
Predicate that tests whether any|all elements of an entity set match a given
condition
|
interface |
CqnNegation |
interface |
CqnSearchPredicate |
Modifier and Type | Method and Description |
---|---|
default CqnPredicate |
CqnPredicate.asPredicate() |
default CqnPredicate |
CqnExpression.asPredicate()
Casts this expression to a
CqnPredicate . |
default CqnPredicate |
Modifier.having(Predicate having)
|
default CqnPredicate |
Modifier.match(CqnMatchPredicate match)
Override this method to replace a
match predicate. |
default CqnPredicate |
CompatibilityDefaults.match(CqnMatchPredicate match)
Deprecated.
Delegator for compatibility
|
CqnPredicate |
CqnNegation.predicate() |
Modifier and Type | Method and Description |
---|---|
Optional<CqnPredicate> |
CqnReference.Segment.filter() |
Optional<CqnPredicate> |
CqnSelect.having() |
Optional<CqnPredicate> |
CqnJoin.on() |
Optional<CqnPredicate> |
CqnMatchPredicate.predicate()
The condition to test for
|
List<CqnPredicate> |
CqnConnectivePredicate.predicates() |
Optional<CqnPredicate> |
CqnSelect.search() |
Optional<CqnPredicate> |
CqnFilterableStatement.where()
The where clause of the filterable statement as a
CqnPredicate . |
Modifier and Type | Method and Description |
---|---|
default void |
CqnVisitor.visit(CqnPredicate pred)
Called for each traversed
predicate unless the more
specific methods CqnVisitor.visit(CqnComparisonPredicate) ,
CqnVisitor.visit(CqnSearchPredicate) , CqnVisitor.visit(CqnConnectivePredicate) ,
CqnVisitor.visit(CqnInPredicate) , CqnVisitor.visit(CqnNegation) ,
CqnVisitor.visit(CqnExistsSubquery) , CqnVisitor.visit(CqnMatchPredicate) or
CqnVisitor.visit(CqnMatchPredicate) are implemented |
Modifier and Type | Method and Description |
---|---|
Optional<CqnPredicate> |
CdsAssociationType.onCondition()
Returns an
Optional wrapping the on condition of this association. |
Copyright © 2023 SAP. All rights reserved.