public interface Value<T> extends CqnValue, Orderable
Modifier and Type | Method and Description |
---|---|
CqnSelectListValue |
as(String alias) |
Predicate |
between(T low,
T high)
Creates a between predicate that tests if this value is within a closed
interval with given bounds
|
Predicate |
between(T low,
Value<T> high)
Creates a between predicate that tests if this value is within a closed
interval with given bounds
|
Predicate |
between(Value<T> low,
T high)
Creates a between predicate that tests if this value is within a closed
interval with given bounds
|
Predicate |
between(Value<T> low,
Value<T> high)
Creates a between predicate that tests if this value is within a closed
interval with given bounds
|
default <U> Value<U> |
cast(Class<U> javaType)
Deprecated.
|
default <U> Value<U> |
cast(String cdsType)
Deprecated.
|
Predicate |
contains(String substring)
Creates a predicate that tests whether this string value contains a given
substring
|
Predicate |
contains(Value<String> substring)
Creates a predicate that tests whether this string value contains a given
substring
|
Predicate |
contains(Value<String> substring,
boolean caseInsensitive)
Creates a predicate that tests whether this string value contains a given
substring
|
Value<T> |
dividedBy(T v)
Creates an expression that divides this numeric value by a given divisor
|
Value<T> |
dividedBy(Value<T> v)
Creates an expression that divides this numeric value by a given divisor
|
Predicate |
endsWith(String suffix)
Creates a predicate that tests whether this string value ends with a given
suffix
|
Predicate |
endsWith(Value<String> suffix)
Creates a predicate that tests whether this string value ends with a given
suffix
|
Predicate |
eq(T v)
Creates a comparison predicate that tests if this value is equal to a given
value
|
Predicate |
eq(Value<T> v)
Creates a comparison predicate that tests if this value is equal to a given
value
|
Predicate |
func(String functionName,
Value<?>... additional)
Creates a predicate that applies a given function to this values and optional
additional values
|
Predicate |
ge(T v)
Creates a comparison predicate that tests if this value is greater than or
equal to a given value
|
Predicate |
ge(Value<T> v)
Creates a comparison predicate that tests if this value is greater than or
equal to a given value
|
Predicate |
gt(T v)
Creates a comparison predicate that tests if this value is greater than a
given value
|
Predicate |
gt(Value<T> v)
Creates a comparison predicate that tests if this value is greater than a
given value
|
Predicate |
in(Iterable<Value<? extends T>> ts)
Creates an IN predicate that tests if this value is equal to any value in a
given list
|
Predicate |
in(List<? extends T> ts)
Creates an IN predicate that tests if this value is equal to any value in a
given list
|
Predicate |
in(T... vs)
Creates an IN predicate that tests if this value is equal to any value in a
given list
|
Predicate |
in(Value<T>... ts)
Creates an IN predicate that tests if this value is equal to any value in a
given list
|
Predicate |
isNotNull()
Creates a predicate that tests if this value is not null
|
Predicate |
isNull()
Creates a predicate that tests if this value is null
|
Predicate |
le(T v)
Creates a comparison predicate that tests if this value is less than or equal
to a given value
|
Predicate |
le(Value<T> v)
Creates a comparison predicate that tests if this value is less than or equal
to a given value
|
Predicate |
lt(T v)
Creates a comparison predicate that tests if this value is less than a given
value
|
Predicate |
lt(Value<T> v)
Creates a comparison predicate that tests if this value is less than a given
value
|
Value<T> |
minus(T v)
Creates an expression that subtracts a given subtrahend from this numeric
value
|
Value<T> |
minus(Value<T> v)
Creates an expression that subtracts a given subtrahend from this numeric
value
|
Predicate |
ne(T v)
Creates a comparison predicate that tests if this value is not equal to a
given value
|
Predicate |
ne(Value<T> v)
Creates a comparison predicate that tests if this value is not equal to a
given value
|
Predicate |
plain(Object... p) |
Value<T> |
plus(T v)
Creates an expression that adds a given summand to this numeric value
|
Value<T> |
plus(Value<T> v)
Creates an expression that adds a given summand to this numeric value
|
Predicate |
startsWith(String prefix)
Creates a predicate that tests whether this string value starts with a given
prefix
|
Predicate |
startsWith(Value<String> prefix)
Creates a predicate that tests whether this string value starts with a given
prefix
|
Value<String> |
substring(int start)
Creates an expression for substring extraction from this string value.
|
Value<String> |
substring(int start,
int length)
Creates an expression for substring extraction from this string value.
|
Value<String> |
substring(Value<Integer> start)
Creates an expression for substring extraction from this string value.
|
Value<String> |
substring(Value<Integer> start,
Value<Integer> length)
Creates an expression for substring extraction from this value.
|
Value<T> |
times(T v)
Creates an expression that multiplies this numeric value with a given factor
|
Value<T> |
times(Value<T> v)
Creates an expression that multiplies this numeric value with a given factor
|
Value<String> |
toLower()
Creates an expression for converting this string value to lower case using
the rules of the underlying data store.
|
Value<String> |
toUpper()
Creates an expression for converting this string value to upper case using
the rules of the underlying data store.
|
<U> Value<U> |
type(CdsBaseType cdsType) |
<U> Value<U> |
type(Class<U> javaType) |
<U> Value<U> |
type(String cdsType) |
CqnSelectListValue |
withoutAlias() |
as, asExpression, asFunction, asLiteral, asNullValue, asParameter, asPlain, asRef, isExpression, isFunction, isLiteral, isNullValue, isParameter, isPlain, isRef, type
toJson
Value<T> plus(T v)
v
- the summandValue<T> plus(Value<T> v)
v
- the summandValue<T> minus(T v)
v
- the subtrahendValue<T> minus(Value<T> v)
v
- the subtrahendValue<T> times(T v)
v
- the factorValue<T> times(Value<T> v)
v
- the factorValue<T> dividedBy(T v)
v
- the divisorValue<T> dividedBy(Value<T> v)
v
- the divisorValue<String> substring(Value<Integer> start, Value<Integer> length)
start
- the start positionlength
- the number of characters that you want to extractValue<String> substring(int start, int length)
start
- the start positionlength
- the number of characters that you want to extractValue<String> substring(Value<Integer> start)
start
- the start positionValue<String> substring(int start)
start
- the start positionValue<String> toUpper()
Value<String> toLower()
Predicate isNull()
Predicate isNotNull()
Predicate eq(T v)
v
- the value to compare withPredicate eq(Value<T> v)
v
- the value to compare withPredicate ne(T v)
v
- the value to compare withPredicate ne(Value<T> v)
v
- the value to compare withPredicate gt(T v)
v
- the value to compare withPredicate gt(Value<T> v)
v
- the value to compare withPredicate ge(T v)
v
- the value to compare withPredicate ge(Value<T> v)
v
- the value to compare withPredicate lt(T v)
v
- the value to compare withPredicate lt(Value<T> v)
v
- the value to compare withPredicate le(T v)
v
- the value to compare withPredicate le(Value<T> v)
v
- the value to compare withPredicate between(T low, T high)
low
- the lower boundhigh
- the upper boundPredicate between(Value<T> low, T high)
low
- the lower boundhigh
- the upper boundPredicate between(T low, Value<T> high)
low
- the lower boundhigh
- the upper boundPredicate between(Value<T> low, Value<T> high)
low
- the lower boundhigh
- the upper boundPredicate in(T... vs)
vs
- the given valuesPredicate in(List<? extends T> ts)
ts
- the given valuesPredicate in(Value<T>... ts)
ts
- the given valuesPredicate in(Iterable<Value<? extends T>> ts)
ts
- the given valuesPredicate func(String functionName, Value<?>... additional)
functionName
- the function nameadditional
- the additional valuesPredicate contains(String substring)
substring
- the substringPredicate contains(Value<String> substring)
substring
- the substringPredicate contains(Value<String> substring, boolean caseInsensitive)
substring
- the substringcaseInsensitive
- whether the test should be case insensitivePredicate startsWith(String prefix)
prefix
- the prefixPredicate startsWith(Value<String> prefix)
prefix
- the prefixPredicate endsWith(String suffix)
suffix
- the suffixPredicate endsWith(Value<String> suffix)
suffix
- the suffixCqnSelectListValue as(String alias)
CqnSelectListValue withoutAlias()
<U> Value<U> type(CdsBaseType cdsType)
@Deprecated default <U> Value<U> cast(Class<U> javaType)
@Deprecated default <U> Value<U> cast(String cdsType)
Copyright © 2020 SAP. All rights reserved.