Uses of Interface
com.sap.cds.ql.cqn.CqnPredicate
Package
Description
-
Uses of CqnPredicate in com.sap.cds.ql
Modifier and TypeInterfaceDescriptioninterface
interface
interface
Modifier and TypeMethodDescriptionstatic Collector<CqnPredicate,
?, CqnPredicate> CQL.withAnd()
Returns aCollector
that connects the input predicates with AND.static Collector<CqnPredicate,
?, CqnPredicate> CQL.withAnd()
Returns aCollector
that connects the input predicates with AND.CqnBuilder.QueryBuilderSupport.withAnd()
CqnBuilder.QueryBuilderSupport.withAnd()
static Collector<CqnPredicate,
?, CqnPredicate> CQL.withOr()
Returns aCollector
that connects the input predicates with OR.static Collector<CqnPredicate,
?, CqnPredicate> CQL.withOr()
Returns aCollector
that connects the input predicates with OR.CqnBuilder.QueryBuilderSupport.withOr()
CqnBuilder.QueryBuilderSupport.withOr()
Modifier 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.static Predicate
CQL.and
(CqnPredicate p1, CqnPredicate p2) Creates a conjunction of two 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.static 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) RefBuilder.RefSegment.filter
(CqnPredicate filter) Sets the filter of this segment.StructuredType.filter
(CqnPredicate p) Select.having
(CqnPredicate pred) Sets the having clause of the select statement.static 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
CQL.not
(CqnPredicate predicate) Negates a givenCqnPredicate
.CqnBuilder.QueryBuilderSupport.not
(CqnPredicate p) static Predicate
CQL.or
(CqnPredicate p1, CqnPredicate p2) Creates a disjunction of two given predicatesPredicate.or
(CqnPredicate other, CqnPredicate... more) Creates a disjunction of this predicate with other predicatesstatic CqnReference.Segment
CQL.refSegment
(String id, CqnPredicate filter) Creates a segment of a structured type or element reference with a filter condition.CqnBuilder.QueryBuilderSupport.refSegment
(String id, CqnPredicate filter) 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.Delete.where
(CqnPredicate predicate) Sets the where condition of this delete statement.FilterableStatement.where
(CqnPredicate predicate) Sets the where condition of this filterable statement to a given predicate.Select.where
(CqnPredicate pred) Sets the where condition of this select statement to a given predicate.Update.where
(CqnPredicate predicate) Sets the where condition of this update statement to a given predicate.Modifier and TypeMethodDescriptionStructuredType.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 predicatesStructuredType.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 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) StructuredType.filter
(Function<T, CqnPredicate> p) 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 predicatesDelete.where
(Function<T, CqnPredicate> predicate) Sets the where condition of this delete statement.FilterableStatement.where
(Function<T, CqnPredicate> predicate) Sets the where condition of this filterable statement.Select.where
(Function<T, CqnPredicate> pred) Sets the where condition of this select statement.Update.where
(Function<T, CqnPredicate> predicate) Sets the where condition of this update statement. -
Uses of CqnPredicate in com.sap.cds.ql.cqn
Modifier and TypeInterfaceDescriptioninterface
interface
interface
interface
interface
interface
Predicate that tests whether any|all elements of an entity set match a given conditioninterface
interface
Modifier and TypeMethodDescriptiondefault CqnPredicate
CqnExpression.asPredicate()
Casts this expression to aCqnPredicate
.default CqnPredicate
CqnPredicate.asPredicate()
default CqnPredicate
Modifier.booleanFunction
(String name, List<Value<?>> args) Override this method to replace a predicatefunction
call.default CqnPredicate
Modifier.comparison
(Value<?> lhs, CqnComparisonPredicate.Operator op, Value<?> rhs) Override this method to replace acomparison
predicate.default CqnPredicate
Modifier.connective
(CqnConnectivePredicate.Operator op, List<Predicate> predicates) Override this method to replace a logicalconnection
predicate, which connects multiple predicates with the givenoperator
.default CqnPredicate
Modifier.containment
(CqnContainmentTest.Position position, CqnValue value, CqnValue term, boolean caseInsensitive) Override this method to replace acontainment
test predicate.default CqnPredicate
Override this method to replace anexist
subquery.default CqnPredicate
default CqnPredicate
Override this method to replace anin
predicate that checks if the givenvalue
is equal to any value in thevalueSet
.default CqnPredicate
Modifier.match
(CqnMatchPredicate match) Override this method to replace amatch
predicate.default CqnPredicate
Override this method to replace a logicalnegation
.CqnNegation.predicate()
default CqnPredicate
default CqnPredicate
Override this method to replace asearch
predicate.default CqnPredicate
Override this method to set thewhere
clause offilterable
statements.Modifier and TypeMethodDescriptionCqnReference.Segment.filter()
CqnSelect.having()
CqnJoin.on()
CqnMatchPredicate.predicate()
The condition to test forCqnConnectivePredicate.predicates()
CqnSelect.search()
CqnFilterableStatement.where()
The where clause of the filterable statement as aCqnPredicate
.Modifier and TypeMethodDescriptiondefault void
CqnVisitor.visit
(CqnPredicate pred) Called for each traversedpredicate
unless the more specific methodsCqnVisitor.visit(CqnComparisonPredicate)
,CqnVisitor.visit(CqnSearchPredicate)
,CqnVisitor.visit(CqnConnectivePredicate)
,CqnVisitor.visit(CqnInPredicate)
,CqnVisitor.visit(CqnNegation)
,CqnVisitor.visit(CqnExistsSubquery)
,CqnVisitor.visit(CqnMatchPredicate)
orCqnVisitor.visit(CqnMatchPredicate)
are implemented -
Uses of CqnPredicate in com.sap.cds.ql.cqn.transformation
-
Uses of CqnPredicate in com.sap.cds.reflect
Modifier and TypeMethodDescriptionCdsAssociationType.onCondition()
Returns anOptional
wrapping the on condition of this association.