T - type of the query resultC - type of the class implementing this classpublic interface QueryDsl<T,C extends QueryDsl<T,C>> extends ResourceQuery<T>, ReferenceExpansionDsl<T,C>
MAX_OFFSET, MIN_OFFSET| Modifier and Type | Method and Description |
|---|---|
C |
plusPredicates(List<QueryPredicate<T>> predicates)
Returns a new instance with the new predicate list appended to the existing predicates (AND semantic).
|
C |
plusPredicates(QueryPredicate<T> predicate)
Returns a new instance with the new predicate appended to the existing predicates (AND semantic).
|
C |
plusPredicates(String predicate)
Returns a new instance with the new predicate appended to the existing predicates (AND semantic).
|
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 |
withFetchTotal(boolean fetchTotal)
Enables/disables a flag it the total amount of items should be counted.
|
default C |
withLimit(long limit)
Creates a new instance which a limited amount of results.
|
C |
withLimit(Long limit)
Creates a new instance which a limited amount of results.
|
default C |
withOffset(long offset)
Returns a new query with the new offset as offset.
|
C |
withOffset(Long offset)
Returns a new query with the new offset as offset.
|
C |
withPredicates(List<QueryPredicate<T>> predicates)
Returns a new instance with the new predicate list as predicates.
|
C |
withPredicates(QueryPredicate<T> predicate)
Returns a new instance with the new predicate as only predicate.
|
C |
withPredicates(String predicate)
Returns a new instance with the new predicate as only predicate.
|
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.
|
endpoint, expansionPaths, fetchTotal, limit, offset, predicates, sortdeserialize, toQuerycanDeserialize, httpRequestIntentplusExpansionPaths, plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPathsC withPredicates(List<QueryPredicate<T>> predicates)
predicates - the new predicate listplusPredicates(List)C withPredicates(QueryPredicate<T> predicate)
predicate - the new predicateplusPredicates(QueryPredicate)C withPredicates(String predicate)
predicate - the new predicateplusPredicates(QueryPredicate)C plusPredicates(List<QueryPredicate<T>> predicates)
predicates - the new predicate listwithPredicates(List)C plusPredicates(QueryPredicate<T> predicate)
predicate - the new predicatewithPredicates(QueryPredicate)C plusPredicates(String predicate)
predicate - the new predicatewithPredicates(QueryPredicate)C withSort(List<QuerySort<T>> sort)
sort - list of sorts how the results of the query should be sortedplusSort(List)C withSort(QuerySort<T> sort)
sort - sort expression how the results of the query should be sortedplusSort(QuerySort)C withSort(String sort)
sort - sort expression how the results of the query should be sortedplusSort(QuerySort)C plusSort(List<QuerySort<T>> sort)
sort - sort expressions how the results of the query should be sortedwithSort(List)C plusSort(QuerySort<T> sort)
sort - sort expression how the results of the query should be sortedwithSort(QuerySort)C plusSort(String sort)
sort - sort expression how the results of the query should be sortedwithSort(QuerySort)C withFetchTotal(boolean fetchTotal)
If fetchTotal is true then PagedQueryResult.getTotal() is null.
fetchTotal - enable the total count if true (default on the construction of the QueryDsl).QueryDsl as this instance but with the updated flagC withLimit(Long limit)
limit - the maximum amount of items of T which should be included in the PagedQueryResult.PagedQueryResult.getResults()default C withLimit(long limit)
limit - the maximum amount of items of T which should be included in the PagedQueryResult.PagedQueryResult.getResults()C withOffset(Long offset)
offset - the number of items which should be omitted in the query result.IllegalArgumentException - if offset is
not between 0L and 100000L.default C withOffset(long offset)
offset - the number of items which should be omitted in the query result.IllegalArgumentException - if offset is
not between 0L and 100000L.