java.lang.Object
edu.internet2.middleware.grouper.internal.dao.QuerySort

public class QuerySort extends Object
  • Constructor Details

    • QuerySort

      public QuerySort(String column, boolean ascending)
      Parameters:
      column -
      ascending -
  • Method Details

    • clone

      public QuerySort clone()
      Overrides:
      clone in class Object
      Returns:
      another
    • getQuerySortFields

      public List<QuerySortField> getQuerySortFields()
      list of sort fields... generally it would just be one
      Returns:
      the sort fields
    • getMaxCols

      public int getMaxCols()
      max cols to store
      Returns:
      max cols
    • setMaxCols

      public void setMaxCols(int maxCols1)
      max cols to store
      Parameters:
      maxCols1 -
    • asc

      public static QuerySort asc(String column)
      shortcut for ascending col
      Parameters:
      column -
      Returns:
      the query sort
    • desc

      public static QuerySort desc(String column)
      shortcut for descending col
      Parameters:
      column -
      Returns:
      the query sort
    • assignSort

      public void assignSort(String column, boolean ascending)
      Parameters:
      column -
      ascending -
    • addSort

      @Deprecated public void addSort(String column, boolean ascending)
      Deprecated.
      use insertSortToBeginning
      Parameters:
      column -
      ascending -
    • insertSortToBeginning

      public void insertSortToBeginning(String column, boolean ascending)
      insert sort to beginning of sort order...
      Parameters:
      column -
      ascending -
    • isSorting

      public boolean isSorting()
      see if we are sorting
      Returns:
      true if sorting
    • sortString

      public String sortString(boolean includePreSpaceIfSorting)
      get the sort string based on the cols, add space before perhaps
      Parameters:
      includePreSpaceIfSorting - if we should add a whitespace char before sortstring if it exists
      Returns:
      the sort string