private static void appendLines(final String symbol, final List<Column[]> rows, final SortedSet<henplus.sqlmodel.Column> rowSet) {
for (henplus.sqlmodel.Column col : rowSet) {
final Column[] row = new Column[8];
row[0] = new Column(symbol);
row[1] = new Column(col.getPosition());
row[2] = new Column(col.getName());
final String type = extractType(col);
row[3] = new Column(type);
row[4] = new Column(col.isNullable() ? YES : NO);
final String defaultVal = col.getDefault();
// oracle appends newline to default values for some reason.
row[5] = new Column((defaultVal != null ? defaultVal.trim() : null));
// String pkdesc = (String)pks.get(colname);
row[6] = new Column(getPkDesc(col));
// String fkdesc = (String)fks.get(colname);
row[7] = new Column(getFkDesc(col));
rows.add(row);
}
}