code: public void add(Rec record) throws DBException
      {
          if (this.getRecord().getEditMode() != Constants.EDIT_ADD)
              throw new DBException(Constants.INVALID_RECORD);
          m_record = (FieldList)record;
          this.fieldsToData(record);
          this.doAdd(record);
          this.setDataSource(null);
          this.getRecord().setEditMode(Constants.EDIT_NONE);
      }
docs: Add this record to this table.
  Add this record to the table and set the current edit mode to NONE.
  @param record The record to add.
  @throws Exception