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