Liferay 6.2-ce-ga5

com.liferay.portal.kernel.search
Class Sort

java.lang.Object
  extended by com.liferay.portal.kernel.search.Sort
All Implemented Interfaces:
Serializable

public class Sort
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static int AUTO_TYPE
          Deprecated. As of 6.1.0
static int CUSTOM_TYPE
           
static int DOC_TYPE
           
static int DOUBLE_TYPE
           
static int FLOAT_TYPE
           
static int INT_TYPE
           
static int LONG_TYPE
           
static int SCORE_TYPE
           
static int STRING_TYPE
           
 
Constructor Summary
Sort()
           
Sort(String fieldName, boolean reverse)
           
Sort(String fieldName, int type, boolean reverse)
           
 
Method Summary
 String getFieldName()
           
 int getType()
           
 boolean isReverse()
           
 void setFieldName(String fieldName)
           
 void setReverse(boolean reverse)
           
 void setType(int type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AUTO_TYPE

@Deprecated
public static final int AUTO_TYPE
Deprecated. As of 6.1.0
See Also:
Constant Field Values

CUSTOM_TYPE

public static final int CUSTOM_TYPE
See Also:
Constant Field Values

DOC_TYPE

public static final int DOC_TYPE
See Also:
Constant Field Values

DOUBLE_TYPE

public static final int DOUBLE_TYPE
See Also:
Constant Field Values

FLOAT_TYPE

public static final int FLOAT_TYPE
See Also:
Constant Field Values

INT_TYPE

public static final int INT_TYPE
See Also:
Constant Field Values

LONG_TYPE

public static final int LONG_TYPE
See Also:
Constant Field Values

SCORE_TYPE

public static final int SCORE_TYPE
See Also:
Constant Field Values

STRING_TYPE

public static final int STRING_TYPE
See Also:
Constant Field Values
Constructor Detail

Sort

public Sort()

Sort

public Sort(String fieldName,
            boolean reverse)

Sort

public Sort(String fieldName,
            int type,
            boolean reverse)
Method Detail

getFieldName

public String getFieldName()

getType

public int getType()

isReverse

public boolean isReverse()

setFieldName

public void setFieldName(String fieldName)

setReverse

public void setReverse(boolean reverse)

setType

public void setType(int type)

toString

public String toString()
Overrides:
toString in class Object

Liferay 6.2-ce-ga5