JDOQueryEvalContext qec = new JDOQueryEvalContext(sp, this);
SelectGroupByVisitor sgv = new SelectGroupByVisitor(
sp, qt, mapper, sqvv, qec, classLoader);
sgv.visit(qd);
selectedFieldTypes = sgv.getSelectFieldTypes();
assignMapper(qec.query);
//Specify the ordering
if (qd.order != null && qd.order.size() > 0) {