Class Sort

java.lang.Object
org.labkey.remoteapi.query.Sort

public class Sort extends Object
Represents a particular sort order entry, which consists of a column name and an optional direction
  • Constructor Details

  • Method Details

    • getColumnName

      public String getColumnName()
    • setColumnName

      public void setColumnName(String columnName)
    • getDirection

      public Sort.Direction getDirection()
    • setDirection

      public void setDirection(Sort.Direction direction)
    • getSortQueryStringParam

      public static String getSortQueryStringParam(List<Sort> sorts)
      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

      public String toQueryStringParam()
      Returns:
      a URL-style representation of this sort parameter. Column names are prefixed with "-" to represent a descending sort.