1
I’m trying to implement some small projects using the MVC standard: Within the project structure, I created the following packages:
- View : User Interaction Screens.
- Controller: I have a class with methods referring to user requests, save, change, delete, list.
- Modal: Class that implements the Serializable method.
As the application is with Sqlite local database integration, it has two more packages:
- Datamodal: Contains the project data model.
- Datasource: Contains the data source, in which the database is created, in this same class I have the data persistence method. Save, delete and list.
From what I understand, the controller does not communicate with Datasource, such communication is between Datasource and Model. Should the methods of inserting, updating, removing and listing the records be created in a separate class in Modal? How would the communication between the same and the Controller, and how the Modal return the information to the View: passing directly, or should pass to the Controller and the Controller provide this information to View?
Jcsaint - Thank you for your help, from your explanation, post and article, I will seek to understand more deeply about this concept and implement here. Big hug, all the best.
– Rodrigo Tiburski
@Rodrigotiburski... :)
– JcSaint