note description: "Class which allows EiffelStore to retrieve/store% %the content relative to a column of the table WORKITEM_WIKI" class WORKITEM_WIKI inherit ANY redefine out end create make feature -- Access workitem_id: INTEGER -- Auto-generated. title: STRING -- Auto-generated. url: STRING -- Auto-generated. diff: STRING -- Auto-generated. revision: INTEGER -- Auto-generated. old_revision: INTEGER -- Auto-generated. private: INTEGER -- Auto-generated. feature -- Initialization make do workitem_id := 0 title := "" url := "" diff := "" revision := 0 old_revision := 0 private := 0 end feature -- Settings set_workitem_id (a_workitem_id: INTEGER) --Set the value of workitem_id require value_exists: a_workitem_id > 0 do workitem_id := a_workitem_id ensure workitem_id_set: a_workitem_id = workitem_id end set_title (a_title: STRING) --Set the value of title require value_exists: a_title /= Void do title := a_title ensure title_set: a_title = title end set_url (a_url: STRING) --Set the value of url require value_exists: a_url /= Void do url := a_url ensure url_set: a_url = url end set_diff (a_diff: STRING) --Set the value of diff require value_exists: a_diff /= Void do diff := a_diff ensure diff_set: a_diff = diff end set_revision (a_revision: INTEGER) --Set the value of revision require value_exists: a_revision >= 0 do revision := a_revision ensure revision_set: a_revision = revision end set_old_revision (a_old_revision: INTEGER) --Set the value of old_revision require value_exists: a_old_revision >= 0 do old_revision := a_old_revision ensure old_revision_set: a_old_revision = old_revision end set_private (a_private: INTEGER) --Set the value of private require value_exists: a_private >= 0 do private := a_private ensure private_set: a_private = private end feature -- Output out: STRING do Result := "" Result.append (workitem_id.out + "%N") Result.append (title.out + "%N") Result.append (url.out + "%N") Result.append (diff.out + "%N") Result.append (revision.out + "%N") Result.append (old_revision.out + "%N") Result.append (private.out + "%N") end end -- class WORKITEM_WIKI