Sunteți pe pagina 1din 16

Building a Business Model

with
ADF Business Components

Copyright 2008, Oracle. All rights reserved.


Objectives

After completing this lesson, you should be able to do the


following:
Describe the role of ADF Business Components in building
a business service
Explain the architecture of ADF BC
Identify the types of components that cooperate to provide
the business service implementation
Use JDeveloper design-time facilities for ADF BC
Explain how ADF BC components are used in a Web
application

4-2 Copyright 2008, Oracle. All rights reserved.


Describing ADF Business Components (ADF BC)

ADF Business Components (ADF BC) characteristics:


Provides data interaction and business logic execution
Maps to a data source, such as an Oracle database
Enables 4GL development
Wizard-based or visual development
Implemented in metadata, not code
Enables business logic development
Predefined Java methods for any event
Declarative business rules

4-3 Copyright 2008, Oracle. All rights reserved.


ADF BC Implementation Architecture

Characteristics of the Business Components layer of ADF:


Based on standard Java and XML
Works with any application server or database
Implements popular design patterns
(Model/View/Controller, Interface/Implementation
Separation, and Session Facade.)
Components are organized into packages
Prebuilt code in two main packages:
oracle.jbo
oracle.jbo.server
Components metadata driven with optional Java code

4-4 Copyright 2008, Oracle. All rights reserved.


Types of ADF Business Components

StorefrontAM

CustomerEO
Customer CustVO

CustomerOrder
OrderEO

AllOrders OrdVO

View LineItemEO
Objects
Application Module and Entity Objects
with View View and
Object Instances Link Associations

4-5 Copyright 2008, Oracle. All rights reserved.


Creating ADF Business Components

You can create ADF Business


Components by:
Creating a
Business
Components
Diagram
Using the wizards

4-6 Copyright 2008, Oracle. All rights reserved.


The Create Business Components from Tables
Wizard: Entity Objects

Specify
Package.
Restrict
query.

Rename
entity.

4-7 Copyright 2008, Oracle. All rights reserved.


The Create Business Components from Tables
Wizard: Updatable View Objects

Specify
Package.

Rename
view object.

4-8 Copyright 2008, Oracle. All rights reserved.


The Create Business Components from Tables
Wizard: Read-Only View Objects

Specify
Package.

Rename
view object.

4-9 Copyright 2008, Oracle. All rights reserved.


The Create Business Components from Tables
Wizard: Application Module

Create an
application
module?
Name
application
module.

4 - 10 Copyright 2008, Oracle. All rights reserved.


The Create Business Components from Tables
Wizard: Diagram

Create?

Name
diagram
Choose
objects

4 - 11 Copyright 2008, Oracle. All rights reserved.


Examining Created Objects

4 - 12 Copyright 2008, Oracle. All rights reserved.


Testing the Data Model

4 - 13 Copyright 2008, Oracle. All rights reserved.


Exposing the Application Module to the User
Interface

Oracle ADF Model:


Abstracts service implementation from clients
EJB, Web services, TopLink, Java classes, ADF BC
JSP, mobile
Provides declarative data
binding:
Implements JSR 227
Uses EL (expression
language)
Separates view from
business service
Creates data control
from application module

4 - 14 Copyright 2008, Oracle. All rights reserved.


Summary

In this lesson, you should have learned how to:


Describe the role of ADF Business Components in building
a business service
Explain the architecture of ADF BC
Identify the types of components that cooperate to provide
the business service implementation
Use JDeveloper design-time facilities for ADF BC
Explain how ADF BC components are used in a Web
application

4 - 15 Copyright 2008, Oracle. All rights reserved.


Practice 4 Overview:
Building a Business Model

This practice covers the following topics:


Using the Business Components from Tables Wizard to
quickly build part of the data model
Testing the model with the Business Components Browser

4 - 16 Copyright 2008, Oracle. All rights reserved.

S-ar putea să vă placă și