1153115411551156115711581159
* <P> * @return the new DBOrderByExpr object for descending order */ public DBOrderByExpr desc() { return new DBOrderByExpr(this, true); }
435436437438439440441442
*/ public final void orderBy(DBColumnExpr... exprs) { for (DBColumnExpr expr : exprs) { orderBy(new DBOrderByExpr(expr, false)); } }
447448449450451452453
* @param expr the DBColumnExpr object * @param desc if true, the results from select statement will sort top down */ public final void orderBy(DBColumnExpr expr, boolean desc) { orderBy(new DBOrderByExpr(expr, desc)); }
131132133134135136137138
orderBy = new ArrayList<DBOrderByExpr>(); // Add order by expression for (DBOrderByExpr obe : exprs) { DBColumnExpr c = getCmdColumn(obe.expr); orderBy.add(new DBOrderByExpr(c, obe.desc)); } }
155156157158159160161162
471472473474475476477478
483484485486487488489
1145114611471148114911501151
* <P> * @return the new DBOrderByExpr object for ascending order */ public DBOrderByExpr asc() { return new DBOrderByExpr(this, false); }
1155115611571158115911601161
orderBy = new ArrayList<DBOrderByExpr>(); // Add order by expression for (DBOrderByExpr obe : exprs) { DBColumnExpr c = getCmdColumn(obe.getColumnExpr()); orderBy.add(new DBOrderByExpr(c, obe.isDescending())); } }