For consistently searching across data types.
Type Params | Return Type | Name and description |
---|---|---|
|
static Object |
applyOrder(Map params, Object delegate, List leftJoinList = null) applies sorting for several columns free-jqgrid that is used on frontend side has feature for multi row sorting By default free-jqrid prepared sorting properties with next pattern sort = columnName(id, name, etc) order(asc|desc), next column order of the last column name is in `order` parametr Example: if user first sorted by name and then by id sort params will be look like [sort: 'name asc, id', order: 'asc'] |
|
static List |
sortLeftJoin(List fieldsList, Object delegate, String sortColumn) In some cases we need to make a sorting for a field that is null for some rows, as a result rows where value is null wont be shown, to avoid leftjoin should be applied |
applies sorting for several columns free-jqgrid that is used on frontend side has feature for multi row sorting By default free-jqrid prepared sorting properties with next pattern sort = columnName(id, name, etc) order(asc|desc), next column order of the last column name is in `order` parametr Example: if user first sorted by name and then by id sort params will be look like [sort: 'name asc, id', order: 'asc']
params
- is a Map containing parameter data.delegate
- The delegate from within the createCriteria().list() structure.closure
- closure that should be applyed for each column (should contain order)In some cases we need to make a sorting for a field that is null for some rows, as a result rows where value is null wont be shown, to avoid leftjoin should be applied
list
- of fields that requires left joindelegate
- The delegate from within the createCriteria().list() structure.