This is my code
1) I use resultSet to insert to database
String sql = "Select * from Students";
preStm = cn.prepareStatement(sql,ResultSet.TYPE_SCROLL_SENS ITIVE,ResultSet.CONCUR_UPDATABLE);

rSet = preStm.executeQuery();
rSet.first();
rSet.updateString(1, text_ID_insert.getText());
rSet.updateNString(2, text_name_insert.getText());
rSet.updateInt(3, Integer.parseInt(combo_class_insert.getSelectedIte m().toString()));
rSet.updateNString(4, text_address_insert.getText());
rSet.updateString(5, text_tel_insert.getText());
rSet.insertRow();


2) I use rowSet
rowSet = new JdbcRowSetImpl(rSet);
rowSet.moveToInsertRow();
rowSet.updateString(1, text_ID_insert.getText());
rowSet.updateNString(2, text_name_insert.getText());
rowSet.updateInt(3, Integer.parseInt(combo_class_insert.getSelectedIte m().toString()));
rowSet.updateNString(4, text_address_insert.getText());
rowSet.updateString(5, text_tel_insert.getText());

rowSet.insertRow();

Both 1 and 2 get error like this :
Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Operation not yet supported
at sun.jdbc.odbc.JdbcOdbcResultSet.updateNString(Jdbc OdbcResultSet.java:6766)


How can i insert data with NVarchar type to database??
Please Hint me !!