StringBuffer sqlBuffer = new StringBuffer();
StringBuffer sqlBuffer = new StringBuffer(128);
    static String getSelectStatement(String schema, ITableMetaData metaData)            throws DataSetException    {        Column[] columns = metaData.getColumns();        // select        StringBuffer sqlBuffer = new StringBuffer();        sqlBuffer.append("select ");        for (int i = 0; i < columns.length; i++)        {            if (i > 0)            {                sqlBuffer.append(", ");            }            sqlBuffer.append(columns[i].getColumnName());        }        // from        sqlBuffer.append(" from ");        sqlBuffer.append(DataSetUtils.getQualifiedName(schema,                metaData.getTableName()));        return sqlBuffer.toString();    }