// Now read the data based on the metadata
if (createFieldNameExpressions) {
if (exprs != null && exprs.length > 0) {
return readCreatorExpressionObjects(resultClass, sObjects, exprs, fieldNameList);
} else {
return new JDOQLResultClassMapper(resultClass).map(getResultAsCollection(sObjects, fieldNameList),
fieldNameExprs.toArray(new Expression[fieldNameExprs.size()]));
}
} else if (exprs != null && exprs.length > 0) {
if (exprs[0] instanceof CreatorExpression) {
CreatorExpression ce = (CreatorExpression) exprs[0];