docs: public String getSQLQuery(boolean bUseCurrentValues, Vector<BaseField> vParamList)
      {
          String strRecordset = this.makeTableNames(false);
          String strFields = this.getSQLFields(DBConstants.SQL_SELECT_TYPE, bUseCurrentValues);
          boolean bIsQueryRecord = this.isQueryRecord();
          String strSortParams = this.addSortParams(bIsQueryRecord, true);
  
          this.handleInitialKey();        // Set up the smaller key
          String strStartRange = this.addSelectParams(">=", DBConstants.START_SELECT_KEY, true, bIsQueryRecord, bUseCurrentValues, vParamList, true, false);   // Add only if changed
          this.handleEndKey();            // Set up the larger key
          String strEndRange = this.addSelectParams("<=", DBConstants.END_SELECT_KEY, true, bIsQueryRecord, bUseCurrentValues, vParamList, true, false);   // Add only if changed
          String strWhere = DBConstants.BLANK;
          if (strStartRange.length() == 0)
              strWhere = strEndRange;
          else
          {
              if (strEndRange.length() == 0)
                  strWhere = strStartRange;
              else
                  strWhere = strStartRange + " AND " + strEndRange;
          }
          //      Next, get the recordset filter
              StringBuffer strbFilter = new StringBuffer();
              this.handleRemoteCriteria(strbFilter, bIsQueryRecord, vParamList);  // Add any selection criteria (from behaviors)
              if (strbFilter.length() > 0)
              {
                  if (strWhere.length() == 0)
                      strWhere = strbFilter.toString();
                  else
                      strWhere += " AND (" + strbFilter.toString() + ")";
              }
  
          if (strWhere.length() > 0)
              strWhere = " WHERE " + strWhere;
          strRecordset = "SELECT" + strFields + " FROM " + strRecordset + strWhere + strSortParams;
          return strRecordset;
      }