JDBC¿ API Tutorial and Reference

by ; ;
Edition: 3rd
Format: Paperback
Pub. Date: 2003-06-11
Publisher(s): Addison-Wesley Professional
  • Free Shipping Icon

    Receive Free Shipping To The More Store!*

    *Marketplace items do not qualify for the free shipping promotion.

List Price: $69.99

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

This book provides the definitive tutorial and reference to the JDBCtrade; API, the technology that enables universal data access for the Javatrade; programming language. This new edition has been updated and expanded to cover the entire JDBC 3.0 API, including the java.sql package and the javax.sql package, the package that facilitates building server-side applications. Containing in-depth explanations that go beyond the specification, this complete resource pairs a step-by-step tutorial with a comprehensive reference to every class and interface. For those new to Java technology, the book includes an introduction to the Java programming language and to SQL. It builds on this basic knowledge to walk you through the creation of a JDBC application--from setting up a database and establishing a connection to retrieving values from result sets and using prepared statements. In addition, the authors provide many examples along the way that demonstrate how to execute common tasks. The book then turns to more advanced topics, focusing on features such as scrollable and updatable result sets, batch updates, SQL99 data types, custom mapping, savepoints, statement pooling, automatically generated keys, and more. In addition to in-depth coverage of the JDBC metadata API, the book gives you the latest information on rowsets, the technology that makes it possible to handle data sets as JavaBeanstrade; components. As an added bonus, you get a preview of the standard implementations for JdbcRowSet, CachedRowSet, WebRowSet, JoinRowSet, and FilteredRowSet objects. From Array to XADataSource, an easy-to-use alphabetical reference provides concise but complete information on each class and interface in the JDBC API. Each entry includes an overview with usage examples as well as a comprehensive explanation of the methods and fields. A chapter on mapping SQL types and types in the Java programming language, an appendix for driver writers, a summary of the new features in the JDBC 2.0 and 3.0 APIs, and a glossary complete this indispensable resource for all database programmers. The Javatrade; Series is supported, endorsed, and authored by the creators of the Java technology at Sun Microsystems, Inc. It is the official place to go for complete, expert, and definitive information on Java technology. The books in this Series provide the inside information you need to build effective, robust, and portable applications and applets. The Series is an indispensable resource for anyone targeting the Javatrade; 2 platform. 0321173848B05222003

Author Biography

Maydene Fisher, a native of San Jose, California, specializes in objectoriented languages. She has experience spanning both coasts of the United States, having documented everything from complex financial models on Wall Street to Java APIs in Silicon Valley Jon Ellis has been working with database systems for the past ten years. Currently based in Tokyo, Japan, he is now leading several Java Community Process specifications in the wireless space Jonathan Bruce, who previously worked on JNDI technology in Ireland and is now based in Santa Clara, California, has worked on the specifications for the JDBC 3.0 API, the RowSet implementations, and the JDBC API subset for use with wireless devices

Table of Contents

