Class QuerySort
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.QuerySort
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.use insertSortToBeginningstatic QuerySort
shortcut for ascending colvoid
assignSort
(String column, boolean ascending) clone()
static QuerySort
shortcut for descending colint
max cols to storelist of sort fields...void
insertSortToBeginning
(String column, boolean ascending) insert sort to beginning of sort order...boolean
see if we are sortingvoid
setMaxCols
(int maxCols1) max cols to storesortString
(boolean includePreSpaceIfSorting) get the sort string based on the cols, add space before perhaps
-
Constructor Details
-
QuerySort
- Parameters:
column
-ascending
-
-
-
Method Details
-
clone
-
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
shortcut for ascending col- Parameters:
column
-- Returns:
- the query sort
-
desc
shortcut for descending col- Parameters:
column
-- Returns:
- the query sort
-
assignSort
- Parameters:
column
-ascending
-
-
addSort
Deprecated.use insertSortToBeginning- Parameters:
column
-ascending
-
-
insertSortToBeginning
insert sort to beginning of sort order...- Parameters:
column
-ascending
-
-
isSorting
public boolean isSorting()see if we are sorting- Returns:
- true if sorting
-
sortString
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
-