// Evaluate any remaining parts in-memory
if (filterInMemory || resultInMemory || orderInMemory) {
JavaQueryEvaluator resultMapper = new JDOQLEvaluator(this, (List)results, compilation,
parameters, ec.getClassLoaderResolver());
results = resultMapper.execute(filterInMemory, orderInMemory,
resultInMemory, resultClass != null, false);
}
if (results instanceof AbstractQueryResult) {
// Lazy loading results : add listener to the connection so we can get a callback when the connection is flushed.