Package | Description |
---|---|
com.sap.cds.ql | |
com.sap.cds.ql.cqn |
Modifier and Type | Interface and Description |
---|---|
interface |
ElementRef<T> |
interface |
FunctionCall<T> |
interface |
Literal<T> |
interface |
Parameter<T> |
Modifier and Type | Method and Description |
---|---|
Value<Number> |
Value.average()
Creates a function by passing this value as a parameter to the underlying
data store's AVG function.
|
static Value<Number> |
CQL.average(CqnValue value)
Creates an average function call on the given element or expression.
|
default <U> Value<U> |
Value.cast(Class<U> javaType)
Deprecated.
|
default <U> Value<U> |
Value.cast(String cdsType)
Deprecated.
|
static Value<Long> |
CQL.count()
Creates a count all function call.
|
static Value<Long> |
CQL.count(CqnElementRef element)
Creates a count function call on the given element.
|
Value<Long> |
Value.countDistinct()
Creates a function by passing this value as a parameter with the DISTINCT
keyword to the underlying data store's COUNT function.
|
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.
|
Value<Number> |
Value.dividedBy(Number d)
Creates an expression that divides this numeric value by a given divisor
|
Value<Number> |
Value.dividedBy(Value<? extends Number> d)
Creates an expression that divides this numeric value by a given divisor
|
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.
|
Value<T> |
Value.max()
Creates a function by passing this value as a parameter to the underlying
data store's MAX function.
|
static <T> Value<T> |
CQL.max(CqnValue value)
Creates a max function call on the given element or expression.
|
Value<T> |
Value.min()
Creates a function by passing this value as a parameter to the underlying
data store's MIN function.
|
static <T> Value<T> |
CQL.min(CqnValue value)
Creates a min function call on the given element or expression.
|
Value<Number> |
Value.minus(Number s)
Creates an expression that subtracts a given subtrahend from this numeric
value
|
Value<Number> |
Value.minus(Value<? extends Number> s)
Creates an expression that subtracts a given subtrahend from this numeric
value
|
static Value<Instant> |
CQL.now()
Creates an
ElementRef to be used in queries to represent $now. |
Value<?> |
CqnBuilder.QueryBuilderSupport.plain(String val) |
static Value<?> |
CQL.plain(String value)
Creates a CQN plain value, which is directly send to the underlying data
store.
|
Value<Number> |
Value.plus(Number s)
Creates an expression that adds a given summand to this numeric value
|
Value<Number> |
Value.plus(Value<? extends Number> s)
Creates an expression that adds a given summand to this numeric value
|
Value<String> |
Value.substring(int start)
Creates an expression for substring extraction from this string value.
|
Value<String> |
Value.substring(int start,
int length)
Creates an expression for substring extraction from this string value.
|
Value<String> |
Value.substring(Value<Integer> start)
Creates an expression for substring extraction from this string value.
|
Value<String> |
Value.substring(Value<Integer> start,
Value<Integer> length)
Creates an expression for substring extraction from this value.
|
Value<Number> |
Value.sum()
Creates a function by passing this value as a parameter to the underlying
data store's SUM function.
|
static Value<Number> |
CQL.sum(CqnValue value)
Creates a sum function call on the given element or expression.
|
Value<Number> |
Value.times(Number f)
Creates an expression that multiplies this numeric value with a given factor
|
Value<Number> |
Value.times(Value<? extends Number> f)
Creates an expression that multiplies this numeric value with a given factor
|
Value<String> |
Value.toLower()
Creates an expression for converting this string value to lower case using
the rules of the underlying data store.
|
static Value<String> |
CqnBuilder.toLower(String val)
Deprecated.
|
static Value<String> |
CQL.toLower(String val)
Creates a CDS QL expression for converting the given string value to lower
case using the rules of the underlying data store.
|
Value<String> |
CqnBuilder.QueryBuilderSupport.toLower(Value<String> val) |
static Value<String> |
CQL.toLower(Value<String> val)
Creates a CDS QL expression for converting the given string value to lower
case using the rules of the underlying data store.
|
Value<String> |
Value.toUpper()
Creates an expression for converting this string value to upper case using
the rules of the underlying data store.
|
static Value<String> |
CqnBuilder.toUpper(String val)
Deprecated.
|
static Value<String> |
CQL.toUpper(String val)
Creates a CDS QL expression for converting the given string value to upper
case using the rules of the underlying data store.
|
Value<String> |
CqnBuilder.QueryBuilderSupport.toUpper(Value<String> val) |
static Value<String> |
CQL.toUpper(Value<String> val)
Creates a CDS QL expression for converting the given string value to upper
case using the rules of the underlying data store.
|
<U> Value<U> |
Value.type(CdsBaseType cdsType) |
<U> Value<U> |
Value.type(Class<U> javaType) |
<U> Value<U> |
Value.type(String cdsType) |
static Value<String> |
CQL.userId()
Creates an
ElementRef on the available $user.id value. |
static Value<String> |
CQL.userLocale()
Creates an
ElementRef on the available $user.locale value. |
static Value<Instant> |
CQL.validFrom()
Creates an
ElementRef on the available $validFrom value. |
static Value<Instant> |
CQL.validTo()
Creates an
ElementRef on the available $validTo value. |
Modifier and Type | Method and Description |
---|---|
Predicate |
Value.between(T low,
Value<T> high)
Creates a between predicate that tests if this value is within a closed
interval with given bounds
|
Predicate |
Value.between(Value<T> low,
T high)
Creates a between predicate that tests if this value is within a closed
interval with given bounds
|
Predicate |
Value.between(Value<T> low,
Value<T> high)
Creates a between predicate that tests if this value is within a closed
interval with given bounds
|
Predicate |
Value.between(Value<T> low,
Value<T> high)
Creates a between predicate that tests if this value is within a closed
interval with given bounds
|
Predicate |
Value.contains(Value<String> substring)
Creates a predicate that tests whether this string value contains a given
substring
|
Predicate |
Value.contains(Value<String> substring,
boolean caseInsensitive)
Creates a predicate that tests whether this string value contains a given
substring
|
Value<Number> |
Value.dividedBy(Value<? extends Number> d)
Creates an expression that divides this numeric value by a given divisor
|
Predicate |
Value.endsWith(Value<String> suffix)
Creates a predicate that tests whether this string value ends with a given
suffix
|
Predicate |
Value.eq(Value<T> v)
Creates a comparison predicate that tests if this value is equal to a given
value.
|
Predicate |
Value.func(String functionName,
Value<?>... additional)
Creates a predicate that applies a given function to this values and optional
additional values
|
Predicate |
Value.ge(Value<T> v)
Creates a comparison predicate that tests if this value is greater than or
equal to a given value
|
Predicate |
Value.gt(Value<T> v)
Creates a comparison predicate that tests if this value is greater than a
given value
|
Predicate |
Value.in(Value<T>... ts)
Creates an IN predicate that tests if this value is equal to any value in a
given list
|
Predicate |
Value.is(Value<T> v)
Creates a comparison predicate that tests if this value is equal to a given
value.
|
Predicate |
Value.isNot(Value<T> v)
Creates a comparison predicate that tests if this value is not equal to a
given value.
|
Predicate |
Value.le(Value<T> v)
Creates a comparison predicate that tests if this value is less than or equal
to a given value
|
Predicate |
Value.lt(Value<T> v)
Creates a comparison predicate that tests if this value is less than a given
value
|
Value<Number> |
Value.minus(Value<? extends Number> s)
Creates an expression that subtracts a given subtrahend from this numeric
value
|
Predicate |
Value.ne(Value<T> v)
Creates a comparison predicate that tests if this value is not equal to a
given value.
|
Value<Number> |
Value.plus(Value<? extends Number> s)
Creates an expression that adds a given summand to this numeric value
|
Predicate |
Value.startsWith(Value<String> prefix)
Creates a predicate that tests whether this string value starts with a given
prefix
|
Value<String> |
Value.substring(Value<Integer> start)
Creates an expression for substring extraction from this string value.
|
Value<String> |
Value.substring(Value<Integer> start,
Value<Integer> length)
Creates an expression for substring extraction from this value.
|
Value<String> |
Value.substring(Value<Integer> start,
Value<Integer> length)
Creates an expression for substring extraction from this value.
|
Value<Number> |
Value.times(Value<? extends Number> f)
Creates an expression that multiplies this numeric value with a given factor
|
Value<String> |
CqnBuilder.QueryBuilderSupport.toLower(Value<String> val) |
static Value<String> |
CQL.toLower(Value<String> val)
Creates a CDS QL expression for converting the given string value to lower
case using the rules of the underlying data store.
|
Value<String> |
CqnBuilder.QueryBuilderSupport.toUpper(Value<String> val) |
static Value<String> |
CQL.toUpper(Value<String> val)
Creates a CDS QL expression for converting the given string value to upper
case using the rules of the underlying data store.
|
Modifier and Type | Method and Description |
---|---|
Predicate |
Value.in(Iterable<Value<? extends T>> ts)
Creates an IN predicate that tests if this value is equal to any value in a
given list
|
Modifier and Type | Method and Description |
---|---|
default Value<?> |
Modifier.expression(Value<Number> left,
CqnArithmeticExpression.Operator op,
Value<Number> right,
String cdsType) |
default Value<?> |
Modifier.function(String name,
List<Value<?>> args,
String cdsType) |
default Value<?> |
CqnModifier.literal(Boolean bool,
String cdsType)
Deprecated.
|
default Value<?> |
CqnModifier.literal(Number number,
String cdsType)
Deprecated.
|
default Value<?> |
CqnModifier.literal(Object value,
String cdsType)
Deprecated.
|
default Value<?> |
CqnModifier.literal(String val,
String cdsType)
Deprecated.
|
default Value<?> |
CqnModifier.literal(Temporal temporal,
String cdsType)
Deprecated.
|
default Value<?> |
Modifier.parameter(String name,
String cdsType) |
default Value<?> |
Modifier.plain(String plain,
String cdsType) |
default Value<?> |
Modifier.ref(ElementRef<?> ref) |
Modifier and Type | Method and Description |
---|---|
default Predicate |
Modifier.booleanFunction(String name,
List<Value<?>> args) |
default Value<?> |
Modifier.function(String name,
List<Value<?>> args,
String cdsType) |
default Predicate |
Modifier.in(Value<?> value,
Collection<Value<?>> list)
Deprecated.
instead use
Modifier.in(Value, CqnValue) and check
valueSet for CqnListValue |
default CqnToken |
Modifier.list(List<Value<?>> args) |
Copyright © 2023 SAP. All rights reserved.