Databases Reference
In-Depth Information
A view object is the component used to collect data from the
data source. It is the mechanism used to retrieve data from the
entity object.
We retrieve the Employee information using the view object
that is based on the entity object, that we have created in the
previous section.
8. Name the package as com.empdirectory.model.view .
9. Move the available enity object to the Selected: list.
10. Enter the name as EmpVO as shown in the following screenshot:
11. The next secion will help you to create a query-based view object. The view object
can be based on an SQL query that will be used to display the read-only informaion
of the table. View objects without the enity object are read-only and don't update
the table. In this example, we don't have any query-based object, so we will skip this
secion this ime.
12. We will create the applicaion module in the next secion.
The application module is the component that corresponds
to a particular task, such as updating and creating a record. It
manages the data source transaction that is used to accomplish
a specific task. The application module uses the Employee
view object to complete the task of creating, updating, and
deleting a record in the Employee table.
 
Search WWH ::




Custom Search