The method moveToInsertRow() moves the cursor to row, which will be inserted in the HSRecordSet.
The updateObject(String columnName, Object x) method updates the values in the specified column.
Calling the insertRow() sends the updates to the underlaying database.
Example:
try { TableDescriptor tDes = ObjectLoader.getTableDescriptor("tables/customer.table"); HSRecordSet hsRecordSet = new HSRecordSet(tDes); hsRecordSet.moveToInsertRow(); hsRecordSet.updateObject("lastname", "Wagner"); hsRecordSet.updateObject("firstname", "Michael"); hsRecordSet.insertRow(); } catch (InvocationTargetException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); }