Oracle 9i Java Programming: Solutions for Developers Using PL/SQL / Edition 1

Oracle 9i Java Programming: Solutions for Developers Using PL/SQL / Edition 1

by HOLM, Sant K. Singh, Kevin Mukhar
     
 

ISBN-10: 1861006020

ISBN-13: 9781861006028

Pub. Date: 12/23/2001

Publisher: Apress

While the integration of a Java Virtual Machine into the Oracle database has provided a whole host of new opportunities and challenges to the Oracle developer and DBA, it has also provoked much debate as to when it makes sense to exploit this feature. This book clearly demonstrates many practical, real-world applications that developers can put to immediate use in

Overview

While the integration of a Java Virtual Machine into the Oracle database has provided a whole host of new opportunities and challenges to the Oracle developer and DBA, it has also provoked much debate as to when it makes sense to exploit this feature. This book clearly demonstrates many practical, real-world applications that developers can put to immediate use in their day-to-day jobs. With Java and Oracle, the developer can now compress LOBs, use multicast sockets to automatically alert clients when data has changed, and run an FTP Java client in the database, to name but a few of the examples covered here. In addition, this book gives in-depth consideration to the question of when it is appropriate to use Java from a performance perspective, including benchmarks.

Product Details

ISBN-13:
9781861006028
Publisher:
Apress
Publication date:
12/23/2001
Series:
SkipSearch
Edition description:
2001
Pages:
825
Product dimensions:
0.00(w) x 0.00(h) x 0.07(d)

Table of Contents

Introduction1
From the Lead Author...2
Who Should use this Book?2
How this Book is Structured2
Conventions5
Customer Support6
How to Download the Sample Code for the Book7
Errata7
E-mail Support7
P2p.wrox.com8
Section 1Basic Java for Oracle Developers
Chapter 1Getting Started11
Setting Up11
Java Architecture16
The Oracle Java Server Platform19
Running Java Programs in the Database22
Summary30
Chapter 2Java Classes and Objects33
Making and Using Classes and Objects34
Inheritance46
Packages59
The public, private, protected Keywords63
Exceptions65
Core Java Classes66
Summary68
Chapter 3Using Objects in PL/SQL and Java71
Procedural Approach: the PL/SQL Account package71
OO Approach: the Account Java Class73
Constructors in Java73
Setting up Variables in Java and PL/SQL74
Custom and Abstract Data Types76
Passing Parameters and Returning Values79
Calling Java from PL/SQL80
Comparing Java Classes and PL/SQL Packages82
Comparing Java Methods and PL/SQL Procedures85
Object-Oriented Features in PL/SQL and Java86
Summary94
Section 2JDBC and SQLJ
Chapter 4Connecting to Oracle through JDBC97
JDBC Fundamentals98
How JDBC Works101
JDBC Drivers102
Connecting to Oracle107
Oracle JDBC Connections108
A Basic JDBC Application113
Solution to Common Problems118
The Server-Side Internal Driver120
Summary124
Chapter 5Using JDBC127
What Else is in the JDBC API?128
A Tour of the Main JDBC Interfaces128
Multiple Fetching161
Defining Column Types167
Transactions168
More Go-Faster Code: Update Batching172
Designing for Performance181
Summary184
Chapter 6Handling Exceptions187
Exception Fundamentals188
JDBC Exceptions194
Now That You've Caught One...204
Summary206
Chapter 7Oracle Extension Classes209
Benefits of JDBC Extensions210
Oracle JDBC Packages210
The STRUCT and ARRAY Data Types212
The oracle.sql.REF class226
The BLOB and CLOB Classes230
The oracle.sql.BFILE Class238
The oracle.sql.CHAR Class244
The oracle.sql.DATE class245
The oracle.sql.NUMBER Class246
Summary247
Chapter 8SQLJ Programming249
SQLJ--A Short History250
The SQLJ Translation Process251
Preparing the Code Examples252
A Simple SELECT Statement252
Manipulating Data with SQLJ269
SQLJ Declarations278
Using SQLJ to Invoke PL/SQL294
SQLJ and Java Stored Procedures300
New SQLJ Features in Oracle 9i305
Summary311
Section 3Using Java in the Database
Chapter 9Using the oracle JVM315
Historical Differences in the Oracle JVM315
Memory Usage in the JVM317
Managing Code in the JVM323
Debugging and Common Pitfalls340
Summary350
Chapter 10Java Stored Procedure Basics353
Why use Java Stored Procedures?353
An Overview of Java Stored Procedure Development354
Executing Parameterless Java Methods355
Java Methods that take Parameters359
Calling Java Stored Procedures from SQL DML362
The Time Translator Java Stored Procedure364
The e-mail Validation Stored Procedure368
Summary369
Chapter 11Oracle Java Security371
Security Basics371
Java Security Model372
Oracle Java Security385
Summary423
Chapter 12Using Java Utilities425
Defining the Role of Java426
Java Utilities427
Generating Images428
Sending e-Mail Messages from the Database456
Tying it All Together468
Summary470
Chapter 13Working with Operating System Resources473
Guidelines for Resource Handling474
Java and Files475
Running OS Commands and Executables500
Sockets530
Summary544
Chapter 14Using PL/SQL and Java Together547
File Transfer Application547
Data Compression583
Summary599
Section 4Performance
Chapter 15Java Application Performance601
Object Creation and Performance602
Java Memory Usage In The Database610
JDBC Driver Comparisons622
Oracle Native Compiler (ncomp)632
Summary642
Chapter 16SQL Tuning and Analyzing Queries645
First Steps In SQL Tuning646
Analyzing Queries663
Advanced SQL Tuning674
Summary689
Chapter 17PL/SQL and Java: Benchmarking SQL Execution691
Comparing PL/SQL and JDBC693
The Price of Data Conversion715
The Design Factor727
Summary728
Section 5Appendices
Appendix ABasic Java Syntax731
Basic Java Program Structure731
Variables737
The Primitive Data Types741
Operators743
Character Data Types751
Strings752
Control Structures754
Arrays768
Appendix BUseful Core Java Classes773
Java API Specification774
Mathematical Operations774
Formatting Operations784
The Collections API793
Input and Output800
Properties813
Summary816
Appendix CThe Logging API819
Setting up the Java Logging API819
Index825

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >