|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.query.order.SearchSort
public class SearchSort
A simple data bean representing a portion of the sort order (related to a clause) for a search query.
Together via the OrderBy
these will determine the sorting order of the results
returned by a Query
.
Constructor Summary | |
---|---|
SearchSort(SearchSort copy)
|
|
SearchSort(String field)
|
|
SearchSort(String field,
com.atlassian.fugue.Option<Property> property,
SortOrder order)
Used to construct a search sort for a field with a direction and optional property |
|
SearchSort(String field,
SortOrder order)
Used to construct a search sort for a field with a direction. |
|
SearchSort(String order,
String field)
Deprecated. use SearchSort(String, SortOrder) instead. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getField()
|
String |
getOrder()
|
com.atlassian.fugue.Option<Property> |
getProperty()
|
SortOrder |
getSortOrder()
|
int |
hashCode()
|
boolean |
isReverse()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SearchSort(String field)
public SearchSort(String field, SortOrder order)
field
- to sort by.order
- direction to sort by, if null the default order for the field will be used.public SearchSort(String field, com.atlassian.fugue.Option<Property> property, SortOrder order)
field
- to sort by.property
- property associated with sort filed this should be taken into consideration when constructing sort fieldorder
- direction to sort by, if null the default order for the field will be used.public SearchSort(String order, String field)
SearchSort(String, SortOrder)
instead.
order
- the order of the sort, if null, will be the default order for the system, if not one of
SortOrder.ASC
or SortOrder.DESC
it will
default to SortOrder.ASC
.field
- to sort by.public SearchSort(SearchSort copy)
Method Detail |
---|
public String getOrder()
public SortOrder getSortOrder()
public String getField()
public com.atlassian.fugue.Option<Property> getProperty()
public boolean isReverse()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |