Esempio n. 1
0
  public QueryResult classOnlyQuery(QQueryBase query, ClassMetadata clazz) {
    if (!clazz.hasClassIndex()) {
      return new IdListQueryResult(query.transaction());
    }

    final AbstractQueryResult queryResult = newQueryResult(query.transaction());
    queryResult.loadFromClassIndex(clazz);
    return queryResult;
  }
Esempio n. 2
0
 public QueryResult executeQuery(QQuery query) {
   AbstractQueryResult queryResult = newQueryResult(query.transaction());
   queryResult.loadFromQuery(query);
   return queryResult;
 }
Esempio n. 3
0
 public AbstractQueryResult getAll(Transaction trans, QueryEvaluationMode mode) {
   final AbstractQueryResult queryResult = newQueryResult(trans, mode);
   queryResult.loadFromClassIndexes(classCollection().iterator());
   return queryResult;
 }