Package com.sap.cds.ql.impl
Class SelectBuilder<T extends StructuredType<?>>
java.lang.Object
com.sap.cds.ql.StatementBuilder<Select<T>>
com.sap.cds.ql.Select<T>
com.sap.cds.ql.impl.SelectBuilder<T>
- All Implemented Interfaces:
JSONizable
,CqnEntitySelector
,CqnFilterableStatement
,CqnSelect
,CqnSource
,CqnStatement
,CqnToken
,FilterableStatement<T,
,Select<T>> Source<T>
,Statement<Select<T>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class com.sap.cds.ql.StatementBuilder
hints
-
Method Summary
Modifier and TypeMethodDescriptionaddExclude
(String sli) addItem
(Selectable item) final SelectBuilder<T>
addOrderBy
(CqnSortSpecification sortSpec) final SelectBuilder<T>
build()
byParams
(Collection<String> elementRefs) columns
(List<? extends Selectable> items) columns
(Stream<? extends Selectable> items) static SelectBuilder<StructuredType<?>>
static SelectBuilder<StructuredType<?>>
static SelectBuilder<StructuredType<?>>
static SelectBuilder
copyShallow
(CqnSelect statement) count
(boolean count) distinct()
distinct
(boolean distinct) excluding
(Collection<String> slis) filter
(CqnPredicate predicate) filter
(Function<T, CqnPredicate> predicate) filterSource
(CqnPredicate pred) filterSource
(Function<T, CqnPredicate> pred) from()
static SelectBuilder<StructuredType<?>>
static SelectBuilder<StructuredTypeImpl>
static SelectBuilder<StructuredType<?>>
from
(CqnStructuredTypeRef ref) static SelectBuilder
static <E extends StructuredType<E>>
SelectBuilder<E>static <E extends StructuredType<E>>
SelectBuilder<E>static <E extends StructuredType<E>,
R extends StructuredType<R>>
SelectBuilder<R>static SelectBuilder<StructuredType<?>>
static SelectBuilder<StructuredType<?>>
from
(String entity, UnaryOperator<StructuredType<?>> path) static <U> FunctionCall<U>
getLock()
getType()
groupBy()
boolean
having()
having
(CqnPredicate pred) having
(Function<T, CqnPredicate> pred) having
(Optional<CqnPredicate> pred) boolean
items()
limit
(long top, long skip) static <U> Literal<U>
literal
(U val) lock
(CqnLock.Mode mode) lock
(CqnLock.Mode mode, int timeout) lockSelectedRows
(CqnLock rowLock) static Predicate
orderBy()
final SelectBuilder<T>
orderBy
(List<CqnSortSpecification> sortSpec) static <U> Parameter<U>
param()
static <U> Parameter<U>
ref()
search()
search
(CqnPredicate predicate) search
(Function<Searchable, Predicate> pred) long
skip()
toJson()
long
top()
final SelectBuilder<T>
where()
where
(CqnPredicate pred) where
(Function<T, CqnPredicate> pred) where
(Optional<? extends CqnPredicate> optionalWhere) Methods inherited from class com.sap.cds.ql.Select
accept, byParams, columns, columns, cqn, excluding, excluding, from, from, from, groupBy, groupBy, limit, lock, lock, orderBy, orderBy, toString
Methods inherited from class com.sap.cds.ql.StatementBuilder
hint, hints, hints, hints
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sap.cds.ql.cqn.CqnEntitySelector
hasLimit
Methods inherited from interface com.sap.cds.ql.cqn.CqnSource
asJoin, asRef, asSelect, asTableFunction, isJoin, isRef, isSelect, isTableFunction
-
Field Details
-
COLLATING
- See Also:
-
COLLATING_OFF
- See Also:
-
IGNORE_LOCALIZED_VIEWS
- See Also:
-
IGNORE_DRAFT_SUBQUERIES
- See Also:
-
-
Method Details
-
from
-
from
-
from
-
from
-
from
public static <E extends StructuredType<E>,R extends StructuredType<R>> SelectBuilder<R> from(Class<E> type, Function<E, R> path) -
from
-
from
-
from
public static SelectBuilder<StructuredType<?>> from(String entity, UnaryOperator<StructuredType<?>> path) -
copy
-
copy
-
copy
public static SelectBuilder<StructuredType<?>> copy(CqnSelect select, Modifier modifier, boolean deep) -
copyShallow
-
from
-
from
-
ref
-
distinct
- Specified by:
distinct
in classSelect<T extends StructuredType<?>>
-
distinct
-
isDistinct
public boolean isDistinct() -
inlineCount
- Specified by:
inlineCount
in classSelect<T extends StructuredType<?>>
-
count
-
hasInlineCount
public boolean hasInlineCount() -
columns
- Specified by:
columns
in classSelect<T extends StructuredType<?>>
-
columns
- Specified by:
columns
in classSelect<T extends StructuredType<?>>
-
columns
- Specified by:
columns
in classSelect<T extends StructuredType<?>>
-
addItem
-
items
-
excluding
- Specified by:
excluding
in classSelect<T extends StructuredType<?>>
-
addExclude
-
excluding
-
where
- Specified by:
where
in interfaceFilterableStatement<T extends StructuredType<?>,
Select<T extends StructuredType<?>>> - Specified by:
where
in classSelect<T extends StructuredType<?>>
-
where
- Specified by:
where
in interfaceFilterableStatement<T extends StructuredType<?>,
Select<T extends StructuredType<?>>> - Specified by:
where
in classSelect<T extends StructuredType<?>>
-
filter
-
filterSource
-
filterSource
-
filter
-
where
-
top
public long top() -
skip
public long skip() -
byParams
- Specified by:
byParams
in interfaceFilterableStatement<T extends StructuredType<?>,
Select<T extends StructuredType<?>>> - Specified by:
byParams
in classSelect<T extends StructuredType<?>>
-
matching
- Specified by:
matching
in interfaceFilterableStatement<T extends StructuredType<?>,
Select<T extends StructuredType<?>>> - Specified by:
matching
in classSelect<T extends StructuredType<?>>
-
byId
- Specified by:
byId
in interfaceFilterableStatement<T extends StructuredType<?>,
Select<T extends StructuredType<?>>> - Specified by:
byId
in classSelect<T extends StructuredType<?>>
-
search
- Specified by:
search
in classSelect<T extends StructuredType<?>>
-
search
- Specified by:
search
in classSelect<T extends StructuredType<?>>
-
search
- Specified by:
search
in classSelect<T extends StructuredType<?>>
-
search
public SelectBuilder<T> search(Function<Searchable, Predicate> pred, Iterable<String> searchableElements) - Specified by:
search
in classSelect<T extends StructuredType<?>>
-
search
- Specified by:
search
in classSelect<T extends StructuredType<?>>
-
searchableElements
-
where
-
search
-
lock
- Specified by:
lock
in classSelect<T extends StructuredType<?>>
-
lock
- Specified by:
lock
in classSelect<T extends StructuredType<?>>
-
lockSelectedRows
-
getLock
-
groupBy
- Specified by:
groupBy
in classSelect<T extends StructuredType<?>>
-
groupBy
- Specified by:
groupBy
in classSelect<T extends StructuredType<?>>
-
groupBy
- Specified by:
groupBy
in classSelect<T extends StructuredType<?>>
-
groupBy
-
having
- Specified by:
having
in classSelect<T extends StructuredType<?>>
-
having
- Specified by:
having
in classSelect<T extends StructuredType<?>>
-
having
-
having
-
orderBy
- Specified by:
orderBy
in classSelect<T extends StructuredType<?>>
-
addOrderBy
-
orderBy
-
orderBy
- Specified by:
orderBy
in classSelect<T extends StructuredType<?>>
-
limit
- Specified by:
limit
in classSelect<T extends StructuredType<?>>
-
build
-
getType
-
param
-
param
-
func
-
literal
-
not
-
transformations
-
addTransformation
-
transformations
-
toJson
-