type == Query.SELECT && resultClass == null && result == null) {
// Check for cached query results
List<Object> cachedResults = getQueryManager().getDatastoreQueryResult(this, parameters);
if (cachedResults != null) {
// Query results are cached, so return those
return new CandidateIdsQueryResult(this, cachedResults);
}
}
Object results = null;
if (evaluateInMemory()) {