508509510511512513514515516517518
Iterator iter = columns.iterator(); int ojb_col = existingColumns.size() + 1; while (iter.hasNext()) { FieldHelper cf = (FieldHelper) iter.next(); if (!existingColumns.contains(cf.name)) { existingColumns.add(cf.name); buf.append(",");
14061407140814091410141114121413141414151416
} buf.append(" ORDER BY "); for (int i = 0; i < orderByFields.size(); i++) { FieldHelper cf = (FieldHelper) orderByFields.get(i); int colNumber = selectedFields.indexOf(cf.name); if (i > 0) { buf.append(",");
14451446144714481449145014511452145314541455
} buf.append(" GROUP BY "); for (int i = 0; i < groupByFields.size(); i++) { FieldHelper cf = (FieldHelper) groupByFields.get(i); if (i > 0) { buf.append(","); }