List of usage examples for javax.sql RowSet updateString
void updateString(int columnIndex, String x) throws SQLException;
String
value. From source file:ViewDB.java
/** * Updates changed data into the current row of the row set *///ww w . j av a 2 s . c om public void setRow(RowSet rs) throws SQLException { for (int i = 1; i <= fields.size(); i++) { String field = rs.getString(i); JTextField tb = (JTextField) fields.get(i - 1); if (!field.equals(tb.getText())) rs.updateString(i, tb.getText()); } rs.updateRow(); }