Exemplo n.º 1
0
 public SelectCmd(String s, WithHash w) {
   super();
   selectCmd = s;
   with = w;
   if (w != null) {
     cl_size = w.size();
     sv = (Vector) w.get(ParseStr.S_SORT);
     if (sv != null) cl_size--;
   } else {
     cl_size = 0;
     sv = null;
   }
   txMode = SDMSTransaction.READONLY;
 }
Exemplo n.º 2
0
  private Vector collist(ResultSetMetaData mdset) throws SQLException {
    Vector desc = new Vector();

    int j = 0;
    for (int i = 1; i <= mdset.getColumnCount(); i++) {
      String cn = mdset.getColumnName(i).toUpperCase();
      if (cl_size > 0 && with.get(cn) != null) {
        Integer t = (Integer) with.get(cn);
        clist[j] = i;
        ctype[j] = t.intValue();
        j++;
      }
      desc.addElement(cn);
    }
    cl_size = j;
    sort();

    return desc;
  }