Liferay 6.2-ce-ga5

com.liferay.portal.kernel.search
Class SortFactoryImpl

java.lang.Object
  extended by com.liferay.portal.kernel.search.SortFactoryImpl
All Implemented Interfaces:
SortFactory

public class SortFactoryImpl
extends Object
implements SortFactory


Constructor Summary
SortFactoryImpl()
           
 
Method Summary
 Sort create(String fieldName, boolean reverse)
           
 Sort create(String fieldName, int type, boolean reverse)
           
 Sort[] getDefaultSorts()
           
 Sort getSort(Class<?> clazz, int type, String orderByCol, boolean inferSortField, String orderByType)
           
 Sort getSort(Class<?> clazz, int type, String orderByCol, String orderByType)
           
 Sort getSort(Class<?> clazz, String orderByCol, String orderByType)
           
protected  String getSortField(String orderByCol, int type, Class<?> clazz)
           
 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

SortFactoryImpl

public SortFactoryImpl()
Method Detail

create

public Sort create(String fieldName,
                   boolean reverse)
Specified by:
create in interface SortFactory

create

public Sort create(String fieldName,
                   int type,
                   boolean reverse)
Specified by:
create in interface SortFactory

getDefaultSorts

public Sort[] getDefaultSorts()
Specified by:
getDefaultSorts in interface SortFactory

getSort

public Sort getSort(Class<?> clazz,
                    int type,
                    String orderByCol,
                    boolean inferSortField,
                    String orderByType)
Specified by:
getSort in interface SortFactory

getSort

public Sort getSort(Class<?> clazz,
                    int type,
                    String orderByCol,
                    String orderByType)
Specified by:
getSort in interface SortFactory

getSort

public Sort getSort(Class<?> clazz,
                    String orderByCol,
                    String orderByType)
Specified by:
getSort in interface SortFactory

toArray

public Sort[] toArray(List<Sort> sorts)
Specified by:
toArray in interface SortFactory

getSortField

protected String getSortField(String orderByCol,
                              int type,
                              Class<?> clazz)

Liferay 6.2-ce-ga5