/** * Get the designated column's name. * * @param column the first column is 1, the second is 2, ... * @return column name * @exception SQLException if a database access error occurs */ String getColumnName(int column) throws SQLException;
/** * Get the designated column's table's schema. * * @param column the first column is 1, the second is 2, ... * @return schema name or "" if not applicable * @exception SQLException if a database access error occurs */ String getSchemaName(int column) throws SQLException;
实现
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/** * Return the column descriptor given a column index. * * @param column The column index (from 1 .. n). * @return The column descriptor as a <code>ColInfo<code>. * @throws SQLException */ ColInfo getColumn(int column) throws SQLException { if (column < 1 || column > columnCount) { throw new SQLException( Messages.get("error.resultset.colindex", Integer.toString(column)), "07009"); }