Book description
Mastering essential tips and tricks for building next generation enterprise applications with Oracle ADF with this book and ebook.
Key Features
Book Description
Oracle ADF in combination with JDeveloper IDE offers visual and declarative approaches to enterprise application development. This book will teach you to build scalable rich enterprise applications using the ADF Framework, with the help of many real world examples.
Oracle ADF is a powerful application framework for building next generation enterprise applications. The book is a practical guide for the ADF framework and discusses how to use Oracle ADF for building rich enterprise applications.
"Oracle ADF Real World Developer’s Guide" discusses ADF framework in detail. This book contains a lot of real life examples which will help developers to design and develop successful enterprise applications.
This book starts off by introducing the development environment and JDeveloper design time features. As you read forward, you will learn to build a full stack enterprise application using ADF. You will learn how to build business services using ADF, enable validation for the data model, declaratively build user interfaces for business service and enable security across application layers.
What you will learn
- Get started with building business services using ADF business components
- Master how to use ADF controller to define navigation flow in an application
- Get to grips with building reusable web modules using ADF task flow
- Learn how to validate business data in different layers of an application
- Understand the use of EJB and web services in an ADF application
- Get some tips to fine tune an ADF web application
Who this book is for
If you are an ADF developer looking forward to building healthy and better performing applications using Oracle ADF, then this is the best guide for you. You need to be proficient with Java and ADF before getting started with this book.
Table of contents
-
Oracle ADF Real World Developer's Guide
- Table of Contents
- Oracle ADF Real World Developer's Guide
- Credits
- About the Author
- Acknowledgement
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. Getting Started with Oracle ADF
- Introduction to Oracle ADF
- Why Oracle ADF?
- Oracle ADF architecture
- Comparing the Fusion web application technology stack to the Java EE web application
- Developing with ADF
- Your first Fusion web application
- Summary
-
2. Introduction to ADF Business Components
- Business service layer
- Overview of ADF Business Components
- Building a simple business service
- Oracle ADF Model Tester
- Using the ADF Model Tester to test the CRUD operations on business data
- Java test client for ADF Business Components
- Understanding the runtime behavior of ADF Business Components
- Summary
-
3. Introducing Entity Object
- Introduction
- Ingredients of an entity object
- Core features of ADF entity objects
-
Developing entity objects
- Creating a database connection
- Initializing the ADF model project
- Creating entity objects
- Generating Java classes for entity components
-
Commonly used properties of an entity attribute
- Attribute names in an entity object
- Attribute types in an entity object
- Using a resource bundle to localize UI hint properties
- Property set
- Persistent and transient attributes
- Specifying a default value for an entity attribute
- Effective dated entity objects
- Defining the primary key
- Inheritance hierarchies in entity objects
- Updatability of entity attributes
- Refreshing attributes on posting changes to the database
- Marking an attribute as mandatory
- Checking data inconsistency by using the Change Indicator attribute
- Queriable attributes
- Tracking change history
- Configuring UI hints for an attribute
- Specifying dependency attributes
- Commonly used properties of an entity object
- Working with entity objects
- Summary
-
4. Introducing View Object
- Introduction
- Concepts and architecture
- Core features of ADF view objects
- Developing view objects
-
Working with view objects
- List of values
- Linking two view objects
- Inheritance hierarchies in view objects
- Querying the datasource by using a view object
- Effective dated view objects
- Using alternate keys in a view object
- Using findByKey() on view objects
- Creating new rows through the view object
- View link consistency
- What happens when you execute a view object?
- Summary
-
5. Advanced Concepts on Entity Objects and View Objects
-
Taking a closer look at entity objects
- Lifecycle of an entity object
- Reading the current state of an entity row
- Reading the originally retrieved attribute value
- Retrieving all entity instances in the cache
- Lifecycle callback methods of an entity object
- Building programmatically managed entity objects
- Generating a database independent unique ID
- Refreshing entity rows, forgetting the changes
- Building custom history types
-
Taking a closer look at view objects
- Lifecycle callback methods of a view object
- Building programmatically managed view objects
-
Intercepting query generation for view criteria
- Using a custom view criteria adapter
- Overriding getViewCriteriaClause(boolean forQuery) in the view object implementation class
- Overriding getCriteriaItemClause(ViewCriteriaItem vci) in the view object implementation class
- Tips on overriding getViewCriteriaClause() and getCriteriaItemClause() in the view object implementation
- Customizing the query at runtime
- Passing parameters to a SQL IN clause using oracle.jbo.domain.Array
- Defining a cascading list of values
- Switching the LOV at runtime
- Reading and writing XML data
- Advanced data type techniques
- Building business components dynamically
- Summary
-
Taking a closer look at entity objects
-
6. Introducing the Application Module
- Introduction
- Concepts and architecture
- The core features of an application module
-
Defining an application module
- Creating application modules
- Optionally generating Java classes for an application module
- Adding hierarchical view object instances to an application module
- Overriding the default properties of an application module
- Modifying the JDBC data source name for an application module
- Overriding properties for a view object instance
- Sharing of application module data
- Nesting application modules
-
Working with an application module
- Exposing the business service method through data control
- Where do you write custom business logic in a fusion web application?
- Invoking an application module from a Java client
- Invoking a shared application module from a Java client
- What you may need to know about programmatically releasing an application module?
- What happens when a client creates an application module instance?
- The lifecycle of an application module
- Storing business data at user session level
- Using JDBC APIs in an application module
- Using save points for undo operations
- Programmatically configuring an application module
- Programmatically building a master-child view object
- Using ADF Business Components with Java EE components
- Summary
-
7. Binding Business Services with the User Interface
- Introduction
- Binding model data with user interfaces
- Building a simple data bound web page
- Is a view object really a data collection?
- What happens when we drop a data collection on a page?
- Browsing through the page definition file
- What happens when you access a Fusion web page?
- Invoking an application module from a Java servlet
- Adding custom phase listeners
- Summary
-
8. Building Data Bound Web User Interfaces
- Introduction
- The art of laying out pages
- Adding actions to your page
- Building data bound table UIs
- Building data bound master-detail UIs
- Building a data bound tree table UI
- Accessing web tier values from business components
-
Building data bound query search forms
- Building the view criteria
- Building a search UI
- Initializing criteria item values using web tier values
- Programmatically controlling the display of a query component
- Programmatically retrieving view criteria used for a query component
- Programmatically resetting a query component
- Search on a tree table
- What happens at runtime in a tree table search?
- Building a data bound multi select list
- Overriding UI hints in a view object
- Summary
-
9. Controlling the Page Navigation
- Introduction
- The navigation model in the JSF framework
- The navigation model in ADF
- The ingredients of an ADF task flow
- Building an unbounded task flow
- Adding an exception handler
- Using method call activity to initialize a page
- Building a menu model
- Summary
-
10. Taking a Closer Look at the Bounded Task Flow
- Introduction
- The properties of a bounded task flow
- Building a bounded task flow
- Working with bounded task flow activities
- Parameterizing a bounded task flow
- Consuming bounded task flows as ADF regions
- Lazy loading of an ADF region
- Refreshing an ADF region
- Displaying task flows using a pop up component
- Using a contextual event for communicating to an ADF region
- Dynamically adding multiple regions to a page
- Distributing ADF task flow as the ADF library
- Using a train component in a bounded task flow
- Transaction management in a bounded task flow
- The life span of a bounded task flow
- Summary
-
11. More on Validations and Error Handling
- Introduction
- Adding validation rules in a fusion web application
- Displaying validation exceptions on a page
- Where in the page lifecycle does validation occur?
- Error handling in ADF
- Programmatically throwing validation exceptions in business components
- Customizing default business component error messages
- Skipping validation
- Summary
-
12. Oracle ADF Best Practices
- Introduction
- Setting up the project structure for your Fusion web application
- The life span of ADF Business Components
-
The best practices and performance tuning for Oracle ADF
- Tuning tips for an application module
-
Tuning tips for view objects
- Tips for optimizing query execution in a view object
- Tips for optimizing database read operations
- Tips for setting a global row fetch limit for view objects
- Tuning view criteria in view objects
- Tips for optimizing LOV definitions
- General tips for tuning view objects
- Coding guidelines for view objects
- Tuning tips for entity objects
- Tuning tips for ADF model
- Tuning tips for ADF Controller and task flows
- Tuning tips for ADF Faces
- Internationalization of Fusion web applications
- Ensuring high availability for Fusion web applications
- Summary
- Index
Product information
- Title: Oracle ADF Real World Developer's Guide
- Author(s):
- Release date: October 2012
- Publisher(s): Packt Publishing
- ISBN: 9781849684828
You might also like
book
Oracle Fusion Developer Guide
Master Oracle Fusion Middleware Successfully design rich enterprise web applications using the detailed information in this …
book
Oracle ADF Enterprise Application Development – Made Simple Second Edition
The simplest way to learn Oracle's ADF is to follow an enterprise development process from start …
book
Quick Start Guide to Oracle Fusion Development
Get Started with Oracle Fusion Development Written by a Group Product Manager at Oracle, this Oracle …
book
Oracle JDeveloper 10g for Forms & PL/SQL Developers: A Guide to Web Development with Oracle ADF
The most efficient way to learn J2EE programming techniques Two Oracle experts demonstrate techniques for working …