public interface StructuredType<T extends StructuredType<T>> extends Source<T>, Selectable
filter
, filterByParams
,
and matching
all set the where condition of the enclosing statement, overwriting any
previously stored conditions.Modifier and Type | Method and Description |
---|---|
CqnSelectListItem |
_all() |
Predicate |
allMatch(CqnPredicate p)
Creates a predicate that tests whether all elements of the entity
set referenced by this structured type match a given condition.
|
Predicate |
allMatch(Function<T,CqnPredicate> p)
Creates a predicate that tests whether all elements of the entity
set referenced by this structured type match a given condition.
|
Predicate |
anyMatch(CqnPredicate p)
Creates a predicate that tests whether any instance of the entity
set referenced by this structured type matches a given condition.
|
Predicate |
anyMatch(Function<T,CqnPredicate> p)
Creates a predicate that tests whether any instance of the entity
set referenced by this structured type matches a given condition.
|
StructuredType<T> |
as(String alias)
Gives an alias to this structured type.
|
StructuredTypeRef |
asRef()
Casts this CQN source to
CqnSelect . |
Predicate |
exists()
Creates a predicate that tests whether any instance of the entity
set referenced by this structured type exists, i.e.
|
Predicate |
exists(Function<T,Select<?>> subQuery) |
Expand<T> |
expand() |
default Expand<T> |
expand(Function<T,? extends Selectable>... items) |
default Expand<T> |
expand(Function<T,? extends Selectable> item) |
default Expand<T> |
expand(Function<T,? extends Selectable> item1,
Function<T,? extends Selectable> item2) |
default Expand<T> |
expand(Function<T,? extends Selectable> item1,
Function<T,? extends Selectable> item2,
Function<T,? extends Selectable> item3) |
default Expand<T> |
expand(Function<T,? extends Selectable> item1,
Function<T,? extends Selectable> item2,
Function<T,? extends Selectable> item3,
Function<T,? extends Selectable> item4) |
default Expand<T> |
expand(Function<T,? extends Selectable> item1,
Function<T,? extends Selectable> item2,
Function<T,? extends Selectable> item3,
Function<T,? extends Selectable> item4,
Function<T,? extends Selectable> item5) |
default Expand<T> |
expand(Function<T,? extends Selectable> item1,
Function<T,? extends Selectable> item2,
Function<T,? extends Selectable> item3,
Function<T,? extends Selectable> item4,
Function<T,? extends Selectable> item5,
Function<T,? extends Selectable> item6) |
default Expand<T> |
expand(Function<T,? extends Selectable> item1,
Function<T,? extends Selectable> item2,
Function<T,? extends Selectable> item3,
Function<T,? extends Selectable> item4,
Function<T,? extends Selectable> item5,
Function<T,? extends Selectable> item6,
Function<T,? extends Selectable> item7) |
Expand<T> |
expand(Iterable<? extends Selectable> items) |
Expand<T> |
expand(List<Function<T,? extends Selectable>> items) |
Expand<T> |
expand(Selectable... items) |
Expand<T> |
expand(String... refs) |
T |
filter(CqnPredicate p) |
T |
filter(Function<T,CqnPredicate> p) |
T |
filterByParams(Collection<String> elementRefs) |
default T |
filterByParams(String... elementRefs) |
<E> ElementRef<E> |
get(String path) |
<E> ElementRef<E> |
get(String path,
Class<E> type) |
CqnSelectListItem |
inline() |
default CqnSelectListItem |
inline(Function<T,? extends Selectable>... items) |
default CqnSelectListItem |
inline(Function<T,? extends Selectable> item) |
default CqnSelectListItem |
inline(Function<T,? extends Selectable> item1,
Function<T,? extends Selectable> item2) |
default CqnSelectListItem |
inline(Function<T,? extends Selectable> item1,
Function<T,? extends Selectable> item2,
Function<T,? extends Selectable> item3) |
default CqnSelectListItem |
inline(Function<T,? extends Selectable> item1,
Function<T,? extends Selectable> item2,
Function<T,? extends Selectable> item3,
Function<T,? extends Selectable> item4) |
default CqnSelectListItem |
inline(Function<T,? extends Selectable> item1,
Function<T,? extends Selectable> item2,
Function<T,? extends Selectable> item3,
Function<T,? extends Selectable> item4,
Function<T,? extends Selectable> item5) |
default CqnSelectListItem |
inline(Function<T,? extends Selectable> item1,
Function<T,? extends Selectable> item2,
Function<T,? extends Selectable> item3,
Function<T,? extends Selectable> item4,
Function<T,? extends Selectable> item5,
Function<T,? extends Selectable> item6) |
default CqnSelectListItem |
inline(Function<T,? extends Selectable> item1,
Function<T,? extends Selectable> item2,
Function<T,? extends Selectable> item3,
Function<T,? extends Selectable> item4,
Function<T,? extends Selectable> item5,
Function<T,? extends Selectable> item6,
Function<T,? extends Selectable> item7) |
CqnSelectListItem |
inline(Iterable<? extends Selectable> items) |
CqnSelectListItem |
inline(List<Function<T,? extends Selectable>> items) |
CqnSelectListItem |
inline(Selectable... items) |
CqnSelectListItem |
inline(String... refs) |
T |
matching(Map<String,?> values) |
StructuredType<?> |
to(String path) |
<E extends StructuredType<E>> |
to(String path,
Class<E> type) |
asJoin, asQuery, asSelect, isJoin, isQuery, isRef, isSelect
toJson
StructuredType<?> to(String path)
<E extends StructuredType<E>> E to(String path, Class<E> type)
<E> ElementRef<E> get(String path)
<E> ElementRef<E> get(String path, Class<E> type)
T filter(CqnPredicate p)
T filter(Function<T,CqnPredicate> p)
Predicate anyMatch(Function<T,CqnPredicate> p)
p
- the condition to test forPredicate anyMatch(CqnPredicate p)
p
- the condition to test forPredicate allMatch(Function<T,CqnPredicate> p)
p
- the condition to test forPredicate allMatch(CqnPredicate p)
p
- the condition to test forPredicate exists()
T filterByParams(Collection<String> elementRefs)
CqnSelectListItem inline()
default CqnSelectListItem inline(Function<T,? extends Selectable> item)
default CqnSelectListItem inline(Function<T,? extends Selectable> item1, Function<T,? extends Selectable> item2)
default CqnSelectListItem inline(Function<T,? extends Selectable> item1, Function<T,? extends Selectable> item2, Function<T,? extends Selectable> item3)
default CqnSelectListItem inline(Function<T,? extends Selectable> item1, Function<T,? extends Selectable> item2, Function<T,? extends Selectable> item3, Function<T,? extends Selectable> item4)
default CqnSelectListItem inline(Function<T,? extends Selectable> item1, Function<T,? extends Selectable> item2, Function<T,? extends Selectable> item3, Function<T,? extends Selectable> item4, Function<T,? extends Selectable> item5)
default CqnSelectListItem inline(Function<T,? extends Selectable> item1, Function<T,? extends Selectable> item2, Function<T,? extends Selectable> item3, Function<T,? extends Selectable> item4, Function<T,? extends Selectable> item5, Function<T,? extends Selectable> item6)
default CqnSelectListItem inline(Function<T,? extends Selectable> item1, Function<T,? extends Selectable> item2, Function<T,? extends Selectable> item3, Function<T,? extends Selectable> item4, Function<T,? extends Selectable> item5, Function<T,? extends Selectable> item6, Function<T,? extends Selectable> item7)
default CqnSelectListItem inline(Function<T,? extends Selectable>... items)
CqnSelectListItem inline(List<Function<T,? extends Selectable>> items)
CqnSelectListItem inline(Iterable<? extends Selectable> items)
CqnSelectListItem inline(Selectable... items)
CqnSelectListItem inline(String... refs)
default Expand<T> expand(Function<T,? extends Selectable> item)
default Expand<T> expand(Function<T,? extends Selectable> item1, Function<T,? extends Selectable> item2)
default Expand<T> expand(Function<T,? extends Selectable> item1, Function<T,? extends Selectable> item2, Function<T,? extends Selectable> item3)
default Expand<T> expand(Function<T,? extends Selectable> item1, Function<T,? extends Selectable> item2, Function<T,? extends Selectable> item3, Function<T,? extends Selectable> item4)
default Expand<T> expand(Function<T,? extends Selectable> item1, Function<T,? extends Selectable> item2, Function<T,? extends Selectable> item3, Function<T,? extends Selectable> item4, Function<T,? extends Selectable> item5)
default Expand<T> expand(Function<T,? extends Selectable> item1, Function<T,? extends Selectable> item2, Function<T,? extends Selectable> item3, Function<T,? extends Selectable> item4, Function<T,? extends Selectable> item5, Function<T,? extends Selectable> item6)
default Expand<T> expand(Function<T,? extends Selectable> item1, Function<T,? extends Selectable> item2, Function<T,? extends Selectable> item3, Function<T,? extends Selectable> item4, Function<T,? extends Selectable> item5, Function<T,? extends Selectable> item6, Function<T,? extends Selectable> item7)
default Expand<T> expand(Function<T,? extends Selectable>... items)
Expand<T> expand(Iterable<? extends Selectable> items)
Expand<T> expand(Selectable... items)
CqnSelectListItem _all()
StructuredTypeRef asRef()
CqnSource
CqnSelect
.StructuredType<T> as(String alias)
alias
- the alias or nullCopyright © 2023 SAP. All rights reserved.