T
- type of the query resultC
- type of the class implementing this classQ
- type of the query modelE
- type of the expansion modelpublic interface MetaModelQueryDsl<T,C extends MetaModelQueryDsl<T,C,Q,E>,Q,E> extends ResourceQuery<T>, QueryDsl<T,C>, MetaModelReferenceExpansionDsl<T,C,E>
MAX_OFFSET, MIN_OFFSET
Modifier and Type | Method and Description |
---|---|
C |
plusPredicates(Function<Q,QueryPredicate<T>> predicateFunction)
Returns a new instance with the new predicate appended (AND semantics).
|
C |
plusPredicates(List<QueryPredicate<T>> queryPredicates)
Returns a new instance with the new predicate list appended to the existing predicates (AND semantic).
|
C |
plusPredicates(QueryPredicate<T> queryPredicate)
Returns a new instance with the new predicate appended to the existing predicates (AND semantic).
|
C |
plusPredicates(String queryPredicate)
Returns a new instance with the new predicate appended to the existing predicates (AND semantic).
|
C |
plusSort(Function<Q,QuerySort<T>> sortFunction)
Returns a query with the sort expression appended to the existing ones.
|
C |
plusSort(List<QuerySort<T>> sort)
Returns a query with the sort expressions appended to the existing ones.
|
C |
plusSort(QuerySort<T> sort)
Returns a query with the sort expression appended to the existing ones.
|
C |
plusSort(String sort)
Returns a query with the sort expression appended to the existing ones.
|
C |
withPredicates(Function<Q,QueryPredicate<T>> predicateFunction)
Returns a new instance with the new predicate as only predicate.
|
C |
withPredicates(List<QueryPredicate<T>> queryPredicates)
Returns a new instance with the new predicate list as predicates.
|
C |
withPredicates(QueryPredicate<T> queryPredicate)
Returns a new instance with the new predicate as only predicate.
|
C |
withPredicates(String queryPredicate)
Returns a new instance with the new predicate as only predicate.
|
C |
withQueryParam(NameValuePair param) |
C |
withSort(Function<Q,QuerySort<T>> sortFunction)
Returns a query with the new sort as only sort parameter.
|
C |
withSort(List<QuerySort<T>> sort)
Returns a query with the new sort list as only sort parameters.
|
C |
withSort(QuerySort<T> sort)
Returns a query with the new sort as only sort parameter.
|
C |
withSort(String sort)
Returns a query with the new sort as only sort parameter.
|
C |
withSortMulti(Function<Q,List<QuerySort<T>>> sortFunction)
Returns a query with the new sort list as only sort parameters.
|
withFetchTotal, withLimit, withLimit, withOffset, withOffset
endpoint, expansionPaths, fetchTotal, limit, offset, predicates, sort
deserialize, toQuery
canDeserialize, httpRequestIntent
plusExpansionPaths, withExpansionPaths
plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths
C withPredicates(List<QueryPredicate<T>> queryPredicates)
QueryDsl
withPredicates
in interface QueryDsl<T,C extends MetaModelQueryDsl<T,C,Q,E>>
queryPredicates
- the new predicate listQueryDsl.plusPredicates(List)
C withPredicates(QueryPredicate<T> queryPredicate)
QueryDsl
withPredicates
in interface QueryDsl<T,C extends MetaModelQueryDsl<T,C,Q,E>>
queryPredicate
- the new predicateQueryDsl.plusPredicates(QueryPredicate)
C withPredicates(String queryPredicate)
QueryDsl
withPredicates
in interface QueryDsl<T,C extends MetaModelQueryDsl<T,C,Q,E>>
queryPredicate
- the new predicateQueryDsl.plusPredicates(QueryPredicate)
C withPredicates(Function<Q,QueryPredicate<T>> predicateFunction)
predicateFunction
- function given a meta model description of the model return a QueryPredicate
plusPredicates(Function)
C plusPredicates(List<QueryPredicate<T>> queryPredicates)
QueryDsl
plusPredicates
in interface QueryDsl<T,C extends MetaModelQueryDsl<T,C,Q,E>>
queryPredicates
- the new predicate listQueryDsl.withPredicates(List)
C plusPredicates(QueryPredicate<T> queryPredicate)
QueryDsl
plusPredicates
in interface QueryDsl<T,C extends MetaModelQueryDsl<T,C,Q,E>>
queryPredicate
- the new predicateQueryDsl.withPredicates(QueryPredicate)
C plusPredicates(String queryPredicate)
QueryDsl
plusPredicates
in interface QueryDsl<T,C extends MetaModelQueryDsl<T,C,Q,E>>
queryPredicate
- the new predicateQueryDsl.withPredicates(QueryPredicate)
C plusPredicates(Function<Q,QueryPredicate<T>> predicateFunction)
predicateFunction
- function given a meta model description of the model return a QueryPredicate
withPredicates(Function)
C withSort(List<QuerySort<T>> sort)
QueryDsl
withSort
in interface QueryDsl<T,C extends MetaModelQueryDsl<T,C,Q,E>>
sort
- list of sorts how the results of the query should be sortedQueryDsl.plusSort(List)
C withSort(QuerySort<T> sort)
QueryDsl
withSort
in interface QueryDsl<T,C extends MetaModelQueryDsl<T,C,Q,E>>
sort
- sort expression how the results of the query should be sortedQueryDsl.plusSort(QuerySort)
C withSort(String sort)
QueryDsl
withSort
in interface QueryDsl<T,C extends MetaModelQueryDsl<T,C,Q,E>>
sort
- sort expression how the results of the query should be sortedQueryDsl.plusSort(QuerySort)
C withSort(Function<Q,QuerySort<T>> sortFunction)
sortFunction
- function given a meta model description of the model returns a QuerySort
plusSort(Function)
C withSortMulti(Function<Q,List<QuerySort<T>>> sortFunction)
sortFunction
- function given a meta model description of the model returns a list of QuerySort
plusSort(List)
,
withSort(Function)
C plusSort(List<QuerySort<T>> sort)
QueryDsl
plusSort
in interface QueryDsl<T,C extends MetaModelQueryDsl<T,C,Q,E>>
sort
- sort expressions how the results of the query should be sortedQueryDsl.withSort(List)
C plusSort(QuerySort<T> sort)
QueryDsl
plusSort
in interface QueryDsl<T,C extends MetaModelQueryDsl<T,C,Q,E>>
sort
- sort expression how the results of the query should be sortedQueryDsl.withSort(QuerySort)
C plusSort(String sort)
QueryDsl
plusSort
in interface QueryDsl<T,C extends MetaModelQueryDsl<T,C,Q,E>>
sort
- sort expression how the results of the query should be sortedQueryDsl.withSort(QuerySort)
C plusSort(Function<Q,QuerySort<T>> sortFunction)
sortFunction
- function given a meta model description of the model returns a list of QuerySort
withSort(Function)
C withQueryParam(NameValuePair param)