Package com.sap.cds.ql.cqn
Interface CqnInSubquery
- All Superinterfaces:
CqnExpression,CqnPredicate,CqnToken,CqnValue,JSONizable
The
in subquery predicate tests wether an actual
value (n-tuple) is equal to any value (n-tuple) returned by a defined subquery.
It evaluates to false if the subquery has an empty result.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(CqnVisitor visitor) Traverses the expression tree represented by this token with a givenvisitor.subquery()The subquery that defines the set of expected values theactual valueis tested against.value()The actualCqnValue(n-tuple) that is being compared to the result set (n-tuples) of thesubquery().Methods inherited from interface com.sap.cds.ql.cqn.CqnExpression
asArithmeticExpression, asCaseExpression, asExpression, asNegation, isArithmeticExpression, isCaseExpression, isExpression, isNegation, toJsonMethods inherited from interface com.sap.cds.ql.cqn.CqnPredicate
asPredicate, isPredicateMethods inherited from interface com.sap.cds.ql.cqn.CqnValue
as, asFunction, asList, asLiteral, asNullValue, asParameter, asPlain, asRef, isFunction, isList, isLiteral, isNullValue, isParameter, isPlain, isRef, ofLiteral, ofRef, type
-
Method Details
-
value
CqnValue value()The actualCqnValue(n-tuple) that is being compared to the result set (n-tuples) of thesubquery().- Returns:
- the actual
CqnValue
-
subquery
CqnSelect subquery()The subquery that defines the set of expected values theactual valueis tested against.- Returns:
- the subquery
-
accept
Description copied from interface:CqnTokenTraverses the expression tree represented by this token with a givenvisitor. The traversal order is depth-first. If this token has child nodes they are traversed first by dispatching the visitor to the children'sacceptmethods. Afterwards this token is passed to the visitor'svisitmethod specific for this token's type.- Specified by:
acceptin interfaceCqnExpression- Specified by:
acceptin interfaceCqnToken- Parameters:
visitor- theCqnVisitor
-