Interface SortParameters
- All Known Implementing Classes:
DefaultSortParameters
public interface SortParameters
Entity containing the parameters for the SORT operation.
- Author:
- Costin Leau, Christoph Strobl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumSorting order.static classUtility class wrapping the 'LIMIT' setting. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the pattern (if set) for sorting by external keys (BY).byte[][]Returns the pattern (if set) for retrieving external keys (GET).getLimit()Returns the sorting limit (range or pagination).getOrder()Returns the sorting order.Indicates if the sorting is numeric (default) or alphabetical (lexicographical).
-
Method Details
-
getOrder
Returns the sorting order. Can be null if nothing is specified.- Returns:
- sorting order. null if not set.
-
isAlphabetic
Indicates if the sorting is numeric (default) or alphabetical (lexicographical). Can be null if nothing is specified.- Returns:
- the type of sorting. null if not set.
-
getByPattern
Returns the pattern (if set) for sorting by external keys (BY). Can be null if nothing is specified.- Returns:
BYpattern. null if not set.
-
getGetPattern
Returns the pattern (if set) for retrieving external keys (GET). Can be null if nothing is specified.- Returns:
GETpattern. null if not set.
-
getLimit
Returns the sorting limit (range or pagination). Can be null if nothing is specified.- Returns:
- sorting limit/range. null if not set.
-