Package org.labkey.remoteapi.query
Class Sort
java.lang.Object
org.labkey.remoteapi.query.Sort
Represents a particular sort order entry,
which consists of a column name and an optional direction
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getSortQueryStringParam
(List<Sort> sorts) Constructs the sort query string parameter from the current list of sort definitions.void
setColumnName
(String columnName) void
setDirection
(Sort.Direction direction)
-
Constructor Details
-
Sort
-
Sort
-
Sort
-
-
Method Details
-
getColumnName
-
setColumnName
-
getDirection
-
setDirection
-
getSortQueryStringParam
Constructs the sort query string parameter from the current list of sort definitions. The sort query string parameter is in the form of [-]column,[-]column,... where the optional - is used for a descending sort direction.- Parameters:
sorts
- the set of sorts in the query- Returns:
- The sort query string parameter.
-
toQueryStringParam
- Returns:
- a URL-style representation of this sort parameter. Column names are prefixed with "-" to represent a descending sort.
-