public String columnLabelOrName ( ResultSetMetaData rsmd , int col ) throws SQLException { String columnName = rsmd . getColumnLabel ( col ) ; if ( null == columnName || 0 == columnName . length ( ) ) { columnName = rsmd . getColumnName ( col ) ; } return columnName ; }
Get the label or name of a column