ArrayList<JdbcTableColumn> columns = new ArrayList<JdbcTableColumn>();
while (results.next()) {
String name = results.getString("COLUMN_NAME");
String type = results.getString("TYPE_NAME");
columns.add(new JdbcTableColumn(name, type));
}
JdbcTableColumn []columnsArray = new JdbcTableColumn[columns.size()];
columns.toArray(columnsArray);