query.setPivot(pivot);
}
// The order by clause (e.g., ORDER BY c1, c2 ASC, c3 DESC)
final public void orderByClause(Query query) throws ParseException, InvalidQueryException {
QuerySort sort = new QuerySort();
AbstractColumn column;
SortOrder order;
jj_consume_token(KW_ORDER);
jj_consume_token(KW_BY);
column = abstractColumnDescriptor();
order = sortOrder();
sort.addSort(column, order);
label_4:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case OP_COMMA:
;
break;
default:
jj_la1[14] = jj_gen;
break label_4;
}
jj_consume_token(OP_COMMA);
column = abstractColumnDescriptor();
order = sortOrder();
sort.addSort(column, order);
}
query.setSort(sort);
}