6364656667686970717273
if (sort != null) { if (order.equals("asc")) { query.orderAsc(sort); } else { query.orderDesc(sort); } } TablePage tablePage = query.listPage(start, size);
8485868788899091929394
response.setOrder("asc"); response.setSort(orderAsc); } if (orderDesc != null) { tablePageQuery.orderDesc(orderDesc); response.setOrder("desc"); response.setSort(orderDesc); } TablePage listPage = tablePageQuery.listPage(start, size);
4950515253545556575859
for (int i=0; i<sortPropertyIds.length; i++) { String column = (String) sortPropertyIds[i]; // all container properties for table data are Strings if (sortPropertyIdsAscending[i] == true) { query.orderAsc(column); } else { query.orderDesc(column); } } } List<Map<String, Object>> rows = query.listPage(start, count).getRows();