Question

In: Computer Science

what are the general role (purpose) of the Model, View, and Controller. Also, for each of...

what are the general role (purpose) of the Model, View, and Controller. Also, for each of these, tell me how they are implemented in OFBiz?

Solutions

Expert Solution

Model View Controller:

MVC is a software design pattern that is used to design the Graphical User Interface(GUI) and it divides the program logic into three interconnected elements model, view, and controller.

The diagram is given below:

Model:

The Model has the application data and it has the logic to fetch the data to represent to the user. It works directly with the database like insert, fetch, update, delete the data. This doesn't deal with the user interface.

View:

The View is used to represent the data to the end-user. It accesses the data model but this is not aware of the meaning of the data. The view can show the data to the user and to respond to the event.

Controller:

The Controller works between the View and Model. This controls the data flow into the Model and updates the View whenever required.

This pattern is a good object-oriented design because:

  • The model can have more than one view.
  • More than one developer can work simultaneously.
  • The application can be maintained very easily because of the separation of concern.
  • The development of the application takes less time.
  • The application can be upgraded easily.
  • Debugging is easy.

OFBiz architecture is based on J2EE, HTML, SOA, OMG GL, W3C, Java, XML, etc. It is a collection of ERP(Enterprise Resource Planning) components.

ERP is used to automate the company business by using a lot of different modules like Account Receivable, Account Payable, Bank, System Administrator, Payroll, General Ledger, etc in a single tool. All these modules are related to each other and share data with each other.

The components of ERP are reusable and these components work as a core to OFBiz.

OFBiz implementation of MVC(Model View Controller) has the dependency between Model, View, and Controller through the XML(Extensible Markup Language). The controller defines the mapping between them.


Related Solutions

1. What is a difference between general purpose processor and single purpose processor? Also write the...
1. What is a difference between general purpose processor and single purpose processor? Also write the Advantages and disadvantages, and how they complement each other. 2. Give one ESD hypothetical application and discuss SOC system.
What is the purpose of a Read-only Domain Controller?
What is the purpose of a Read-only Domain Controller?
Describe the development methodology and processes of (Model View Controller ) and explain how you would...
Describe the development methodology and processes of (Model View Controller ) and explain how you would recommend it for a healthcare department?.
1.The paternalistic model of care privileges the patient's view while also including the provider's view. True...
1.The paternalistic model of care privileges the patient's view while also including the provider's view. True False 2. Health literacy includes all of the following aspects except: A) Culture B) Ability to drive C) Listening D) Numeracy 3. Survey research methods are most likely to be used in which paradigm? A) Scientific B) Interpretive C) Critical/Cultural 4.What occurs when providers collaborate with patients to choose treatment options? A) Clinical equipoise B) Concordance C) Shared decision-making D) Patient-centered communication
What is the purpose of the general journal?
What is the purpose of the general journal?
What is the Role of the Controller on one or both of Cash and Investments; and...
What is the Role of the Controller on one or both of Cash and Investments; and Property, Plant, and Equipment,
Which view of the objectives of general purpose financial reporting do you regard as the most important? Why?
Which view of the objectives of general purpose financial reporting do you regard as the most important? Why?
In general, what is the purpose of a checkpoint in the cell cycle?
In general, what is the purpose of a checkpoint in the cell cycle?
What is the purpose of each of these financial statements? What is the purpose of the...
What is the purpose of each of these financial statements? What is the purpose of the different types of financial statements
What is the role of the Controller on one Sales; and Direct Materials and Labor. This...
What is the role of the Controller on one Sales; and Direct Materials and Labor. This summary should be in (APA format) double-spaced, single-sided, Courier New Font, 12 pitch, 1 inch margins, with no grammar or spelling errors; APA includes a title page and a reference page at the end. The cover page and reference pages will not be counted in the 3-5 pages. You should have at least 2 references – your book along with at least 1 other...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT