use of org.datanucleus.store.query.QueryResult in project datanucleus-core by datanucleus.
the class DefaultCandidateExtent method iterator.
public Iterator<T> iterator() {
Object results = query.execute();
Iterator iter = null;
if (results instanceof QueryResult) {
QueryResult qr = (QueryResult) results;
iter = qr.iterator();
queryResultsByIterator.put(iter, qr);
} else {
iter = ((Collection) results).iterator();
}
return iter;
}
Aggregations