没有合适的资源?快使用搜索试试~ 我知道了~
首页oracle adf JDeveloper 教程 java j2ee
oracle adf JDeveloper 教程 java j2ee
4星 · 超过85%的资源 需积分: 10 246 下载量 155 浏览量
更新于2023-03-03
评论 3
收藏 9.89MB PDF 举报
oracle adf JDeveloper 教程 java j2ee oracle adf JDeveloper 教程 java j2ee oracle adf JDeveloper 教程 java j2ee oracle adf JDeveloper 教程 java j2ee oracle adf JDeveloper 教程 java j2ee
资源详情
资源评论
资源推荐
Oracle® Application Development Framework
Developer’s Guide
10g Release 3 (10.1.3.0)
B28967-01
June 2006
This book describes how to develop enterprise applications
with Oracle ADF.
Oracle Application Development Framework Developer’s Guide, 10g Release 3 (10.1.3.0)
B28967-01
Copyright © 1997, 2006, Oracle. All rights reserved.
Primary Author: Ken Chu, Orlando Cordero, Ralph Gordon, Rosslynne Hefferan, Mario Korf, Robin
Merrin, Steve Muench, Kathryn Munn, Barbara Ramsey, Jon Russell, Deborah Steiner, Odile Sullivan-Tarazi,
Poh Lee Tan, Robin Whitmore, Martin Wykes
The Programs (which include both the software and documentation) contain proprietary information; they
are provided under a license agreement containing restrictions on use and disclosure and are also protected
by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly,
or decompilation of the Programs, except to the extent required to obtain interoperability with other
independently created software or as specified by law, is prohibited.
The information contained in this document is subject to change without notice. If you find any problems in
the documentation, please report them to us in writing. This document is not warranted to be error-free.
Except as may be expressly permitted in your license agreement for these Programs, no part of these
Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any
purpose.
If the Programs are delivered to the United States Government or anyone licensing or using the Programs on
behalf of the United States Government, the following notice is applicable:
U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data
delivered to U.S. Government customers are "commercial computer software" or "commercial technical data"
pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As
such, use, duplication, disclosure, modification, and adaptation of the Programs, including documentation
and technical data, shall be subject to the licensing restrictions set forth in the applicable Oracle license
agreement, and, to the extent applicable, the additional rights set forth in FAR 52.227-19, Commercial
Computer Software--Restricted Rights (June 1987). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA
94065
The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently
dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup,
redundancy and other measures to ensure the safe use of such applications if the Programs are used for such
purposes, and we disclaim liability for any damages caused by such use of the Programs.
Oracle, JD Edwards, and PeopleSoft are registered trademarks of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.
The Programs may provide links to Web sites and access to content, products, and services from third
parties. Oracle is not responsible for the availability of, or any content provided on, third-party Web sites.
You bear all risks associated with the use of such content. If you choose to purchase any products or services
from a third party, the relationship is directly between you and the third party. Oracle is not responsible for:
(a) the quality of third-party products or services; or (b) fulfilling any of the terms of the agreement with the
third party, including delivery of products or services and warranty obligations related to purchased
products or services. Oracle is not responsible for any loss or damage of any sort that you may incur from
dealing with any third party.
iii
Contents
Preface ............................................................................................................................................................... xix
Audience..................................................................................................................................................... xix
Documentation Accessibility................................................................................................................... xix
Related Documents ................................................................................................................................... xx
Conventions ............................................................................................................................................... xx
1 Introduction to Oracle ADF Applications
1.1 Overview of Oracle Application Development Framework ................................................ 1-1
1.1.1 Framework Architecture and Supported Technologies................................................. 1-1
1.1.1.1 View Layer Technologies Supported......................................................................... 1-2
1.1.1.2 Controller Layer Technologies Supported................................................................ 1-2
1.1.1.3 Business Services Technologies Supported by ADF Model................................... 1-2
1.1.1.4 Recommended Technologies for J2EE Enterprise Developers .............................. 1-3
1.1.2 Declarative Development with Oracle ADF and JavaServer Faces.............................. 1-3
1.1.2.1 Declarative J2EE Technologies You May Have Already Used.............................. 1-4
1.1.2.2 JSF Offers Dependency Injection, Page Handling, EL and More.......................... 1-4
1.1.2.3 Oracle ADF Further Raises the Level of Declarative Development for JSF......... 1-6
1.1.3 Key ADF Binding Features for JSF Development........................................................... 1-7
1.1.3.1 Comprehensive JDeveloper Design-Time Support................................................. 1-8
1.1.3.2 More Sophisticated UI Functionality Without Coding........................................... 1-8
1.1.3.3 Centralize Common Functionality in Layered Model Metadata .......................... 1-9
1.1.3.4 Simplified Control Over Page Lifecycle.................................................................... 1-9
1.2 Development Process with Oracle ADF and JavaServer Faces......................................... 1-10
1.2.1 Overview of the Steps for Building an Application .................................................... 1-10
1.2.1.1 Starting by Creating a New Application................................................................ 1-11
1.2.1.2 Building the Business Service in the Model Project ............................................. 1-12
1.2.1.3 Creating a Data Control for Your Service to Enable Data Binding.................... 1-12
1.2.1.4 Dragging and Dropping Data to Create a New JSF Page.................................... 1-14
1.2.1.5 Examining the Binding Metadata Files Involved ................................................. 1-15
1.2.1.6 Understanding How Components Reference Bindings via EL .......................... 1-16
1.2.1.7 Configuring Binding Properties If Needed ........................................................... 1-18
1.2.1.8 Understanding How Bindings Are Created at Runtime ..................................... 1-18
iv
1.2.2 Making the Display More Data-Driven......................................................................... 1-19
1.2.2.1 Hiding and Showing Groups of Components Based on Binding Properties... 1-19
1.2.2.2 Toggling Between Alternative Sets of Components Based on Binding
Properties.................................................................................................................... 1-20
2 Oracle ADF Service Request Demo Overview
2.1 Introduction to the Oracle ADF Service Request Demo ....................................................... 2-1
2.1.1 Requirements for Oracle ADF Service Request Application......................................... 2-2
2.1.2 Overview of the Schema..................................................................................................... 2-2
2.2 Setting Up the Oracle ADF Service Request Demo ............................................................... 2-4
2.2.1 Downloading and Installing the Oracle ADF Service Request Application............... 2-4
2.2.2 Installing the Oracle ADF Service Request Schema ....................................................... 2-5
2.2.3 Creating the Oracle JDeveloper Database Connection .................................................. 2-7
2.2.4 Running the Oracle ADF Service Request Demo in JDeveloper .................................. 2-8
2.2.5 Running the Oracle ADF Service Request Demo Unit Tests in JDeveloper ............... 2-9
2.3 Quick Tour of the Oracle ADF Service Request Demo ...................................................... 2-11
2.3.1 Customer Logs In and Reviews Existing Service Requests........................................ 2-11
2.3.2 Customer Creates a Service Request.............................................................................. 2-13
2.3.3 Manager Logs In and Assigns a Service Request......................................................... 2-16
2.3.4 Manager Views Reports and Updates Technician Skills ............................................ 2-18
2.3.5 Technician Logs In and Updates a Service Request .................................................... 2-21
3 Building and Using Application Services
3.1 Introduction to Business Services............................................................................................. 3-1
3.2 Implementing Services with EJB Session Beans..................................................................... 3-2
3.2.1 How to Create a Session Bean............................................................................................ 3-2
3.2.1.1 Remote and Local Interfaces....................................................................................... 3-2
3.2.1.2 Generating Session Facade Methods......................................................................... 3-2
3.2.2 What Happens When You Create a Session Bean .......................................................... 3-3
3.2.3 What You May Need to Know When Creating a Session Bean.................................... 3-7
3.2.4 How to Update an Existing Session Bean With New Entities....................................... 3-8
3.3 Creating Classes to Map to Database Tables .......................................................................... 3-8
3.3.1 How to Create Classes ........................................................................................................ 3-8
3.3.2 What Happens when you Create a Class......................................................................... 3-9
3.3.3 What You May Need to Know........................................................................................ 3-10
3.3.3.1 Associating Descriptors with Different Database Tables .................................... 3-10
3.3.3.2 Using Amendment Methods ................................................................................... 3-10
3.3.3.3 Modifying the Generated Code............................................................................... 3-11
3.4 Mapping Classes to Tables ..................................................................................................... 3-11
3.4.1 Types of Mappings........................................................................................................... 3-12
3.4.2 Direct Mappings ............................................................................................................... 3-12
3.4.3 How to Create Direct Mappings..................................................................................... 3-12
3.4.4 What Happens when you Create a Direct Mapping................................................... 3-13
3.4.5 What You May Need to Know........................................................................................ 3-13
v
3.5 Mapping Related Classes with Relationships...................................................................... 3-14
3.5.1 How to Create Relationship Mappings......................................................................... 3-15
3.5.2 What Happens when you Create a Relationship......................................................... 3-15
3.5.3 What You May Need to Know........................................................................................ 3-15
3.6 Finding Objects by Primary Key............................................................................................ 3-17
3.7 Querying Objects ..................................................................................................................... 3-17
3.7.1 How to Create a Query.................................................................................................... 3-17
3.7.2 What You May Need to Know........................................................................................ 3-18
3.7.2.1 Using a Query By Example...................................................................................... 3-18
3.7.2.2 Sorting Query Results............................................................................................... 3-18
3.8 Creating and Modifying Objects with a Unit of Work....................................................... 3-18
3.8.1 How to Create a Unit of Work........................................................................................ 3-19
3.8.1.1 Creating Objects with Unit of Work ....................................................................... 3-19
3.8.1.2 Typical Unit of Work Usage..................................................................................... 3-20
3.8.2 What Happens when you Modify a Unit of Work ...................................................... 3-21
3.8.2.1 Deleting Objects......................................................................................................... 3-22
3.8.3 What You May Need to Know........................................................................................ 3-22
3.8.3.1 Unit of Work and Change Policy ............................................................................ 3-22
3.8.3.2 Nested and Parallel Units of Work ......................................................................... 3-22
3.9 Interacting with Stored Procedures....................................................................................... 3-23
3.9.1 Specifying an Input Parameter ....................................................................................... 3-23
3.9.2 Specifying an Output Parameter.................................................................................... 3-24
3.9.3 Specifying an Input / Output Parameter...................................................................... 3-25
3.9.4 Using an Output Parameter Event................................................................................. 3-25
3.9.5 Using a StoredFunctionCall ............................................................................................ 3-25
3.9.6 Query Sequencing............................................................................................................. 3-26
3.10 Exposing Services with ADF Data Controls ........................................................................ 3-26
3.10.1 How to Create ADF Data Controls ................................................................................ 3-26
3.10.2 Understanding the Data Control Files........................................................................... 3-27
3.10.2.1 About the DataControls.dcx File............................................................................. 3-27
3.10.2.2 About the Structure Definition Files....................................................................... 3-27
3.10.2.3 About the Entity XML Files .....................................................................................
3-27
3.10.2.4 About the Design-time XML Files........................................................................... 3-28
3.10.3 Understanding the Data Control Palette....................................................................... 3-28
3.10.3.1 Overview of the Data Control Business Objects................................................... 3-29
3.10.3.2 Refreshing ADF Data Controls After Modifying Business Services ................. 3-30
4 Getting Started with ADF Faces
4.1 Introduction to ADF Faces......................................................................................................... 4-1
4.2 Setting Up a Workspace and Project........................................................................................ 4-3
4.2.1 What Happens When You Use an Application Template to Create a Workspace .... 4-3
4.2.1.1 Starter web.xml File...................................................................................................... 4-5
4.2.1.2 Starter faces-config.xml File........................................................................................ 4-6
4.2.2 What You May Need to Know About the ViewController Project.............................. 4-7
4.2.3 What You May Need to Know About Multiple JSF Configuration Files .................... 4-8
剩余675页未读,继续阅读
elvisleon
- 粉丝: 12
- 资源: 55
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- ExcelVBA中的Range和Cells用法说明.pdf
- 基于单片机的电梯控制模型设计.doc
- 主成分分析和因子分析.pptx
- 共享笔记服务系统论文.doc
- 基于数据治理体系的数据中台实践分享.pptx
- 变压器的铭牌和额定值.pptx
- 计算机网络课程设计报告--用winsock设计Ping应用程序.doc
- 高电压技术课件:第03章 液体和固体介质的电气特性.pdf
- Oracle商务智能精华介绍.pptx
- 基于单片机的输液滴速控制系统设计文档.doc
- dw考试题 5套.pdf
- 学生档案管理系统详细设计说明书.doc
- 操作系统PPT课件.pptx
- 智慧路边停车管理系统方案.pptx
- 【企业内控系列】企业内部控制之人力资源管理控制(17页).doc
- 温度传感器分类与特点.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论23