Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int findColumn(String columnLabel) throws SQLException {
- // TODO Auto-generated method stub
- int index = -1;
- for(int i = 1 ; i < table[0].length ; i++)
- {
- if(columnLabel.equals(metaData.getColumnName(i)))
- {
- index = i;
- break;
- }
- }
- if( index == -1)
- throw new SQLException();
- return index;
- }
Add Comment
Please, Sign In to add comment