public interface QuerySort extends Serializable, Expression
Query expression representing a sort condition.| Modifier and Type | Interface and Description |
|---|---|
static interface |
QuerySort.CompositeQuerySort
A
QuerySort which represents a sort expressions list. |
static interface |
QuerySort.PathQuerySort<T>
|
static interface |
QuerySort.QuerySortResolver<T extends QuerySort>
Convenience interface to create an
ExpressionResolver to resolve a custom QuerySort class into a
standard QuerySort. |
static interface |
QuerySort.QuerySortSupport<C extends QuerySort.QuerySortSupport<C>>
Interface implemented by classes which support
QuerySorts addition. |
static class |
QuerySort.SortDirection
Sort direction (ascending or descending) definition
|
Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>, Expression.InvalidExpressionException| Modifier and Type | Method and Description |
|---|---|
default QuerySort |
and(QuerySort sort)
Combine this sort with given
sort |
static <T> QuerySort |
asc(Path<T> path)
Create a QuerySort on given
path using QuerySort.SortDirection.ASCENDING sort direction. |
static <T> QuerySort |
desc(Path<T> path)
Create a QuerySort on given
path using QuerySort.SortDirection.DESCENDING sort direction. |
static <S extends QuerySort> |
of(List<S> sorts)
Build a multiple QuerySort using given
sorts, in the order they are provided. |
static <T> QuerySort |
of(Path<T> path,
boolean ascending)
Create a QuerySort on given
path using given sort direction |
static <T> QuerySort |
of(Path<T> path,
QuerySort.SortDirection direction)
Create a QuerySort on given
path using given sort direction |
static QuerySort |
of(QuerySort... sorts)
Build a multiple QuerySort using given
sorts, in the order they are provided. |
validatedefault QuerySort and(QuerySort sort)
sortsort - Sort to combinesortstatic <T> QuerySort asc(Path<T> path)
path using QuerySort.SortDirection.ASCENDING sort direction.T - Path typepath - Path by which to sort (not null)static <T> QuerySort desc(Path<T> path)
path using QuerySort.SortDirection.DESCENDING sort direction.T - Path typepath - Path by which to sort (not null)static <T> QuerySort of(Path<T> path, QuerySort.SortDirection direction)
path using given sort directionT - Path typepath - Path by which to sort (not null)direction - Sort directionstatic <T> QuerySort of(Path<T> path, boolean ascending)
path using given sort directionT - Path typepath - Path by which to sort (not null)ascending - true for ascending or false for descendingstatic QuerySort of(QuerySort... sorts)
sorts, in the order they are provided.sorts - Sorts (not null)Copyright © 2019 The Holon Platform. All rights reserved.