fullRuntime/src/sc/db/DBTypeDescriptor.java
public List<? extends IDBObject> matchQuery(DBObject proto, List<String> protoProps, String selectGroup, List<String> orderByProps, int startIx, int maxResults) {
      SelectGroupQuery groupQuery = initQuery(selectGroup, protoProps, true);
      addPropsToQuery(groupQuery, proto, protoProps, true);
      addParamValues(groupQuery, proto, protoProps, QCombine.And);

      groupQuery.setQueryAttributes(orderByProps, startIx, maxResults);

      DBTransaction curTx = DBTransaction.getOrCreate();
      return groupQuery.runQuery(curTx, proto.getDBObject());
   }
/**
    * The core "declarative query" method to return objects for this type matching a prototype object and list of
    * protoProp names. The query returns matching objects for all properties (i.e.
    * 'where clause' using 'and' for all properties in the list). Optionally provide an orderByProps list
    * for the list of properties used in sorting the result. Use "-propName" for a descending order sort on that property and
    * start and max properties for limit/offset in the result list.
    */
The core "declarative query" method to return objects for this type matching a prototype object and list of
protoProp names. The query returns matching objects for all properties . Optionally provide an orderByProps list
for the list of properties used in sorting the result. Use "-propName" for a descending order sort on that property and
start and max properties for limit/offset in the result list.
The core " declarative query " method to return objects for this type matching a prototype object and list of protoProp names . The query returns matching objects for all properties . Optionally provide an orderByProps list for the list of properties used in sorting the result . Use " - propName " for a descending order sort on that property and start and max properties for limit / offset in the result list .
public List<? extends IDBObject> matchQuery(DBObject proto, List<String> protoProps, String selectGroup, List<String> orderByProps, int startIx, int maxResults) {
      SelectGroupQuery groupQuery = initQuery(selectGroup, protoProps, true);
      addPropsToQuery(groupQuery, proto, protoProps, true);
      addParamValues(groupQuery, proto, protoProps, QCombine.And);
      groupQuery.setQueryAttributes(orderByProps, startIx, maxResults);
      DBTransaction curTx = DBTransaction.getOrCreate();
      return groupQuery.runQuery(curTx, proto.getDBObject());
   }
public List < ? extends IDBObject > matchQuery ( DBObject proto , List < String > protoProps , String selectGroup , List < String > orderByProps , int startIx , int maxResults ) { SelectGroupQuery groupQuery = initQuery ( selectGroup , protoProps , true ) ; addPropsToQuery ( groupQuery , proto , protoProps , true ) ; addParamValues ( groupQuery , proto , protoProps , QCombine . And ) ; groupQuery . setQueryAttributes ( orderByProps , startIx , maxResults ) ; DBTransaction curTx = DBTransaction . getOrCreate ( ) ; return groupQuery . runQuery ( curTx , proto . getDBObject ( ) ) ; }
The core "declarative query" method to return objects for this type matching a prototype object and list of
 protoProp names.
The core " declarative query " method to return objects for this type matching a prototype object and list of protoProp names .