Acknowledgmentsp. v
Introductionp. 3
What the JDBC 3.0 API Includesp. 4
Conventions Used in This Bookp. 5
Contents of the Bookp. 8
What Is the JDBC API?p. 13
The JDBC API and the Java Platformsp. 26
Java Overviewp. 27
Relational Database Overviewp. 38
Basic Tutorialp. 49
Getting Startedp. 50
Setting Up a Databasep. 51
Establishing a Connectionp. 51
Setting Up Tablesp. 53
Getting Data from a Tablep. 59
Retrieving Values from Result Setsp. 61
Updating Tablesp. 64
Milestone: The Basics of JDBCp. 66
Using Prepared Statementsp. 66
Using Joinsp. 71
Using Transactionsp. 73
Stored Proceduresp. 77
Creating Complete JDBC Applicationsp. 79
Running the Sample Applicationsp. 85
Sample Codep. 86
Creating an Applet from an Applicationp. 99
Stored Procedures Using SQLJ and the JDBC APIp. 107
Advanced Tutorialp. 113
Getting Set Up to Use the JDBC 2.0 and 3.0 APIp. 114
Moving the Cursor in Scrollable Result Setsp. 116
Making Updates to Updatable Result Setsp. 121
Making Batch Updatesp. 133
SQL99 Data Typesp. 140
Using Custom Mappingp. 162
Using a DataSource Objectp. 167
JDBC 3.0 Functionalityp. 182
MetaData Tutorialp. 193
Using a ResultSetMetaData Objectp. 194
Using a DatabaseMetaData Objectp. 209
Methods Added in the JDBC 2.0 Core APIp. 225
Methods Added in the JDBC 3.0 APIp. 227
Using a ParameterMetaData Objectp. 229
Generic Applicationsp. 233
Rowset Tutorialp. 255
Types and Uses of Rowsetsp. 255
Using a Rowsetp. 257
An EJB Examplep. 266
Arrayp. 283
Array Overviewp. 283
Array Interface Definitionp. 293
Array Methodsp. 293
BatchUpdateExceptionp. 301
BatchUpdateException Overviewp. 301
BatchUpdateException Class Definitionp. 303
BatchUpdateException Constructorsp. 303
BatchUpdateException Methodsp. 307
Blobp. 309
Blob Overviewp. 309
Blob Interface Definitionp. 314
Blob Methodsp. 314
CallableStatementp. 321
CallableStatement Overviewp. 321
CallableStatement Definitionp. 331
CallableStatement Methodsp. 334
Clobp. 373
Clob Overviewp. 373
Clob Interface Definitionp. 377
Clob Methodsp. 378
Connectionp. 385
Connection Overviewp. 385
Connection Interface Definitionp. 399
Connection Methodsp. 401
Connection Fieldsp. 428
ConnectionEventp. 431
ConnectionEvent Overviewp. 431
ConnectionEvent Interface Definitionp. 432
ConnectionEvent Constructorsp. 432
ConnectionEvent Methodsp. 434
ConnectionEventListenerp. 435
ConnectionEventListener Overviewp. 435
ConnectionEventListener Interface Definitionp. 437
ConnectionEventListener Methodsp. 437
ConnectionPoolDataSourcep. 439
ConnectionPoolDataSource Overviewp. 439
ConnectionPoolDataSource Interface Definitionp. 444
ConnectionPoolDataSource Methodsp. 444
DatabaseMetaDatap. 449
DatabaseMetaData Overviewp. 449
DatabaseMetaData Interface Definitionp. 458
DatabaseMetaData Methodsp. 466
DatabaseMetaData Fieldsp. 551
DataSourcep. 565
DataSource Overviewp. 565
DataSource Interface Definitionp. 576
DataSource Methodsp. 576
DataTruncationp. 581
DataTruncation Overviewp. 581
DataTruncation Class Definitionp. 583
DataTruncation Constructorp. 583
DataTruncation Methodsp. 584
Datep. 589
Date Overviewp. 589
Date Class Definitionp. 594
Date Constructorsp. 594
Date Methodsp. 595
Distinct Typesp. 599
Distinct Types Overviewp. 599
Driverp. 603
Driver Overviewp. 603
Driver Interface Definitionp. 605
Driver Methodsp. 606
DriverManagerp. 611
DriverManager Overviewp. 611
DriverManager Class Definitionp. 614
DriverManager Methodsp. 615
DriverPropertyInfop. 623
DriverPropertyInfo Overviewp. 623
DriverPropertyInfo Class Definitionp. 624
DriverPropertyInfo Constructorp. 624
DriverPropertyInfo Fieldsp. 625
ParameterMetaDatap. 627
ParameterMetaData Overviewp. 627
ParameterMetaData Interface Definitionp. 630
ParameterMetaData Methodsp. 631
ParameterMetaData Fieldsp. 635
PooledConnectionp. 637
PooledConnection Overviewp. 637
PooledConnection Interface Definitionp. 643
PooledConnection Methodsp. 644
PreparedStatementp. 647
PreparedStatement Overviewp. 647
PreparedStatement Interface Definitionp. 655
PreparedStatement Methodsp. 657
Refp. 679
Ref Overviewp. 679
Ref Interface Definitionp. 687
Ref Methodsp. 688
ResultSetp. 691
ResultSet Overviewp. 691
ResultSet Interface Definitionp. 724
ResultSet Methodsp. 730
ResultSet Fieldsp. 778
ResultSetMetaDatap. 783
ResultSetMetaData Overviewp. 783
ResultSetMetaData Interface Definitionp. 785
ResultSetMetaData Methodsp. 786
ResultSetMetaData Fieldsp. 795
RowSetp. 797
RowSet Overviewp. 797
Standard Implementationsp. 808
RowSet Interface Definitionp. 821
RowSet Methodsp. 824
RowSet Fieldsp. 853
RowSetEventp. 855
RowSetEvent Overviewp. 855
RowSetEvent Interface Definitionp. 856
RowSetEvent Constructorp. 857
RowSetEvent Methodsp. 857
RowSetInternalp. 859
RowSetInternal Overviewp. 859
RowSetInternal Interface Definitionp. 859
RowSetInternal Methodsp. 860
RowSetListenerp. 865
RowSetListener Overviewp. 865
RowSetListener Interface Definitionp. 868
RowSetListener Methodsp. 868
RowSetMetaDatap. 871
RowSetMetaData Overviewp. 871
RowSetMetaData Interface Definitionp. 872
RowSetMetaData Methodsp. 873
RowSetMetaData Fieldsp. 880
RowSetReaderp. 881
RowSetReader Overviewp. 881
RowSetReader Interface Definitionp. 883
RowSetReader Methodsp. 883
RowSetWriterp. 885
RowSetWriter Overviewp. 885
RowSetWriter Interface Definitionp. 886
RowSetWriter Methodsp. 887
Savepointp. 889
Savepoint Overviewp. 889
Savepoint Interface Definitionp. 892
Savepoint Methodsp. 892
SQLDatap. 895
SQLData Overviewp. 895
SQLData Interface Definitionp. 904
SQLData Methodsp. 904
SQLExceptionp. 907
SQLException Overviewp. 907
SQLException Class Definitionp. 910
SQLException Constructorsp. 910
SQLException Methodsp. 912
SQLInputp. 915
SQLInput Overviewp. 915
SQLInput Interface Definitionp. 917
SQLInput Methodsp. 918
SQLOutputp. 929
SQLOutput Overviewp. 929
SQLOutput Interface Definitionp. 931
SQLOutput Methodsp. 932
SQLPermissionp. 941
SQLPermission Overviewp. 941
SQLPermission Class Definitionp. 942
SQLPermission Constructorsp. 942
SQLWarningp. 945
SQLWarningp. 945
SQLWarning Overviewp. 945
SQLWarning Class Definitionp. 947
SQLWarning Constructorsp. 947
SQLWarning Methodsp. 949
Statementp. 951
Statement Overviewp. 951
Statement Interface Definitionp. 971
Statement Methodsp. 973
Statement Fieldsp. 995
Structp. 997
Struct Overviewp. 997
Struct Interface Definitionp. 1007
Struct Methodsp. 1008
Timep. 1011
Time Overviewp. 1011
Time Class Definitionp. 1015
Time Constructorsp. 1015
Time Methodsp. 1017
Timestampp. 1021
Timestamp Overviewp. 1021
Timestamp Class Definitionp. 1025
Timestamp Constructorsp. 1025
Timestamp Methodsp. 1027
Typesp. 1033
Overview of Class Typesp. 1033
Types Class Definitionp. 1035
XAConnectionp. 1039
XAConnection Overviewp. 1039
XAConnection Interface Definitionp. 1053
XAConnection Methodsp. 1053
XADataSourcep. 1055
XADataSource Overviewp. 1055
XADataSource Interface Definitionp. 1059
XADataSource Methodsp. 1059
Mapping SQL and Java Typesp. 1065
Mapping Overviewp. 1065
Mapping SQL Types to Java Typesp. 1066
Basic JDBC Typesp. 1067
Advanced JDBC Data Typesp. 1075
JDBC Types Added in the JDBC 3.0 APIp. 1078
Examples of Mappingp. 1080
Custom Mappingp. 1083
Dynamic Data Accessp. 1084
Storing Java Objects in a Databasep. 1085
Tables for Type Mappingp. 1085
For Driver Writersp. 1097
Requirements for All Driversp. 1097
Requirements for JDBC 1.0 API Compliancep. 1099
Requirements for JDBC 2.0 API Compliancep. 1100
Requirements for JDBC 3.0 API Compliancep. 1100
API That Is Already Implementedp. 1101
Additional Requirementsp. 1102
Permitted Variantsp. 1111
Security Responsibilities of Driversp. 1112
Use SQLException for Exceptionsp. 1114
Implementation Suggestionsp. 1114
Connection and Statement Pooling Implementationsp. 1115
JDBC Test Suitep. 1116
Connectorsp. 1117
Summary of Changesp. 1121
Overview of JDBC 3.0 API Changesp. 1122
Summary of New Functionalityp. 1123
Complete List of JDBC 3.0 API Changesp. 1127
Overview of JDBC 2.0 Core API Changesp. 1132
Summary of New Functionalityp. 1133
JDBC 2.0 Core API Changesp. 1141
JDBC Optional Package Featuresp. 1150
Complete List of Optional Package APIp. 1152
Post JDBC 1.0 API Changesp. 1155
Early Design Decisionsp. 1157
Where to Send Suggestionsp. 1159
Glossaryp. 1161
Indexp. 1175
Table of Contents provided by Ingram. All Rights Reserved.

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.