note description: "Class which allows EiffelStore to retrieve/store% %the content relative to a column of the table PROJECT_REQUEST" class PROJECT_REQUEST inherit ANY redefine out end create make feature -- Access request_id: INTEGER -- Auto-generated. user_id: INTEGER -- Auto-generated. name: STRING -- Auto-generated. description: STRING -- Auto-generated. project_type: INTEGER -- Auto-generated. rcs_type: INTEGER -- Auto-generated. project_visibility: INTEGER -- Auto-generated. message: STRING -- Auto-generated. feature -- Initialization make do request_id := 0 user_id := 0 name := "" description := "" project_type := 0 rcs_type := 0 project_visibility := 0 message := "" end feature -- Settings set_request_id (a_request_id: INTEGER) --Set the value of request_id require value_exists: a_request_id > 0 do request_id := a_request_id ensure request_id_set: a_request_id = request_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_name (a_name: STRING) --Set the value of name require value_exists: a_name /= Void do name := a_name ensure name_set: a_name = name end set_description (a_description: STRING) --Set the value of description require value_exists: a_description /= Void do description := a_description ensure description_set: a_description = description end set_project_type (a_project_type: INTEGER) --Set the value of project_type require value_exists: a_project_type >= 0 do project_type := a_project_type ensure project_type_set: a_project_type = project_type end set_rcs_type (a_rcs_type: INTEGER) --Set the value of rcs_type require value_exists: a_rcs_type >= 0 do rcs_type := a_rcs_type ensure rcs_type_set: a_rcs_type = rcs_type end set_project_visibility (a_project_visibility: INTEGER) --Set the value of project_visibility require value_exists: a_project_visibility >= 0 do project_visibility := a_project_visibility ensure project_visibility_set: a_project_visibility = project_visibility end set_message (a_message: STRING) --Set the value of message require value_exists: a_message /= Void do message := a_message ensure message_set: a_message = message end feature -- Output out: STRING do Result := "" Result.append (request_id.out + "%N") Result.append (user_id.out + "%N") Result.append (name.out + "%N") Result.append (description.out + "%N") Result.append (project_type.out + "%N") Result.append (rcs_type.out + "%N") Result.append (project_visibility.out + "%N") Result.append (message.out + "%N") end end -- class PROJECT_REQUEST