Professional Documents
Culture Documents
Objectives
After completing this lesson, you should be able to do the following: Create a Business Component that extends another component Develop an Entity Object (EO) that implements subtypes Create polymorphic View Objects (VO)
4-2
Agenda
Inheritance and Business Components Polymorphic View Objects
4-3
4-4
Discriminator column
4-5
4-6
Inheritance Example
To set up inheritance, you need to determine: The discriminator column and values The common attributes and methods The attributes and methods that are specific to subtypes
4-7
4-8
4-9
Agenda
Inheritance and Business Components Polymorphic View Objects
4 - 10
4 - 11
EmployeeEO
Salary 2 STAFF Houston Gary 3 STAFF Reno Glenn
CustomerEO
CreditLimit 4 CUST 5 CUST 6 CUST Boise Chicago Paris Kate Jeff Patrice
4 - 12
4 - 13
PersonEO
4 - 14
Creating View Objects with Polymorphic View Rows: Defining the VO Hierarchy
First, set up the view object hierarchy:
1 2 4
3 Not pictured
4 - 15
Creating View Objects with Polymorphic View Rows: Defining the VO Hierarchy
5 6
4 - 16
Creating View Objects with Polymorphic View Rows: Defining Subtypes in the Data Model
Next, set up the subtypes in the data model:
1
4 - 17
Summary
In this lesson, you should have learned how to: Create a Business Component that extends another component Develop an EO that implements subtypes Create polymorphic View Objects
4 - 18
4 - 19