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 |
---|---|
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<T> |
Value.dividedBy(T v)
Creates an expression that divides this numeric value by a given divisor
|
Value<T> |
Value.dividedBy(Value<T> v)
Creates an expression that divides this numeric value by a given divisor
|
Value<T> |
Value.minus(T v)
Creates an expression that subtracts a given subtrahend from this numeric
value
|
Value<T> |
Value.minus(Value<T> v)
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<T> |
Value.plus(T v)
Creates an expression that adds a given summand to this numeric value
|
Value<T> |
Value.plus(Value<T> v)
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<T> |
Value.times(T v)
Creates an expression that multiplies this numeric value with a given factor
|
Value<T> |
Value.times(Value<T> v)
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<T> |
Value.dividedBy(Value<T> v)
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.le(Value<T> v)
Creates a comparison predicate that tests if this value is less than or equal
to a given value
|
abstract Select<T> |
Select.limit(Value<Integer> rows,
Value<Integer> offset)
Deprecated.
instead use
Select.limit(long rows, long offset) |
abstract Select<T> |
Select.limit(Value<Integer> rows,
Value<Integer> offset)
Deprecated.
instead use
Select.limit(long rows, long offset) |
Predicate |
Value.lt(Value<T> v)
Creates a comparison predicate that tests if this value is less than a given
value
|
Value<T> |
Value.minus(Value<T> v)
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<T> |
Value.plus(Value<T> v)
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<T> |
Value.times(Value<T> v)
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
|
Select<T> |
Select.limit(Function<T,Value<Integer>> rows)
Deprecated.
instead use
Select.limit(long rows) |
Select<T> |
Select.limit(Function<T,Value<Integer>> rows,
Function<T,Value<Integer>> offset)
Deprecated.
instead use
Select.limit(long rows, long offset) |
Select<T> |
Select.limit(Function<T,Value<Integer>> rows,
Function<T,Value<Integer>> offset)
Deprecated.
instead use
Select.limit(long rows, long offset) |
Modifier and Type | Method and Description |
---|---|
default Value<?> |
CqnModifier.function(String name,
List<Value<?>> args,
String cdsType) |
default Value<?> |
CqnModifier.literal(Boolean bool,
String cdsType) |
default Value<?> |
CqnModifier.literal(Number number,
String cdsType) |
default Value<?> |
CqnModifier.literal(Object value,
String cdsType) |
default Value<?> |
CqnModifier.literal(String val,
String cdsType) |
default Value<?> |
CqnModifier.literal(Temporal temporal,
String cdsType) |
default Value<?> |
CqnModifier.parameter(String name,
String cdsType) |
default Value<?> |
CqnModifier.plain(String plain,
String cdsType) |
default Value<?> |
CqnModifier.ref(ElementRef<?> ref) |
Modifier and Type | Method and Description |
---|---|
default Predicate |
CqnModifier.comparison(Value<?> lhs,
CqnComparisonPredicate.Operator op,
Value<?> rhs) |
default Predicate |
CqnModifier.comparison(Value<?> lhs,
CqnComparisonPredicate.Operator op,
Value<?> rhs) |
default Predicate |
CqnModifier.in(Value<?> value,
Collection<Value<?>> list) |
default CqnSelectListItem |
CqnModifier.selectListItem(Value<?> value,
String alias) |
Modifier and Type | Method and Description |
---|---|
default Predicate |
CqnModifier.booleanFunction(String name,
List<Value<?>> args) |
default Value<?> |
CqnModifier.function(String name,
List<Value<?>> args,
String cdsType) |
default Predicate |
CqnModifier.in(Value<?> value,
Collection<Value<?>> list) |
Copyright © 2020 SAP. All rights reserved.