public class SortFactoryUtil
extends Object
Constructor and Description |
---|
SortFactoryUtil() |
Modifier and Type | Method and Description |
---|---|
static Sort |
create(String fieldName,
boolean reverse) |
static Sort |
create(String fieldName,
int type,
boolean reverse) |
static Sort[] |
getDefaultSorts() |
static Sort |
getSort(Class<?> clazz,
int type,
String orderByCol,
boolean inferSortField,
String orderByType) |
static Sort |
getSort(Class<?> clazz,
int type,
String orderByCol,
String orderByType) |
static Sort |
getSort(Class<?> clazz,
String orderByCol,
String orderByType) |
static Sort[] |
toArray(List<Sort> sorts) |
public static Sort create(String fieldName, boolean reverse)
public static Sort create(String fieldName, int type, boolean reverse)
public static Sort[] getDefaultSorts()
public static Sort getSort(Class<?> clazz, int type, String orderByCol, boolean inferSortField, String orderByType)
public static Sort getSort(Class<?> clazz, int type, String orderByCol, String orderByType)
public static Sort getSort(Class<?> clazz, String orderByCol, String orderByType)