| Package | Description |
|---|---|
| com.holonplatform.core.query |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
QuerySort.QuerySortResolver<T extends QuerySort>
Convenience interface to create an
ExpressionResolver to resolve a custom QuerySort class into a
standard QuerySort. |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
QuerySort.CompositeQuerySort
A
QuerySort which represents a sort expressions list. |
static interface |
QuerySort.PathQuerySort<T>
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends QuerySort> |
QuerySort.QuerySortResolver.create(Class<? extends T> type,
Expression.ExpressionResolverFunction<T,QuerySort> function)
Create an
ExpressionResolver to resolve a custom QuerySort class into a standard
QuerySort using the given resolver function. |
static <S extends QuerySort> |
QuerySort.of(List<S> sorts)
Build a multiple QuerySort using given
sorts, in the order they are provided. |
| Modifier and Type | Method and Description |
|---|---|
default QuerySort |
QuerySort.and(QuerySort sort)
Combine this sort with given
sort |
default QuerySort |
PathExpression.asc()
Build a
QuerySort.SortDirection.ASCENDING sort using this property. |
static <T> QuerySort |
QuerySort.asc(Path<T> path)
Create a QuerySort on given
path using QuerySort.SortDirection.ASCENDING sort direction. |
default QuerySort |
PathExpression.desc()
Build a
QuerySort.SortDirection.DESCENDING sort using this property. |
static <T> QuerySort |
QuerySort.desc(Path<T> path)
Create a QuerySort on given
path using QuerySort.SortDirection.DESCENDING sort direction. |
default QuerySort |
QueryConfigurationProvider.getQuerySort()
Get the query sort.
|
static <S extends QuerySort> |
QuerySort.of(List<S> sorts)
Build a multiple QuerySort using given
sorts, in the order they are provided. |
static <T> QuerySort |
QuerySort.of(Path<T> path,
boolean ascending)
Create a QuerySort on given
path using given sort direction |
static <T> QuerySort |
QuerySort.of(Path<T> path,
QuerySort.SortDirection direction)
Create a QuerySort on given
path using given sort direction |
static QuerySort |
QuerySort.of(QuerySort... sorts)
Build a multiple QuerySort using given
sorts, in the order they are provided. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends QuerySort> |
QuerySort.QuerySortResolver.create(Class<? extends T> type,
Expression.ExpressionResolverFunction<T,QuerySort> function)
Create an
ExpressionResolver to resolve a custom QuerySort class into a standard
QuerySort using the given resolver function. |
List<QuerySort> |
QuerySort.CompositeQuerySort.getComposition()
Get the
QuerySorts composition. |
default Class<? extends QuerySort> |
QuerySort.QuerySortResolver.getResolvedType() |
Optional<QuerySort> |
QueryConfiguration.getSort()
Get the query sort.
|
| Modifier and Type | Method and Description |
|---|---|
default QuerySort |
QuerySort.and(QuerySort sort)
Combine this sort with given
sort |
static QueryConfigurationProvider |
QueryConfigurationProvider.create(QueryFilter filter,
QuerySort sort)
|
static QuerySort |
QuerySort.of(QuerySort... sorts)
Build a multiple QuerySort using given
sorts, in the order they are provided. |
default C |
QuerySort.QuerySortSupport.sort(QuerySort... sorts)
Add a list of sorts.
|
C |
QuerySort.QuerySortSupport.sort(QuerySort sort)
Add a sort clause.
|
QueryConfigurationProvider.Builder |
QueryConfigurationProvider.Builder.sort(QuerySort sort)
Add a
QuerySort. |
static QueryConfigurationProvider |
QueryConfigurationProvider.withSort(QuerySort sort)
Create a new
QueryConfigurationProvider which provides given QuerySort. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends QuerySort> |
QuerySort.QuerySortResolver.create(Class<? extends T> type,
Expression.ExpressionResolverFunction<T,QuerySort> function)
Create an
ExpressionResolver to resolve a custom QuerySort class into a standard
QuerySort using the given resolver function. |
static QueryConfigurationProvider |
QueryConfigurationProvider.create(Supplier<QueryFilter> filterSupplier,
Supplier<QuerySort> sortSupplier)
Create a new
QueryConfigurationProvider using given Suppliers to provide the query configuration
elements. |
static QueryConfigurationProvider |
QueryConfigurationProvider.create(Supplier<QueryFilter> filterSupplier,
Supplier<QuerySort> sortSupplier,
Supplier<ParameterSet> parametersSupplier)
Create a new
QueryConfigurationProvider using given Suppliers to provide the query configuration
elements. |
default C |
QuerySort.QuerySortSupport.sort(Supplier<QuerySort> sortSupplier)
Add a sort clause using a
Supplier. |
static QueryConfigurationProvider |
QueryConfigurationProvider.withSort(Supplier<QuerySort> sortSupplier)
Create a new
QueryConfigurationProvider which provides a QuerySort using given Supplier. |
Copyright © 2019 The Holon Platform. All rights reserved.