Introduction to Oracle ADF Business Components
Download
Report
Transcript Introduction to Oracle ADF Business Components
Introduction to
Oracle ADF Business Components
Oracle ADF Architecture
The Business Services Layer
• Manages Persistence
– O/R mapping
– Queries/DML
• Performs Validation
– Data validation
– Business logic
• Choices of implementation
– ADF Business Components, JPA Entities, Web Services, Java classes
ADF Business Components Characteristics
• Provides data interaction & business logic execution
• Maps to a data source
• Enables 4GL development
– Declarative and visual development
– Implemented in metadata
• Enables business logic development
– Declarative business rules
– Pre-defined Java methods for events
• Can expose application modules as services
• Based on Java and XML
Artifacts of ADF Business Components
Entity Objects
• Maps to a row in a database table
• Handles insert, update, delete operation
• Define behaviors for attributes
• Can contain validation and business logic
Entity Objects - Persist Data
Associations
• Define a relationship between EOs
• Facilitate access to data in related entity
objects
• May be based on database constraints
• May be independent of database
constraints
• Are used in defining validations and LOV
• Consist of a source (master) and a
destination (detail) entity
View Objects
• Represent a query
• Are used for joining, filtering, projecting, and sorting business data
• Enable you to have a view of data that is specific to one part of your
application
• Can be constructed from a SQL statement, static values, or populated
programmatically
• Can also be based on any number of entity objects
Using View Objects
ADF Application Modules
Application Modules:
• Contain an active data model that the client uses to interact with view
object instances
• Control the connection to the database and keep track of all changes
that affect data in the database
• Provide remotely accessible methods to implement application
module behavior
• Are easily reused