예제 #1
0
  protected final void addOrdering(Direction direction, List<String> path) {

    if (i_field != null) {
      path.add(i_field);
    }

    if (i_parent != null) {
      i_parent.addOrdering(direction, path);
      return;
    }

    final String[] fieldPath = reverseFieldPath(path);
    removeExistingOrderingFor(fieldPath);
    orderings().add(new SodaQueryComparator.Ordering(direction, fieldPath));
  }
예제 #2
0
 public QueryResult executeQuery(QQuery query) {
   AbstractQueryResult queryResult = newQueryResult(query.transaction());
   queryResult.loadFromQuery(query);
   return queryResult;
 }