public interface OrderEditQuery extends MetaModelQueryDsl<OrderEdit,OrderEditQuery,OrderEditQueryModel,OrderEditExpansionModel<OrderEdit>>
MAX_OFFSET, MIN_OFFSET| Modifier and Type | Method and Description |
|---|---|
default OrderEditQuery |
byKey(String key) |
static OrderEditQuery |
of() |
OrderEditQuery |
plusExpansionPaths(Function<OrderEditExpansionModel<OrderEdit>,ExpansionPathContainer<OrderEdit>> m)
Creates a new object with the properties of the old object but adds a new expansion path to it by using meta models.
|
OrderEditQuery |
plusPredicates(Function<OrderEditQueryModel,QueryPredicate<OrderEdit>> m)
Returns a new instance with the new predicate appended (AND semantics).
|
OrderEditQuery |
plusPredicates(List<QueryPredicate<OrderEdit>> queryPredicates)
Returns a new instance with the new predicate list appended to the existing predicates (AND semantic).
|
OrderEditQuery |
plusPredicates(QueryPredicate<OrderEdit> queryPredicate)
Returns a new instance with the new predicate appended to the existing predicates (AND semantic).
|
OrderEditQuery |
plusSort(Function<OrderEditQueryModel,QuerySort<OrderEdit>> m)
Returns a query with the sort expression appended to the existing ones.
|
OrderEditQuery |
plusSort(List<QuerySort<OrderEdit>> sort)
Returns a query with the sort expressions appended to the existing ones.
|
OrderEditQuery |
plusSort(QuerySort<OrderEdit> sort)
Returns a query with the sort expression appended to the existing ones.
|
static com.fasterxml.jackson.core.type.TypeReference<PagedQueryResult<OrderEdit>> |
resultTypeReference()
Creates a container which contains the full Java type information to deserialize the query result (NOT this class) from JSON.
|
OrderEditQuery |
withExpansionPaths(Function<OrderEditExpansionModel<OrderEdit>,ExpansionPathContainer<OrderEdit>> m)
Creates a new object with the properties of the old object but replaces all expansion paths with a single
expansionPath by using meta models. |
OrderEditQuery |
withFetchTotal(boolean fetchTotal)
Enables/disables a flag it the total amount of items should be counted.
|
OrderEditQuery |
withLimit(Long limit)
Creates a new instance which a limited amount of results.
|
OrderEditQuery |
withOffset(Long offset)
Returns a new query with the new offset as offset.
|
OrderEditQuery |
withPredicates(Function<OrderEditQueryModel,QueryPredicate<OrderEdit>> predicateFunction)
Returns a new instance with the new predicate as only predicate.
|
OrderEditQuery |
withPredicates(List<QueryPredicate<OrderEdit>> queryPredicates)
Returns a new instance with the new predicate list as predicates.
|
OrderEditQuery |
withPredicates(QueryPredicate<OrderEdit> queryPredicate)
Returns a new instance with the new predicate as only predicate.
|
OrderEditQuery |
withSort(Function<OrderEditQueryModel,QuerySort<OrderEdit>> m)
Returns a query with the new sort as only sort parameter.
|
OrderEditQuery |
withSort(List<QuerySort<OrderEdit>> sort)
Returns a query with the new sort list as only sort parameters.
|
OrderEditQuery |
withSort(QuerySort<OrderEdit> sort)
Returns a query with the new sort as only sort parameter.
|
OrderEditQuery |
withSortMulti(Function<OrderEditQueryModel,List<QuerySort<OrderEdit>>> m)
Returns a query with the new sort list as only sort parameters.
|
plusPredicates, plusSort, withPredicates, withQueryParam, withSortwithLimit, withOffsetendpoint, expansionPaths, fetchTotal, limit, offset, predicates, sortdeserialize, toQuerycanDeserialize, httpRequestIntentplusExpansionPaths, plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPathsstatic com.fasterxml.jackson.core.type.TypeReference<PagedQueryResult<OrderEdit>> resultTypeReference()
static OrderEditQuery of()
OrderEditQuery plusPredicates(Function<OrderEditQueryModel,QueryPredicate<OrderEdit>> m)
MetaModelQueryDslplusPredicates in interface MetaModelQueryDsl<OrderEdit,OrderEditQuery,OrderEditQueryModel,OrderEditExpansionModel<OrderEdit>>m - function given a meta model description of the model return a QueryPredicateMetaModelQueryDsl.withPredicates(Function)OrderEditQuery plusPredicates(QueryPredicate<OrderEdit> queryPredicate)
QueryDslplusPredicates in interface MetaModelQueryDsl<OrderEdit,OrderEditQuery,OrderEditQueryModel,OrderEditExpansionModel<OrderEdit>>plusPredicates in interface QueryDsl<OrderEdit,OrderEditQuery>queryPredicate - the new predicateQueryDsl.withPredicates(QueryPredicate)OrderEditQuery plusPredicates(List<QueryPredicate<OrderEdit>> queryPredicates)
QueryDslplusPredicates in interface MetaModelQueryDsl<OrderEdit,OrderEditQuery,OrderEditQueryModel,OrderEditExpansionModel<OrderEdit>>plusPredicates in interface QueryDsl<OrderEdit,OrderEditQuery>queryPredicates - the new predicate listQueryDsl.withPredicates(List)OrderEditQuery plusSort(Function<OrderEditQueryModel,QuerySort<OrderEdit>> m)
MetaModelQueryDslplusSort in interface MetaModelQueryDsl<OrderEdit,OrderEditQuery,OrderEditQueryModel,OrderEditExpansionModel<OrderEdit>>m - function given a meta model description of the model returns a list of QuerySortMetaModelQueryDsl.withSort(Function)OrderEditQuery plusSort(List<QuerySort<OrderEdit>> sort)
QueryDslplusSort in interface MetaModelQueryDsl<OrderEdit,OrderEditQuery,OrderEditQueryModel,OrderEditExpansionModel<OrderEdit>>plusSort in interface QueryDsl<OrderEdit,OrderEditQuery>sort - sort expressions how the results of the query should be sortedQueryDsl.withSort(List)OrderEditQuery plusSort(QuerySort<OrderEdit> sort)
QueryDslplusSort in interface MetaModelQueryDsl<OrderEdit,OrderEditQuery,OrderEditQueryModel,OrderEditExpansionModel<OrderEdit>>plusSort in interface QueryDsl<OrderEdit,OrderEditQuery>sort - sort expression how the results of the query should be sortedQueryDsl.withSort(QuerySort)OrderEditQuery withPredicates(Function<OrderEditQueryModel,QueryPredicate<OrderEdit>> predicateFunction)
MetaModelQueryDslwithPredicates in interface MetaModelQueryDsl<OrderEdit,OrderEditQuery,OrderEditQueryModel,OrderEditExpansionModel<OrderEdit>>predicateFunction - function given a meta model description of the model return a QueryPredicateMetaModelQueryDsl.plusPredicates(Function)OrderEditQuery withPredicates(QueryPredicate<OrderEdit> queryPredicate)
QueryDslwithPredicates in interface MetaModelQueryDsl<OrderEdit,OrderEditQuery,OrderEditQueryModel,OrderEditExpansionModel<OrderEdit>>withPredicates in interface QueryDsl<OrderEdit,OrderEditQuery>queryPredicate - the new predicateQueryDsl.plusPredicates(QueryPredicate)OrderEditQuery withPredicates(List<QueryPredicate<OrderEdit>> queryPredicates)
QueryDslwithPredicates in interface MetaModelQueryDsl<OrderEdit,OrderEditQuery,OrderEditQueryModel,OrderEditExpansionModel<OrderEdit>>withPredicates in interface QueryDsl<OrderEdit,OrderEditQuery>queryPredicates - the new predicate listQueryDsl.plusPredicates(List)OrderEditQuery withSort(Function<OrderEditQueryModel,QuerySort<OrderEdit>> m)
MetaModelQueryDslwithSort in interface MetaModelQueryDsl<OrderEdit,OrderEditQuery,OrderEditQueryModel,OrderEditExpansionModel<OrderEdit>>m - function given a meta model description of the model returns a QuerySortMetaModelQueryDsl.plusSort(Function)OrderEditQuery withSort(List<QuerySort<OrderEdit>> sort)
QueryDslwithSort in interface MetaModelQueryDsl<OrderEdit,OrderEditQuery,OrderEditQueryModel,OrderEditExpansionModel<OrderEdit>>withSort in interface QueryDsl<OrderEdit,OrderEditQuery>sort - list of sorts how the results of the query should be sortedQueryDsl.plusSort(List)OrderEditQuery withSort(QuerySort<OrderEdit> sort)
QueryDslwithSort in interface MetaModelQueryDsl<OrderEdit,OrderEditQuery,OrderEditQueryModel,OrderEditExpansionModel<OrderEdit>>withSort in interface QueryDsl<OrderEdit,OrderEditQuery>sort - sort expression how the results of the query should be sortedQueryDsl.plusSort(QuerySort)OrderEditQuery withSortMulti(Function<OrderEditQueryModel,List<QuerySort<OrderEdit>>> m)
MetaModelQueryDslwithSortMulti in interface MetaModelQueryDsl<OrderEdit,OrderEditQuery,OrderEditQueryModel,OrderEditExpansionModel<OrderEdit>>m - function given a meta model description of the model returns a list of QuerySortMetaModelQueryDsl.plusSort(List),
MetaModelQueryDsl.withSort(Function)OrderEditQuery plusExpansionPaths(Function<OrderEditExpansionModel<OrderEdit>,ExpansionPathContainer<OrderEdit>> m)
MetaModelReferenceExpansionDslAn example in the product projection context:
final ProductProjectionByIdGet fetch1 = ProductProjectionByIdGet.of("id", ProductProjectionType.CURRENT) .plusExpansionPaths(m -> m.categories()); assertThat(fetch1.expansionPaths()) .isEqualTo(asList(ExpansionPath.of("categories[*]"))); final ProductProjectionByIdGet fetch2 = fetch1.plusExpansionPaths(m -> m.productType()); assertThat(fetch2.expansionPaths()) .isEqualTo(asList(ExpansionPath.of("categories[*]"), ExpansionPath.of("productType"))) .isEqualTo(listOf(fetch1.expansionPaths(), ExpansionPath.of("productType"))); //this is equivalent to final ExpansionPath<ProductProjection> categoryExpand = ProductProjectionExpansionModel.of().categories().expansionPaths().get(0); final ExpansionPath<ProductProjection> productTypeExpand = ProductProjectionExpansionModel.of().productType().expansionPaths().get(0); final ProductProjectionByIdGet fetchB = ProductProjectionByIdGet.of("id", ProductProjectionType.CURRENT) .withExpansionPaths(asList(categoryExpand, productTypeExpand)); assertThat(fetchB.expansionPaths()) .isEqualTo(asList(ExpansionPath.of("categories[*]"), ExpansionPath.of("productType")));See the test code.
plusExpansionPaths in interface MetaModelReferenceExpansionDsl<OrderEdit,OrderEditQuery,OrderEditExpansionModel<OrderEdit>>m - function to use the meta model for expansions to create an expansion pathOrderEditQuery withExpansionPaths(Function<OrderEditExpansionModel<OrderEdit>,ExpansionPathContainer<OrderEdit>> m)
MetaModelReferenceExpansionDslexpansionPath by using meta models.
An example in the product projection context:
final ProductProjectionByIdGet fetch = ProductProjectionByIdGet.of("id", ProductProjectionType.CURRENT) .plusExpansionPaths(ProductProjectionExpansionModel.of().categories()); assertThat(fetch.expansionPaths()) .isEqualTo(asList(ExpansionPath.of("categories[*]"))); final ProductProjectionByIdGet fetch2 = fetch.withExpansionPaths(m -> m.productType()); assertThat(fetch.expansionPaths()).overridingErrorMessage("old object is unchanged") .isEqualTo(asList(ExpansionPath.of("categories[*]"))); assertThat(fetch2.expansionPaths()).isEqualTo(asList(ExpansionPath.of("productType"))); assertThat(fetch2).isNotSameAs(fetch);See the test code.
withExpansionPaths in interface MetaModelReferenceExpansionDsl<OrderEdit,OrderEditQuery,OrderEditExpansionModel<OrderEdit>>m - function to use the meta model for expansions to create an expansion pathOrderEditQuery withFetchTotal(boolean fetchTotal)
QueryDslIf fetchTotal is true then PagedQueryResult.getTotal() is null.
withFetchTotal in interface QueryDsl<OrderEdit,OrderEditQuery>fetchTotal - enable the total count if true (default on the construction of the QueryDsl).QueryDsl as this instance but with the updated flagOrderEditQuery withLimit(Long limit)
QueryDslwithLimit in interface QueryDsl<OrderEdit,OrderEditQuery>limit - the maximum amount of items of T which should be included in the PagedQueryResult.PagedQueryResult.getResults()OrderEditQuery withOffset(Long offset)
QueryDslwithOffset in interface QueryDsl<OrderEdit,OrderEditQuery>offset - the number of items which should be omitted in the query result.default OrderEditQuery byKey(String key)