static public List < ColumnMetaData > createList ( ResultSetMetaData m ) throws SQLException { List < ColumnMetaData > result = new ArrayList < ColumnMetaData > ( m . getColumnCount ( ) ) ; for ( int i = 1 ; i <= m . getColumnCount ( ) ; i ++ ) { ColumnMetaData cm = new ColumnMetaData ( m , i ) ; result . add ( cm ) ; } return result ; }
Get all the column meta data and put them into a list in their default order