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) |
RefSegment |
RefSegment.filter(CqnPredicate filter) |
abstract Select<T> |
Select.having(CqnPredicate pred)
Sets the having clause of the select statement.
|
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
|
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 the update statement.
|
abstract Select<T> |
Select.where(CqnPredicate pred)
Sets the where condition of the select statement.
|
Delete<T> |
Delete.where(CqnPredicate predicate)
Sets the where condition of the 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 the update statement.
|
abstract Select<T> |
Select.where(Function<T,CqnPredicate> pred)
Sets the where condition of the select statement.
|
Delete<T> |
Delete.where(Function<T,CqnPredicate> predicate)
Sets the where condition of the 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 . |
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> |
CqnUpdate.where()
The where clause of the update statement as a
CqnPredicate . |
Optional<CqnPredicate> |
CqnSelect.where() |
Optional<CqnPredicate> |
CqnDelete.where()
The where clause of this delete 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 © 2022 SAP. All rights reserved.