docs: 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);
      }