public interface CQL
Modifier and Type | Method and Description |
---|---|
static Predicate |
and(CqnPredicate p1,
CqnPredicate p2)
Creates a conjunction of two given predicates
|
static Predicate |
and(Iterable<CqnPredicate> predicates)
Creates a conjunction of given predicates
|
static Predicate |
connect(CqnConnectivePredicate.Operator operator,
Iterable<CqnPredicate> predicates)
Creates a logical connection of given predicates
CqnPredicate . |
static StructuredType<?> |
entity(String qualifiedName)
Creates a
StructuredType representing a CDS entity. |
static <T> FunctionCall<T> |
func(String name,
CqnValue... args)
Creates a CDS QL function call that is send to the underlying data store.
|
static <T> ElementRef<T> |
get(String path)
Creates an
ElementRef representing a path from a CDS entity to an
element of this or another entity. |
static <T> Literal<T> |
literal(T value)
Creates a CDS QL
Literal to be used in queries. |
static Predicate |
not(CqnPredicate predicate)
Negates a given
CqnPredicate . |
static Predicate |
or(CqnPredicate p1,
CqnPredicate p2)
Creates a disjunction of two given predicates
|
static Predicate |
or(Iterable<CqnPredicate> predicates)
Creates a disjunction of given predicates
|
static <T> Parameter<T> |
param()
Creates a CDS QL positional
Parameter to be used in queries. |
static <T> Parameter<T> |
param(String name)
Creates a CDS QL named
Parameter to be used in queries. |
static Value<?> |
plain(String value)
Creates a CQN plain value, which is directly send to the underlying data
store.
|
static StructuredType<?> |
to(String path)
Creates a
StructuredType representing a path from a CDS entity to
another entity. |
static Value<String> |
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.
|
static Value<String> |
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.
|
static Value<String> |
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.
|
static Value<String> |
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.
|
static <T> FunctionCall<T> func(String name, CqnValue... args)
name
- the name of the function to be calledargs
- the arguments of the functionstatic <T> Literal<T> literal(T value)
Literal
to be used in queries.value
- the value of the literalstatic Predicate not(CqnPredicate predicate)
CqnPredicate
.predicate
- the CqnPredicate
to be negatedstatic Predicate and(CqnPredicate p1, CqnPredicate p2)
p1
- 1st operand of the conjunctionp2
- 2nd operand of the conjunctionstatic Predicate or(CqnPredicate p1, CqnPredicate p2)
p1
- 1st operand of the disjunctionp2
- 2nd operand of the disjunctionstatic Predicate and(Iterable<CqnPredicate> predicates)
predicates
- the predicates to connectstatic Predicate or(Iterable<CqnPredicate> predicates)
predicates
- the predicates to connectstatic Predicate connect(CqnConnectivePredicate.Operator operator, Iterable<CqnPredicate> predicates)
CqnPredicate
.operator
- operator to connect the predicates withpredicates
- the predicates to connectstatic <T> Parameter<T> param()
Parameter
to be used in queries.static <T> Parameter<T> param(String name)
Parameter
to be used in queries.name
- the parameter namestatic Value<?> plain(String value)
value
- the value contentstatic Value<String> toLower(Value<String> val)
val
- the String value to be convertedstatic Value<String> toLower(String val)
val
- the String value to be convertedstatic Value<String> toUpper(Value<String> val)
val
- the String value to be convertedstatic Value<String> toUpper(String val)
val
- the String value to be convertedstatic StructuredType<?> entity(String qualifiedName)
StructuredType
representing a CDS entity.qualifiedName
- the qualified name of the CDS entityStructuredType
representing the CDS entitystatic StructuredType<?> to(String path)
StructuredType
representing a path from a CDS entity to
another entity.path
- a String of association element names separated by '.'StructuredType
representing the path to a CDS entitystatic <T> ElementRef<T> get(String path)
ElementRef
representing a path from a CDS entity to an
element of this or another entity.path
- a String of element names separated by '.', where all except the
last segment represent association elements.StructuredType
representing the path to the CDS elementCopyright © 2020 SAP. All rights reserved.