note description: "Class which allows EiffelStore to retrieve/store% %the content relative to a column of the table WI" class WI inherit ANY redefine out end create make feature -- Access id: INTEGER -- Auto-generated. type_id: INTEGER -- Auto-generated. timestamp: INTEGER -- Auto-generated. project_id: INTEGER -- Auto-generated. user_id: INTEGER -- Auto-generated. ref: STRING -- Auto-generated. title: STRING -- Auto-generated. revision: STRING -- Auto-generated. previous_revision: STRING -- Auto-generated. diff: STRING -- Auto-generated. comment_text: STRING -- Auto-generated. is_new: INTEGER -- Auto-generated. comment_type: INTEGER -- Auto-generated. log: STRING -- Auto-generated. issue_revision_id: INTEGER -- Auto-generated. release_id: INTEGER -- Auto-generated. is_private: INTEGER -- Auto-generated. feature -- Initialization make do id := 0 type_id := 0 timestamp := 0 project_id := 0 user_id := 0 ref := "" title := "" revision := "" previous_revision := "" diff := "" comment_text := "" is_new := 0 comment_type := 0 log := "" issue_revision_id := 0 release_id := 0 is_private := 0 end feature -- Settings set_id (a_id: INTEGER) --Set the value of id require value_exists: a_id >= 0 do id := a_id ensure id_set: a_id = id end set_type_id (a_type_id: INTEGER) --Set the value of type_id require value_exists: a_type_id > 0 do type_id := a_type_id ensure type_id_set: a_type_id = type_id end set_timestamp (a_timestamp: INTEGER) --Set the value of timestamp require value_exists: a_timestamp >= 0 do timestamp := a_timestamp ensure timestamp_set: a_timestamp = timestamp end set_project_id (a_project_id: INTEGER) --Set the value of project_id require value_exists: a_project_id > 0 do project_id := a_project_id ensure project_id_set: a_project_id = project_id end set_user_id (a_user_id: INTEGER) --Set the value of user_id require value_exists: a_user_id > 0 do user_id := a_user_id ensure user_id_set: a_user_id = user_id end set_ref (a_ref: STRING) --Set the value of ref require value_exists: a_ref /= Void do ref := a_ref ensure ref_set: a_ref = ref 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_revision (a_revision: STRING) --Set the value of revision require value_exists: a_revision /= Void do revision := a_revision ensure revision_set: a_revision = revision end set_previous_revision (a_previous_revision: STRING) --Set the value of previous_revision require value_exists: a_previous_revision /= Void do previous_revision := a_previous_revision ensure previous_revision_set: a_previous_revision = previous_revision 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_comment_text (a_comment_text: STRING) --Set the value of comment_text require value_exists: a_comment_text /= Void do comment_text := a_comment_text ensure comment_text_set: a_comment_text = comment_text end set_is_new (a_is_new: INTEGER) --Set the value of is_new require value_exists: a_is_new >= 0 do is_new := a_is_new ensure is_new_set: a_is_new = is_new end set_comment_type (a_comment_type: INTEGER) --Set the value of comment_type require value_exists: a_comment_type >= 0 do comment_type := a_comment_type ensure comment_type_set: a_comment_type = comment_type end set_log (a_log: STRING) --Set the value of log require value_exists: a_log /= Void do log := a_log ensure log_set: a_log = log end set_issue_revision_id (a_issue_revision_id: INTEGER) --Set the value of issue_revision_id require value_exists: a_issue_revision_id > 0 do issue_revision_id := a_issue_revision_id ensure issue_revision_id_set: a_issue_revision_id = issue_revision_id end set_release_id (a_release_id: INTEGER) --Set the value of release_id require value_exists: a_release_id > 0 do release_id := a_release_id ensure release_id_set: a_release_id = release_id end set_is_private (a_is_private: INTEGER) --Set the value of is_private require value_exists: a_is_private >= 0 do is_private := a_is_private ensure is_private_set: a_is_private = is_private end feature -- Output out: STRING do Result := "" Result.append (id.out + "%N") Result.append (type_id.out + "%N") Result.append (timestamp.out + "%N") Result.append (project_id.out + "%N") Result.append (user_id.out + "%N") Result.append (ref.out + "%N") Result.append (title.out + "%N") Result.append (revision.out + "%N") Result.append (previous_revision.out + "%N") Result.append (diff.out + "%N") Result.append (comment_text.out + "%N") Result.append (is_new.out + "%N") Result.append (comment_type.out + "%N") Result.append (log.out + "%N") Result.append (issue_revision_id.out + "%N") Result.append (release_id.out + "%N") Result.append (is_private.out + "%N") end end -- class WI