Exemplo 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;
  }
Exemplo n.º 2
0
 public QueryResult executeQuery(QQuery query) {
   AbstractQueryResult queryResult = newQueryResult(query.transaction());
   queryResult.loadFromQuery(query);
   return queryResult;
 }
Exemplo n.º 3
0
 public AbstractQueryResult getAll(Transaction trans, QueryEvaluationMode mode) {
   final AbstractQueryResult queryResult = newQueryResult(trans, mode);
   queryResult.loadFromClassIndexes(classCollection().iterator());
   return queryResult;
 }