Guest User

Untitled

a guest
Apr 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public int findColumn(String columnLabel) throws SQLException {
  2. // TODO Auto-generated method stub
  3. int index = -1;
  4. for(int i = 1 ; i < table[0].length ; i++)
  5. {
  6. if(columnLabel.equals(metaData.getColumnName(i)))
  7. {
  8. index = i;
  9. break;
  10. }
  11. }
  12. if( index == -1)
  13. throw new SQLException();
  14. return index;
  15. }
Add Comment
Please, Sign In to add comment