com.liferay.portal.kernel.search
Class SortFactoryUtil
java.lang.Object
com.liferay.portal.kernel.search.SortFactoryUtil
public class SortFactoryUtil
- extends Object
Method Summary |
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 SortFactory |
getSortFactory()
|
void |
setSortFactory(SortFactory sortFactory)
|
static Sort[] |
toArray(List<Sort> sorts)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortFactoryUtil
public SortFactoryUtil()
create
public static Sort create(String fieldName,
boolean reverse)
create
public static Sort create(String fieldName,
int type,
boolean reverse)
getDefaultSorts
public static Sort[] getDefaultSorts()
getSort
public static Sort getSort(Class<?> clazz,
int type,
String orderByCol,
boolean inferSortField,
String orderByType)
getSort
public static Sort getSort(Class<?> clazz,
int type,
String orderByCol,
String orderByType)
getSort
public static Sort getSort(Class<?> clazz,
String orderByCol,
String orderByType)
getSortFactory
public static SortFactory getSortFactory()
toArray
public static Sort[] toArray(List<Sort> sorts)
setSortFactory
public void setSortFactory(SortFactory sortFactory)