Java programming with Oracle JDBC / Donald Bales.
By: Bales, Donald
.
Material type:
BookPublisher: Sebastopol, CA ; Farnham : O'Reilly, c2002Edition: 1st ed.Description: xv, 477 p. : ill. ; 24 cm.ISBN: 059600088X; 9780596000882.Subject(s): Oracle (Computer file)| Item type | Current library | Call number | Status | Barcode | |
|---|---|---|---|---|---|
| General lending | MTU Kerry North Campus Library Ground Floor Main | 005.71262 BAL (Browse shelf(Opens below)) | Available | 38888000825897 |
Enhanced descriptions from Syndetics:
JDBC is the key Java technology for relational database access. Oracle is arguably the most widely used relational database platform in the world. In this book, Donald Bales brings these two technologies together, and shows you how to leverage the full power of Oracle's implementation of JDBC.
You begin by learning the all-important mysteries of establishing database connections. This can be one of the most frustrating areas for programmers new to JDBC, and Donald covers it well with detailed information and examples showing how to make database connections from applications, applets, Servlets, and even from Java programs running within the database itself.
Next comes thorough coverage of JDBC's relational SQL features. You'll learn how to issue SQL statements and get results back from the database, how to read and write data from large, streaming data types such as BLOBs, CLOBs, and BFILEs, and you'll learn how to interface with Oracle's other built-in programming language, PL/SQL.
If you're taking advantage of the Oracle's relatively new ability to create object tables and column objects based on user-defined datatypes, you'll be pleased with Don's thorough treatment of this subject. Don shows you how to use JPublisher and JDBC to work seamlessly with Oracle database objects from within Java programs. You'll also learn how to access nested tables and arrays using JDBC.
Donald concludes the book with a discussion of transaction management, locking, concurrency, and performance--topics that every professional JDBC programmer must be familiar with. If you write Java programs to run against an Oracle database, this book is a must-have.
At head of cover: Oracle & Java programming.
Includes index.
JDBC is the key Java technology for relational database access. Oracle is one of the most widely used relational database platforms. This text is an essential tool for all Java Oracle developers who need to work with both technologies.
Table of contents provided by Syndetics
- Preface (p. ix)
- Part I. Overview
- 1. Introduction to JDBC (p. 3)
- The JDBC API (p. 3)
- Clients (p. 5)
- Using SQL (p. 8)
- Part II. Connections
- 2. Application Database Connections (p. 11)
- JDBC Drivers (p. 11)
- Installation (p. 16)
- Connecting to a Database (p. 19)
- Handling Exceptions (p. 29)
- 3. Applet Database Connections (p. 34)
- Oracle Drivers and JDK Versions (p. 34)
- It's an Applet's Life (p. 35)
- Packaging Your Applet (p. 38)
- Getting Around the Sandbox (p. 44)
- Establishing a Connection Through a Firewall (p. 56)
- Guidelines for Choosing a Workaround (p. 58)
- 4. Servlet Database Connections (p. 59)
- Oracle Driver Selection (p. 59)
- Servlet Connection Strategies (p. 60)
- Guidelines for Choosing a Connection Strategy (p. 87)
- 5. Internal Database Connections (p. 88)
- Server-Side Driver Types (p. 88)
- Using the Server-Side Internal Driver (p. 89)
- Using the Server-Side Thin Driver (p. 95)
- JServer Program Support (p. 99)
- 6. Oracle Advanced Security (p. 102)
- Authentication (p. 103)
- Data Encryption (p. 103)
- Data Integrity (p. 107)
- A Data Encryption and Integrity Example (p. 109)
- Secure Sockets Layer (p. 111)
- 7. JNDI and Connection Pooling (p. 113)
- DataSources (p. 113)
- Oracle's Connection Cache (p. 121)
- Part III. Relational SQL
- 8. A Relational SQL Example (p. 135)
- Relational Database Analysis (p. 135)
- Refining the Analysis (p. 140)
- Relational Database Design (p. 142)
- 9. Statements (p. 149)
- Creating a Statement Object (p. 149)
- The execute() Method (p. 150)
- The executeUpdate() Method (p. 155)
- The executeQuery() Method (p. 167)
- OracleStatement Implements Statement (p. 174)
- 10. Result Sets (p. 176)
- Basic Cursor Positioning (p. 176)
- Data Types (p. 177)
- Accessor Methods (p. 181)
- Scrollable, Updateable Result Sets (p. 198)
- ResultSet Is an OracleResultSet (p. 214)
- 11. Prepared Statements (p. 216)
- A Prepared Statement Versus a Statement (p. 216)
- Formulating SQL Statements (p. 217)
- Batching (p. 230)
- PreparedStatement Is an OraclePreparedStatement (p. 243)
- 12. Streaming Data Types (p. 245)
- BLOBs (p. 246)
- CLOBs (p. 273)
- BFILEs (p. 286)
- LONG RAWs (p. 294)
- LONGs (p. 300)
- 13. Callable Statements (p. 302)
- Understanding Stored Procedures (p. 303)
- Calling Stored Procedures (p. 309)
- CallableStatement Is an OracleCallableStatement (p. 321)
- Part IV. Object-Relational SQL
- 14. An Object-Relational SQL Example (p. 325)
- From Relational Tables to Object Views (p. 325)
- Object Tables (p. 333)
- 15. Weakly Typed Object SQL (p. 337)
- Accessing Objects as Relational Tables (p. 338)
- Structs (p. 339)
- Arrays (p. 345)
- Refs (p. 348)
- Calling Object Methods (p. 350)
- Putting It All Together (p. 352)
- Oracle's Implementations (p. 362)
- 16. Strongly Typed Object SQL (p. 365)
- JPublisher (p. 366)
- The SQLData Interface (p. 371)
- Oracle's CustomDatum Interface (p. 398)
- Part V. Essentials
- 17. Transactions (p. 411)
- Manual Transactions (p. 412)
- Transaction Scope (p. 412)
- Implicit Locking and Visibility (p. 413)
- Isolation Levels (p. 415)
- Distributed Transactions (p. 415)
- 18. Detection and Locking (p. 427)
- Oracle's Locking Mechanisms (p. 427)
- Detection (p. 431)
- Data Integrity Solutions (p. 434)
- 19. Performance (p. 437)
- A Testing Framework (p. 438)
- Auto-Commit (p. 439)
- SQL92 Token Parsing (p. 439)
- Statement Versus PreparedStatement (p. 440)
- Batching (p. 442)
- Predefined SELECT Statements (p. 444)
- CallableStatements (p. 445)
- OCI Versus Thin Drivers (p. 446)
- 20. Troubleshooting (p. 448)
- The "Gotchas" (p. 448)
- Unsupported Features (p. 452)
- Debugging (p. 454)
- Net8 Tracing (p. 458)
- Wait for the Cure (p. 461)
- Index (p. 465)
Author notes provided by Syndetics
Donald Bales is a Computer Applications Consultant specializing in the analysis, design, and programming of distributed systems; systems integration; and data warehousing. Don has over sixteen years experience with Oracle as both a developer and a database administrator, and six years experiance with Java. He is currently working on the migration of medical and industrial hygiene systems to a web environment for a major Oil company. When he is not developing applications, Donald can often be found working with horses, playing the piano, or playing the bagpipes. Donald has had several careers, and has at various times been a mechanic, a general contractor, Mr. Mom, a developer, and currently a consultant. He has a bachelor of science degree in Business from Elmhurst College in Elmhurst, Illinois. Don currently resides in Downers Grove, Illinois with his wife Diane and his daughter Kristyn. He can be contacted by email at don@donaldbales.com