if (cols == null) { cols = getColumns(); }  for (int i = 0; i < cols.length; i++) { s.append(cols[i].getName()); if (i < cols.length-1) { s.append(','); } }
s.append(table); s.append(".*");
    public StringBuffer getSelect() throws SQLException, ClassNotFoundException {        String sel = selectString;        if (sel != null) {            return new StringBuffer(sel);        }        StringBuffer s = new StringBuffer("SELECT ");        /* DbColumn[] cols = columns;        if (cols == null) {            cols = getColumns();        }        for (int i = 0; i < cols.length; i++) {            s.append(cols[i].getName());            if (i < cols.length-1) {                s.append(',');            }        }        for (int i = 0; i < joins.length; i++) {        } */        s.append ("*");        s.append(" FROM ");        s.append(getTableName());        s.append(" ");        for (int i = 0; i < joins.length; i++) {            if (!joins[i].otherType.isRelational()) {                continue;            }            s.append("LEFT JOIN ");            s.append(joins[i].otherType.getTableName());            s.append(" AS _HLM_");            s.append(joins[i].propName);            s.append(" ON ");            joins[i].renderJoinConstraints(s);        }        // cache rendered string for later calls.        selectString = s.toString();        return s;    }