Liferay 6.2-ce-ga5

com.liferay.portal.kernel.search
Class SortFactoryUtil

java.lang.Object
  extended by com.liferay.portal.kernel.search.SortFactoryUtil

public class SortFactoryUtil
extends Object


Constructor Summary
SortFactoryUtil()
           
 
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
 

Constructor Detail

SortFactoryUtil

public SortFactoryUtil()
Method Detail

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)

Liferay 6.2-ce-ga5