Hello, last video I explained what is MVC? We took a general overview of what about MVC In this video I will show you how it if will implement in MVC. So, now we as we know we have a database and we have say you owe us a page in EDF, how the data will transfer from database or go through from the database to the beach in EDF we will use it if business component technology in the modular. So, if say you should create something called entity object or you can see eo entity object from the entity object, what what actually I will give a quick submission about the entity object entity object actually you can consider it as a table So, is the database has employee table, we will create employee entity object if the database has departments table we will carry department's entity object. So, you can see this entity as a table in the database.
So, if say the first layer or the first step is a business component model layer, I will create a entity object which will map to the table in the database from the entity object or you will create something called view object. This view object you can consider it as query like select a department ID with workmen name from a departments. So, the query which you want, you can write it in the view object. Then we have application modules as I told you is things related to the database it will be in the model layer. And anything related to the UI as a page will be a view layer. So, what is our how's the data will move from the model to the view, we should have like a gate will transfer this data, this is application module.
So, you can you can consider this application would you like a gate which will control which data should go to the viewer view layers. So, once the data is available in the view layer, we will it will be available in something called a data control and from the data control it will reach to the page. So, now as you can see here, this part is the model Because this part was worth which deal with anything related to the database and this part will be the view and controller. So, in EDF, EDF will create as we will see later we'll create two projects one project is for model and one project is for view and controller is that if model we will use in a business component, what is it a business component we will talk later about it, but I give you just a brief description about it.
If business component is an entity object, view object and application module, entity object you can consider it now as a table view object. You can consider it as a query application would you is like a gate which control which data from the one that can be transferred to the view controller layer and if one It reaches the ViewController array and it's not a control you can use it to the pitch. I will give you an example. Here, if you have a database table like departments as this departments has two column department ID and department name in EDF design he say you should create entity object call departments. And this entity object will have attribute will map to the same column in the database. So, if you have a column called department ID department name, so the entity object will have an attribute called department ID and department name.
So instead of saying table I will say entity object and instead of saying column, the word cement column the words with name No I will attribute the bottom and attribute name. So, in the first layer first stage in ADF business component you say you should create entity object map to the table in the database. So if you have for example, database has 10 tables you should have seen into object as we will see later we'll see later how to implement this from the entity object. From now, each object is like a table Now, from this table, I will create a view object this view object will have the select statement like select the bottom INTO IT department name from departments. So this view object will get the old information from the table xit we need this view object to be used in the view layer and using the page.
So is application you should you should both this the bottom VO is application which you So, application which you will control which view object will be available and can be used is the view layer in your model, you can have multiple view objects and you can say only I need to display to view object or one or two whatever in the view layer. So, what you can do, you should insert the view object inside application modules and once the view object the board spins v ob side application module you will find this object is available in the data control and once it is in the data control we can easily drag and drop it into the page to display the department's table. If you ignore this flow very well, you will be easily work with ADF This is simplify it flow as you can know this is a model and this is a view controller.
This is how EDF implement in MVC or model view controller controller, when you build overview create an ADF application in this video, I will create quickly ADF application and I will show you every step of this how you will be implemented So, that you will have some imagination what I am talking about. So, once you know is the MVC and what is it how it if you use MVC, you will be easily work with ADF So, see you next video