Академический Документы
Профессиональный Документы
Культура Документы
0 Essentials
Business Components
1 of 15
Module Objectives
To define a business component and learn mapping of fields in
Business layer to columns in Data layer To know how to retrieve the data from the base and joined tables as well To know how to group data according to business logic
Business Components
3 of 15
Screen
View
Applet
Business Object
Business Component
Field
Table
Column
Business Components
4 of 15
Business Component
A business component (BC) is a person, place, thing, or event about which
data must be stored Provides the foundation for controlling how data is selected, inserted, and updated in underlying tables
Represents a fundamental business entity Consists primarily of fields and joins. Each field references a single column in a table It does not store data. It stores data about data (metadata)
Arranges data from one or more tables in to a logical grouping
BIRTH_DT
ROW_ID
Business Components
ROW_ID
ROW_ID
BU_ID
NAME
5 of 15
Defined once in terms of logical collection of columns from one or more tables Then used in many different business object contexts.
Account
Contact
Action
Account
Action
Contact Product
Business Components
6 of 15
Base Table
Every BC references only one base table Contains the main columns for the business component Many BC fields are mapped to base table columns
Business Components
7 of 15
Fields Mapping
Fields that are mapped to base table
Column property maps to a column in base table Join property is left blank
Fields that are mapped to joined table
Column property maps to a column in joined table Join property specifies the join object definition being referenced
Business Components
8 of 15
Not every record in the base table will have a record in the joined table
Relationship is established using a FK column on the base table to join to
S_ORG_EXT CURR_PRI_LST_ID
ROW_ID
ROW_ID
BU_ID
NAME
FK
PK
Business Components
9 of 15
Join
Join Definition
Specifies the joined table from which to retrieve data Defaults the alias property to the name of the joined table Modify the alias name when there is more than one join to the same table
Join Specification
Specifies how to retrieve the related row from the joined table Based on the foreign and primary keys used to relate the base and joined tables
Alias of Join
Joined table
FK Field
PK Field
Business Components
10 of 15
Implicit Joins
Base tables are automatically joined to their extension tables
Known as implicit joins Make extension table rows available to the BC An explicit join to describe the relationship is not needed
Come pre-configured as part of the Siebel object architecture
S_CONTACT_X appears in the Join Picklist No join definition appears for S_CONTACT_X
Business Components
11 of 15
referenced Column property references a column in the extension table Field is editable in the UI
ATTRIB_08 column from S_CONTACT_X contains data for Married field data
Business Components
12 of 15
Explicit Join
Is a join that brings in data from tables other than the base table to meet
the business components data display requirements Most fields referencing explicitly joined tables are read-only in the applet Includes a join definition and a join specification BC field references the join definition
CURR_PRI_LST_ID
BIRTH_DT
ROW_ID
ROW_ID
BU_ID
NAME
Base Table
Business Components
13 of 15
Data Layer
S_ORG_EXT
Business Components
14 of 15
Module Highlights
A BC is a person, place, thing, or event about which data is stored A BC can be defined once then re-used by different BOs Each BC references a single base table A BC can include data from joined tables A join definition specifies joined table A join specification specifies how to access joined table via PK/FK An extension table extends data in the BC Fields on extension tables use implicit joins
Business Components
15 of 15