List<Object> rawResults =
new ForceQueryUtils(ec, mconn, this, parameters, listeners, getExtensions())
.getObjectsOfCandidateType(compilation.getExprResult());
if (ForceQueryUtils.getLimitType(this) == LimitType.Java) {
// Apply any result restrictions to the results
JavaQueryEvaluator resultMapper = new JDOQLEvaluator(this, rawResults, compilation,
parameters, ec.getClassLoaderResolver());
results = resultMapper.execute(false, false, false, false, true);
} else {
results = rawResults;
}
}
if (candidates != null) {
// Apply any result restrictions to the results
JavaQueryEvaluator resultMapper = new JDOQLEvaluator(this, candidates, compilation,
parameters, ec.getClassLoaderResolver());
results = resultMapper.execute(true, true, true, true, true);
}
if (NucleusLogger.QUERY.isDebugEnabled()) {
NucleusLogger.QUERY.debug(LOCALISER.msg("021074", "JDOQL",
"" + (System.currentTimeMillis() - startTime)));