Package | Description |
---|---|
com.sap.cds.ql | |
com.sap.cds.ql.cqn |
Modifier and Type | Interface and Description |
---|---|
interface |
BooleanFunction |
interface |
ElementRef<T> |
interface |
FunctionCall<T> |
interface |
Literal<T> |
interface |
Parameter<T> |
interface |
Predicate |
interface |
Value<T> |
Modifier and Type | Method and Description |
---|---|
static CqnValue |
CqnBuilder.plain(String val)
Deprecated.
instead use
CQL.plain(java.lang.String) |
Modifier and Type | Method and Description |
---|---|
FunctionCall<T> |
FunctionCall.args(CqnValue... args) |
BooleanFunction |
BooleanFunction.args(CqnValue... args) |
static Value<Number> |
CQL.average(CqnValue value)
Creates an average function call on the given element or expression.
|
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.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
|
Value<Long> |
CqnBuilder.QueryBuilderSupport.countDistinct(CqnValue value) |
static Value<Long> |
CQL.countDistinct(CqnValue value)
Creates an count distinct function call on the given element or expression.
|
static Predicate |
CQL.endsWith(CqnValue value,
CqnValue suffix,
boolean caseInsensitive)
Creates a predicate that tests whether a string value ends with a given
suffix
|
Value<Number> |
CqnBuilder.QueryBuilderSupport.expression(CqnValue left,
CqnArithmeticExpression.Operator op,
CqnValue right) |
static Value<Number> |
CQL.expression(CqnValue left,
CqnArithmeticExpression.Operator op,
CqnValue right)
Creates an arithmetic expression.
|
static <T> FunctionCall<T> |
CqnBuilder.func(String name,
CqnValue... args)
Deprecated.
|
static <T> FunctionCall<T> |
CQL.func(String name,
CqnValue... args)
Creates a CDS QL function call that is send to the underlying data store.
|
Select<T> |
Select.groupBy(CqnValue... dimensions)
Sets the group by clause of the select statement.
|
Predicate |
CqnBuilder.QueryBuilderSupport.in(CqnValue lhs,
Collection<? extends CqnValue> values) |
static Predicate |
CQL.in(CqnValue value,
Collection<? extends CqnValue> values)
Creates an
in predicate. |
Predicate |
CqnBuilder.QueryBuilderSupport.in(CqnValue lhs,
CqnValue valueSet) |
static Predicate |
CQL.in(CqnValue value,
CqnValue valueSet)
Creates an
in predicate. |
static CqnListValue |
CQL.list(CqnValue... values)
Creates a
CqnListValue composing given values |
static <T> Value<T> |
CQL.max(CqnValue value)
Creates a max function call on the given element or expression.
|
static <T> Value<T> |
CQL.min(CqnValue value)
Creates a min function call on the given element or expression.
|
CqnSortSpecification |
CqnBuilder.QueryBuilderSupport.sort(CqnValue value,
CqnSortSpecification.Order order) |
static CqnSortSpecification |
CQL.sort(CqnValue value,
CqnSortSpecification.Order order)
Creates a
CqnSortSpecification that sorts a value by a given order |
static Predicate |
CQL.startsWith(CqnValue value,
CqnValue prefix,
boolean caseInsensitive)
Creates a predicate that tests whether a string value starts with a given
prefix
|
static Value<Number> |
CQL.sum(CqnValue value)
Creates a sum function call on the given element or expression.
|
Modifier and Type | Method and Description |
---|---|
BooleanFunction |
CqnBuilder.QueryBuilderSupport.booleanFunc(String functionName,
List<? extends CqnValue> args) |
static BooleanFunction |
CQL.booleanFunc(String name,
List<? extends CqnValue> args)
Creates a CDS QL function call that is send to the underlying data store.
|
<T> FunctionCall<T> |
CqnBuilder.QueryBuilderSupport.func(String functionName,
Iterable<? extends CqnValue> args) |
static <T> FunctionCall<T> |
CQL.func(String name,
List<? extends CqnValue> args)
Creates a CDS QL function call that is send to the underlying data store.
|
abstract Select<T> |
Select.groupBy(List<? extends CqnValue> dimensions)
Sets the group by clause of the select statement.
|
abstract Select<T> |
Select.groupBy(Stream<? extends CqnValue> dimensions)
Sets the group by clause of the select statement.
|
Predicate |
CqnBuilder.QueryBuilderSupport.in(CqnValue lhs,
Collection<? extends CqnValue> values) |
static Predicate |
CQL.in(CqnValue value,
Collection<? extends CqnValue> values)
Creates an
in predicate. |
CqnListValue |
CqnBuilder.QueryBuilderSupport.list(List<? extends CqnValue> values) |
static CqnListValue |
CQL.list(List<? extends CqnValue> values)
Creates a
CqnListValue composing given values |
Modifier and Type | Interface and Description |
---|---|
interface |
CqnArithmeticExpression |
interface |
CqnArithmeticNegation |
interface |
CqnBooleanLiteral |
interface |
CqnComparisonPredicate |
interface |
CqnConnectivePredicate
|
interface |
CqnContainmentTest |
interface |
CqnElementRef |
interface |
CqnExistsSubquery |
interface |
CqnExpression |
interface |
CqnFunc |
interface |
CqnInPredicate
|
interface |
CqnListValue |
interface |
CqnLiteral<T>
A CQN literal value of type
T . |
interface |
CqnMatchPredicate
Predicate that tests whether any|all elements of an entity set match a given
condition
|
interface |
CqnNegation |
interface |
CqnNullValue |
interface |
CqnNumericLiteral<N extends Number> |
interface |
CqnParameter |
interface |
CqnPlain |
interface |
CqnPredicate |
interface |
CqnSearchPredicate |
interface |
CqnStringLiteral |
interface |
CqnStructuredLiteral |
interface |
CqnTemporalLiteral<E extends Temporal> |
Modifier and Type | Method and Description |
---|---|
default <T extends CqnValue> |
CqnValue.as(Class<T> type)
Casts this type to the given
type . |
Modifier and Type | Method and Description |
---|---|
CqnValue |
CqnComparisonPredicate.left() |
CqnValue |
CqnArithmeticExpression.left() |
default CqnValue |
Modifier.list(List<Value<?>> values)
|
default CqnValue |
Modifier.literal(CqnLiteral<?> value)
|
default CqnValue |
CqnModifier.literal(CqnLiteral<?> literal)
Deprecated.
|
default CqnValue |
Modifier.ref(CqnElementRef ref)
|
default CqnValue |
CompatibilityDefaults.ref(CqnElementRef ref)
Deprecated.
Delegator for compatibility
|
CqnValue |
CqnComparisonPredicate.right() |
CqnValue |
CqnArithmeticExpression.right() |
CqnValue |
CqnContainmentTest.term() |
CqnValue |
CqnSortSpecification.value() |
CqnValue |
CqnSelectListValue.value() |
CqnValue |
CqnInPredicate.value()
The actual
CqnValue that is tested against the values
given by CqnInPredicate.valueSet() . |
default CqnValue |
CqnElementRef.value() |
CqnValue |
CqnContainmentTest.value() |
CqnValue |
CqnArithmeticNegation.value() |
CqnValue |
CqnInPredicate.valueSet()
Defines the set of expected values the
actual value is
tested against. |
Modifier and Type | Method and Description |
---|---|
List<CqnValue> |
CqnFunc.args()
Returns the arguments of this function call.
|
List<CqnValue> |
CqnSelect.groupBy() |
default List<CqnValue> |
Modifier.groupBy(List<CqnValue> values)
|
Stream<CqnValue> |
CqnListValue.values() |
default Collection<CqnValue> |
CqnInPredicate.values()
Returns the collection of expected values in case
CqnInPredicate.valueSet()
is a CqnListValue , otherwise a ClassCastException is thrown. |
Modifier and Type | Method and Description |
---|---|
default Predicate |
Modifier.containment(CqnContainmentTest.Position position,
CqnValue value,
CqnValue term,
boolean caseInsensitive)
Override this method to replace a
containment test
predicate. |
default Predicate |
Modifier.in(Value<?> value,
CqnValue valueSet)
Override this method to replace an
in predicate that
check if the given value is equal to any value in a valueSet . |
default Predicate |
CompatibilityDefaults.in(Value<?> value,
CqnValue valueSet)
Deprecated.
Delegator for compatibility
|
Modifier and Type | Method and Description |
---|---|
default List<CqnValue> |
Modifier.groupBy(List<CqnValue> values)
|
Copyright © 2023 SAP. All rights reserved.