ResultSet rs = stmt.executeQuery(new StringBuffer("SELECT * FROM ").append(t)
ResultSet rs = stmt.executeQuery(new StringBuffer("SELECT * FROM ").append(table)
    public synchronized DbColumn[] getColumns()                                       throws ClassNotFoundException, SQLException {        if (!isRelational()) {            throw new SQLException("Can't get columns for non-relational data mapping " +                                   this);        }        if ((dbSource == null) && (parentMapping != null)) {            return parentMapping.getColumns();        }        // Use local variable cols to avoid synchronization (schema may be nulled elsewhere)        if (columns == null) {            // we do two things here: set the SQL type on the Relation mappings            // and build a string of column names.            Connection con = getConnection();            Statement stmt = con.createStatement();            String t = getTableName();            if (t == null) {                throw new SQLException("Table name is null in getColumns() for " + this);            }            ResultSet rs = stmt.executeQuery(new StringBuffer("SELECT * FROM ").append(t)                                                                               .append(" WHERE 1 = 0")                                                                               .toString());            if (rs == null) {                throw new SQLException("Error retrieving columns for " + this);            }            ResultSetMetaData meta = rs.getMetaData();            // ok, we have the meta data, now loop through mapping...            int ncols = meta.getColumnCount();            ArrayList list = new ArrayList(ncols);            for (int i = 0; i < ncols; i++) {                String colName = meta.getColumnName(i + 1);                Relation rel = columnNameToRelation(colName);                DbColumn col = new DbColumn(colName, meta.getColumnType(i + 1), rel, this);                // if (col.isMapped()) {                    list.add(col);                // }            }            columns = new DbColumn[list.size()];            columns = (DbColumn[]) list.toArray(columns);        }        return columns;    }