14451446144714481449145014511452145314541455
} buf.append(" GROUP BY "); for (int i = 0; i < groupByFields.size(); i++) { FieldHelper cf = (FieldHelper) groupByFields.get(i); if (i > 0) { buf.append(","); }
571572573574575576577578
*/ public void addOrderBy(String fieldName, boolean sortAscending) { if (fieldName != null) { _getOrderby().add(new FieldHelper(fieldName, sortAscending)); } }
963964965966967968969970
*/ public void addGroupBy(String fieldName) { if (fieldName != null) { _getGroupby().add(new FieldHelper(fieldName, false)); } }
479480481482483484485486487488489
Iterator iter = columns.iterator(); while (iter.hasNext()) { FieldHelper cf = (FieldHelper) iter.next(); if (!existingColumns.contains(cf.name)) { getAttributeInfo(cf.name, false, null, getQuery().getPathClasses()); } }
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(",");