没有合适的资源?快使用搜索试试~ 我知道了~
首页Oracle数据库2天Java开发人员指南-11g Release 2-138—版权©2007,2012,Oracle及/或其关联公司。
《Oracle Database 2 Day Java开发者指南11g Release 2-138》是Oracle公司所提供的一个软件和文档,版权归Oracle及其关联公司所有。这个指南的主要作者是Deepa Aswani、Rosslynne Hefferan和Maitreyee Chaliha。其他的作者和贡献者包括Kathleen Heap、Simon Law、Kuassi Mensah、Chris Schalk、Christian Bauwens、Mark Townsend、Paul Lo和Venkatasubramaniam Iyer。 该指南的目的是帮助Java开发者快速了解如何使用Oracle数据库进行开发。它提供了一些标准工具和示例代码,供开发者使用。该指南覆盖了数据库连接、SQL和PL/SQL编程、存储过程和触发器的开发等内容。 在使用该指南之前,用户需要遵守许可协议中的限制,并受到知识产权法的保护。除非在许可协议中明确允许或法律允许的情况下,用户不得使用、复制、翻译、广播、修改、许可、传输、传播该软件和相关文档。 总而言之,《Oracle Database 2 Day Java开发者指南11g Release 2-138》是一个由Oracle公司提供的帮助Java开发者使用Oracle数据库进行开发的指南,其中包含了标准工具和示例代码。用户在使用之前需要遵守许可协议,并受到知识产权法的保护。
资源详情
资源推荐
Using JDeveloper to Create JDBC Applications
1-4 Oracle Database 2 Day + Java Developer's Guide
You can arrange the windows as you choose, and can close and open them from the
View menu.
Figure 1–1 shows the default layout of some of the available navigators,
palettes, and work areas in the JDeveloper user interface (GUI).
Figure 1–1 JDeveloper User Interface
Java Source Editor/
Visual Editor
Application
Navigator
Connections
Navigator
Component
Palette
Property
Inspector
Runtime
Messages
Structure
Window
See Also: Working with Windows in the IDE, in the JDeveloper online
Help
JDeveloper Tools
For creating a Java application, JDeveloper provides the following tools to simplify the
process:
■ Structure window, which provides a tree view of all of the elements in the
application currently being edited be it Java, XML, or JSP/HTML.
■ Java Visual Editor, which you can use to assemble the elements of a user interface
quickly and easily.
■ JSP/HTML Visual Editor, which you can use to visually edit HTML and JSP
pages.
■ Java Source Editor, which provides extensive features for helping in writing the
Java code, such as distinctive highlighting for syntax and semantic errors,
assistance for adding and sorting import statements, the Java Code Insight feature,
and code templates.
Note: The Java Code Insight feature is a facility that provides
context-specific, intelligent input when creating code in the Java
Source Editor. In this guide, you will see many instances of how you
can use Java Code Insight to insert code.
Overview of Sample Java Application
Using Java with Oracle Database 1-5
■ Component Palette, from which you select the user interface components, such as
buttons and text areas, that you want to display on your pages.
■ Property Inspector, which gives a simple way of setting properties of items such
as user interface components.
Figure 1–1 might help you get a better idea of where you can access these tools in the
JDeveloper UI.
Overview of Sample Java Application
This guide shows you how to create an application using Java, JDBC and Oracle ADF.
In this application, you build in the following functions and features:
1. Allow users to log in and validate the user name and password.
2. Establish a connection to the database.
3. Query the database for data and retrieve the data using a JavaBean.
4. Display the data using JavaServer Pages (JSP) technology.
5. Allow users to insert, update, or delete records.
6. Access and modify information from a master-detail application.
7. Handle exceptions.
Note: The application connects to the
HR
schema that ships with
Oracle Database. Although the Oracle Database client installation
comes with both the Thin and OCI drivers, the sample application will
use only the JDBC Thin Driver.
Overview of Application Web Pages (JSP Pages)
Figure 1–2 shows the relationships among the pages developed for this application.
Figure 1–2 Web Pages in the Sample Application
employees.jsp
Displays a table of employees.
Contains :
• a field for filtering the list of
employees
• a link to add an employee
• links to edit employee rows
• links to delete employee rows
index.jsp
login.jsp login_action.jsp
insert.jsp insert_action.jsp
edit_emp.jsp update_action.jsp
delete_action.jsp
A brief description of the Web pages in the sample application follows:
Overview of Sample Java Application
1-6 Oracle Database 2 Day + Java Developer's Guide
■
index.jsp
This is the starting page of the application. It automatically forwards the user to
the login page of the application,
login.jsp
.
■
login.jsp
This page allows users to log in to the application. The user name, password, and
host information are validated and used to create the connection descriptor to log
in to the database.
■
login_action.jsp
This is a nonviewable page that handles the authentication of the user-supplied
login details from
login.jsp
. If authentication is successful, the page forwards the
user to
employees.jsp
. Otherwise, it redisplays the
login.jsp
page including a
message.
■
employees.jsp
This is the main page of the application. It displays a list of all the employees in
the
HR
schema for AnyCo Corporation and allows the user to filter the list of
employees using any string. It also includes links to add, edit, and delete any user
data. These actions, however, are handled by other JSP pages that are created
specifically for each of these tasks.
■
insert.jsp
The link to insert employee data on the
employees.jsp
page redirects the user to
this page. This includes a form that accepts all the details for a new employee
record. The details entered on this form are processed by the
insert_action.jsp
page.
■
insert_action.jsp
This is a nonviewable page that handles the insertion of data for a new employee
that is entered on the
insert.jsp
page.
■
edit.jsp
The link to edit employee data on the
employees.jsp
page redirects the user to
this page. This form displays current data of a single employee in text fields, and
the user can edit this information.
■
update_action.jsp
The submit action on the
edit.jsp
page directs the data to this nonviewable page,
which inserts the edited data into the database.
■
delete_action.jsp
The link to delete an employee record on the
employees.jsp
page is handled by
this nonviewable page, which deletes the employee data and forwards the user
back to the
employees.jsp
page.
Classes
The sample application includes the following classes:
■
DataHandler.java
This class contains all the methods that are used to implement the important
functions of the sample application. It includes methods that validate user
credentials, connect to the database, retrieve employee data with and without
filters, insert data, update data, handle exceptions, and so on.
Advanced Application Development Using Developer Frameworks
Using Java with Oracle Database 1-7
■
Employees.java
This class is a JavaBean that holds a single employee record. It contains accessor
methods to get and set the values of each of the record fields. It also contains
accessor methods to retrieve and modify employee records.
■
JavaClient.java
This class is used only for testing the
DataHandler
class.
Note: This application is developed throughout this guide in the
form of a tutorial. It is recommended, therefore, that you read these
chapters in sequence.
Advanced Application Development Using Developer Frameworks
To develop enterprise solutions that search, display, create, modify, and validate data
using web, wireless, desktop, or web services interfaces, you need to use developer
frameworks to simplify your job.
Using frameworks, developers can write code based on well-defined interfaces. This is
largely a time-saving benefit, but it also makes sense in a Java EE environment because
Java EE frameworks provide the necessary infrastructure for the enterprise
application. In other words, Java EE frameworks make the concepts expressed in the
Java EE design patterns more concrete.
The Oracle Application Development Framework (Oracle ADF) is such an end-to-end
application framework that builds on Java EE standards and open-source technologies
to simplify and accelerate implementing service-oriented applications.
To illustrate how application development can be made easy using a feature-rich
environment that facilitates the creation of complex applications, this guide includes a
master-detail application in
Chapter 7.
Advanced Application Development Using Developer Frameworks
1-8 Oracle Database 2 Day + Java Developer's Guide
剩余137页未读,继续阅读
weixin_40191861_zj
- 粉丝: 77
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- AirKiss技术详解:无线传递信息与智能家居连接
- Hibernate主键生成策略详解
- 操作系统实验:位示图法管理磁盘空闲空间
- JSON详解:数据交换的主流格式
- Win7安装Ubuntu双系统详细指南
- FPGA内部结构与工作原理探索
- 信用评分模型解析:WOE、IV与ROC
- 使用LVS+Keepalived构建高可用负载均衡集群
- 微信小程序驱动餐饮与服装业创新转型:便捷管理与低成本优势
- 机器学习入门指南:从基础到进阶
- 解决Win7 IIS配置错误500.22与0x80070032
- SQL-DFS:优化HDFS小文件存储的解决方案
- Hadoop、Hbase、Spark环境部署与主机配置详解
- Kisso:加密会话Cookie实现的单点登录SSO
- OpenCV读取与拼接多幅图像教程
- QT实战:轻松生成与解析JSON数据
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功