MVC Model
14 February 2008The Model is the one which is responsible for managing data storage as well as retrieval of the data from the data source. When data changes it notifies all its Views about change in data. A model holds part of the current state of the application. The model represents enterprise data and the business rules that govern access to and updates of this data. The Model knows everything about the data that need to be displayed. However, it does not know anything about the View, that is the manner in which the data is to be displayed, nor the View actions that are used to manipulate the data. The data is accessed and manipulated through methods that are independent of the View.
With MVC architecture there can be change in component Model as well as component View without affecting each other. This obviously increases maintainability as well as extensibility of the system.
The model is independent of the user interface. The component Model return Results, Verify Results of Processing, provides Semantic Processing, perform Function or Pass to Semantic Process or Storage Component. Model also represents data centric classes encapsulating problem domain objects. Each class represents roughly to the rows of a database table. Model objects can be constructed from a ResultSet of a database query, from user input, or from user request parameters.
Do follow the next post for examples.
Related Posts:
Top Of Page | Trackback
If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.
It will look like this: MVC Model