public class ExpandBuilder<T extends StructuredType<T>> extends SelectList implements Expand<T>
SelectList.Type
ref
create, isExpand, isInline, items, ref, toString, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asInline, asSelectList, isInline, isSelectList, items, prefix
asRef, asValue, isRef, isStar, isValue, ofRef, ofValue, unfold
dispatch, hasLimit, items
public static ExpandBuilder<StructuredTypeImpl> expand(CqnStructuredTypeRef ref)
public static <T extends StructuredType<T>> ExpandBuilder<T> expand(T entity)
public static <T extends StructuredType<T>> ExpandBuilder<T> expand(T entity, boolean lazy)
public ExpandBuilder<T> all()
all
in class SelectList
public ExpandBuilder<T> items(Selectable item)
items
in class SelectList
public ExpandBuilder<T> items(Iterable<? extends Selectable> items)
items
in interface Expand<T extends StructuredType<T>>
items
in class SelectList
public Expand<T> limit(long top, long skip)
limit
in interface Expand<T extends StructuredType<T>>
@Deprecated public Optional<CqnLimit> limit()
limit
in interface CqnEntitySelector
public long top()
top
in interface CqnEntitySelector
public long skip()
skip
in interface CqnEntitySelector
public Expand<T> orderBy(List<CqnSortSpecification> sortSpec)
orderBy
in interface Expand<T extends StructuredType<T>>
public Expand<T> addOrderBy(CqnSortSpecification sortSpec)
public Expand<T> orderBy(String... refs)
orderBy
in interface Expand<T extends StructuredType<T>>
public List<CqnSortSpecification> orderBy()
orderBy
in interface CqnEntitySelector
public String displayName()
displayName
in interface CqnExpand
displayName
in interface CqnSelectList
displayName
in interface CqnSelectListItem
public ExpandBuilder<T> as(String alias)
as
in interface Expand<T extends StructuredType<T>>
public Optional<String> alias()
alias
in interface CqnExpand
alias
in interface CqnSelectList
alias
in interface CqnSelectListItem
public CqnToken token()
token
in interface CqnSelectListItem
public boolean lazy()
public void lazy(boolean l)
public String toJson()
toJson
in interface JSONizable
public Expand<T> orderBy(Function<T,CqnSortSpecification> sort)
orderBy
in interface Expand<T extends StructuredType<T>>
public Expand<T> orderBy(Function<T,CqnSortSpecification> sort1, Function<T,CqnSortSpecification> sort2)
orderBy
in interface Expand<T extends StructuredType<T>>
public Expand<T> orderBy(Function<T,CqnSortSpecification> sort1, Function<T,CqnSortSpecification> sort2, Function<T,CqnSortSpecification> sort3)
orderBy
in interface Expand<T extends StructuredType<T>>
public Expand<T> orderBy(Function<T,CqnSortSpecification> sort1, Function<T,CqnSortSpecification> sort2, Function<T,CqnSortSpecification> sort3, Function<T,CqnSortSpecification> sort4)
orderBy
in interface Expand<T extends StructuredType<T>>
public Expand<T> orderBy(Function<T,CqnSortSpecification> sort1, Function<T,CqnSortSpecification> sort2, Function<T,CqnSortSpecification> sort3, Function<T,CqnSortSpecification> sort4, Function<T,CqnSortSpecification> sort5)
orderBy
in interface Expand<T extends StructuredType<T>>
public Expand<T> orderBy(Function<T,CqnSortSpecification>... sortSpec)
orderBy
in interface Expand<T extends StructuredType<T>>
Copyright © 2023 SAP. All rights reserved.