/** * Retrieve the type for every column in the table with the given index. * Tables are indexed from 0 to <code>{@link #getTableCount()} - 1</code>. * * Every Object in the arrays returned by {@link #getTableData(int)} and * {@link #getTableData(String)} will be an instance of the corresponding * Class in the Class[] returned by this method. */ public Class[] getColumnTypes(int tableIndex) { Class[] types = new Class[columns[tableIndex].length]; for (int i=0; i<types.length; i++) { types[i] = columns[tableIndex][i].getType(); } return types; }