Package com.sap.cds.ql
Interface Expand<T extends StructuredType<?>>
-
- All Superinterfaces:
CqnEntitySelector
,CqnExpand
,CqnSelectList
,CqnSelectListItem
,CqnToken
,JSONizable
,Selectable
public interface Expand<T extends StructuredType<?>> extends CqnExpand, CqnSelectListItem
-
-
Method Summary
-
Methods inherited from interface com.sap.cds.ql.cqn.CqnEntitySelector
dispatch, hasLimit, items, limit, orderBy, skip, top
-
Methods inherited from interface com.sap.cds.ql.cqn.CqnExpand
alias, asExpand, displayName, isExpand
-
Methods inherited from interface com.sap.cds.ql.cqn.CqnSelectList
asInline, asSelectList, isInline, isSelectList, items, prefix
-
Methods inherited from interface com.sap.cds.ql.cqn.CqnSelectListItem
asRef, asValue, isRef, isStar, isValue, ofRef, ofValue, token, unfold
-
Methods inherited from interface com.sap.cds.JSONizable
toJson
-
-
-
-
Method Detail
-
ref
StructuredTypeRef ref()
Description copied from interface:CqnEntitySelector
Returns the reference to the entity set of this selector.- Specified by:
ref
in interfaceCqnEntitySelector
- Specified by:
ref
in interfaceCqnSelectList
- Returns:
- the reference
-
limit
default Expand<T> limit(long top)
Sets the limit of the expand.- Parameters:
top
- the maximum number of entries returned by the expand or -1 if unlimited- Returns:
- this expand
-
limit
Expand<T> limit(long top, long skip)
Sets the limit and offset of the expand.- Parameters:
top
- the maximum number of entries returned by the expand or -1 if unlimitedskip
- the number of entries that shall be skipped- Returns:
- this expand
-
orderBy
Expand<T> orderBy(List<CqnSortSpecification> sortSpec)
-
orderBy
Expand<T> orderBy(Function<T,CqnSortSpecification> sort)
-
orderBy
Expand<T> orderBy(Function<T,CqnSortSpecification> sort1, Function<T,CqnSortSpecification> sort2)
-
orderBy
Expand<T> orderBy(Function<T,CqnSortSpecification> sort1, Function<T,CqnSortSpecification> sort2, Function<T,CqnSortSpecification> sort3)
-
orderBy
Expand<T> orderBy(Function<T,CqnSortSpecification> sort1, Function<T,CqnSortSpecification> sort2, Function<T,CqnSortSpecification> sort3, Function<T,CqnSortSpecification> sort4)
-
orderBy
Expand<T> orderBy(Function<T,CqnSortSpecification> sort1, Function<T,CqnSortSpecification> sort2, Function<T,CqnSortSpecification> sort3, Function<T,CqnSortSpecification> sort4, Function<T,CqnSortSpecification> sort5)
-
orderBy
Expand<T> orderBy(Function<T,CqnSortSpecification>... sortSpec)
-
orderBy
default Expand<T> orderBy(CqnSortSpecification... sortSpec)
-
as
Expand<T> as(String alias)
Sets the alias of the expand.- Parameters:
alias
- the alias, or null- Returns:
- this expand
-
accept
default void accept(CqnVisitor visitor)
Description copied from interface:CqnExpand
Dispatches the handling of thisCqnExpand expand specification
to a given visitor. Neither theref
nor theitems
or theorder by clause
of the expand specification are traversed.- Specified by:
accept
in interfaceCqnExpand
- Specified by:
accept
in interfaceCqnToken
- Parameters:
visitor
- theCqnVisitor
-
-