Professional Documents
Culture Documents
0 Essentials
19
Copyright 2007, Oracle. All rights reserved.
Module Objectives
2 of 16
Provide a way to organize BCs into major areas according to your business logic requirements Provide context to views
Applet
View
Screen
Application
Business Layer
Field
Business Component
Data Layer
Column
Table
References
3 of 16
Business Challenge
Business components provide a way to group data according to business logic, but they do not address the need for context
For example, the opportunity BC defines how to retrieve opportunity data, but not related activity data
?
Copyright 2007, Oracle. All rights reserved.
How is it that the Activities view shows only activities related to the Kaboom opportunity?
4 of 16
Business objects contain relationships used to access records from a child business component
Identifies records to display depending on context in which they are viewed Ensures that only records related to parent BCs are returned from queries
5 of 16
Business Objects
Are a collection of related business components that represent a major area of the business
Contain parent and child business components Relate parent and child components via links Links focus records displayed based on the context in which they are viewed
Provide a container for grouping business components Provide context for views
Business Object
Opportunity
Opportunity Link focuses data in view
Action
Product
Source
6 of 16
Contains Link and BusComp properties that relate the parent and child business components to each other
Child BC
Parent BC
7 of 16
Link Definition
Is used with both 1:M and M:M relationships between parent and child data
Opportunity
Link Definition
Opportunity
Action
Product
Source
8 of 16
1:M Link
Used for 1:M relationship between parent and child business components
Link Definition
FK field in child BC
M:M Link
Used for M:M relationship between parent and child business components Uses an intersection table to resolve the link
10 of 16
The Cascade Delete property of a link specifies whether child records of a 1:M relationship are deleted when the parent record is deleted
None: Neither deletes nor clears the foreign key column Clear: Does not delete, but clears the foreign key column Delete: If a parent record is deleted, all child records are deleted
11 of 16
Deletion cascades
12 of 16
Business objects may include grandchild business components Used in parent-child-grandchild views
Specify how the grandchild and child business component are related
Used to retrieve grandchild records on parent-child-grandchild views
Parent/Child
Child/Grandchild
Copyright 2007, Oracle. All rights reserved. 14 of 16
Module Highlights
Business objects
Provide a way to group BCs according to business logic Provide context to views Contain parent and child BCs associated via links
Links provide a way to focus records based on context Links relate parent and child BCs Link definitions specify which records to retrieve from child BCs A 1:M link is used for a 1:M relationship between parent and child BCs A M:M link is used for a M:M relationship between parent and child BCs
A M:M link uses an intersection table to resolve the link
15 of 16
16 of 16