Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword or section
Like this

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
Java Database Programming With Jdbc

Java Database Programming With Jdbc



|Views: 1,508|Likes:
Published by Valentino Vavayosa

More info:

Published by: Valentino Vavayosa on Jan 03, 2009
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less


Java Database Programming withJDBC
by Pratik Patel 
 Coriolis, The Coriolis Group
Welcome to the future of database connectivity. The Java Database Connectivity ( JDBC ) specification is a new basisfor developers to interface with data sources. The structure of the JDBC is designed to allow developers to program for astandard interface, and let the low-level JDBC driver for different databases deal with the connection and querying of thedatabases; hence, the developer does not need to worry about dealing with different SQL flavors for each database. TheJDBC is also very flexible—a developer doesn’t necessarily lose features specific to the target database. Best of all, theJDBC is based on the Java language!
Getting Software
The software that you’ll need to get started with the JDBC is readily available on the Web. The JDBC drivers that youwill need to connect to your databases are currently available for most popular databases from a variety of softwarevendors. The basic package you’ll need is the JDBC API, which consists of the core classes of the JDBC. If you don’talready have a Java development kit, such as Javasoft’s JDK, you’ll need that as well. At the time this manuscript wasfinished, the examples in the book were tested with the JavaSoft JDK, Symantec Cafe, Microsoft J++, and Borland’s C++ 5.0 with Java support. You can get the JavaSoft JDK athttp://www.javasoft.com.The JDBC API, and the ODBC driver for JDBC (that’s right, you can use the JDBC with your current ODBC drivers!)commonly referred to as the JDBC-ODBC bridge can be downloaded at the JDBC Web site athttp://splash.javasoft.com/  jdbc. You’ll also find the documentation for the JDBC API at this Web site. If you want to see some of the originalJDBC specification, this can be downloaded from the JDBC Web site as well.
Overview of Chapters
Chapter 1,
 JDBC: Databases, The Java Way!,
begins with a high-level introduction to the JDBC. You’ll see howmodular JDBC drivers fit into the development cycle, as well as where ODBC fits into the JDBC’s overall structure.Chapter 2,
SQL 101: An Introduction To SQL
, takes a quick stroll through SQL, the language of databases. This chapteris a primer on SQL, and is useful if you need to brush up on your data-speak. It provides a basis of reference for some of the SQL queries performed in the JDBC programs in the book.Chapter 3,
Using JDBC Drivers
, shows you how to install JDBC drivers, as well as how to handle the installation of theJDBC API base classes. A “quick start” section also prepares you for what’s ahead by giving you a simple, but completeJDBC program.Chapter 4,
The Interactive SQL Query Applet 
, takes you head first into the JDBC by presenting a complete Java appletthat uses the JDBC. The applet allows a user to enter SQL queries and run them against a database, and to show theresults.Chapter 5,
 Accessing ODBC Services Using JDBC 
, takes a look at the JDBC-ODBC bridge in detail. Limitations of thebridge, as well as a complete listing of the features of ODBC available in the JDBC, are presented.
Chapter 6,
SQL Datatypes In Java And ORM 
, shows you how to map SQL datatypes into Java, and provides a discussionof some of the special classes available in the JDBC API that facilitate the exchange of data between your Java programand the database.Chapter 7,
Working With Query Results
, provides a pathway for using results fetched from a SQL query. The completecycle of querying a database, formatting the results, and displaying or printing them in nice graphs is presented withcomplete source code. A bar graph and pie chart are dynamically created in an applet using data from a query.Chapter 8,
The Multimedia JDBC Application: Icon Store,
continues the discussion in Chapter 7 by expanding into therealm of multimedia. Streams that contain binary data, such as images, are the focus of this chapter. We’ll show you howto store and retrieve binary data from a database, using the methods available in the JDBC.Chapter 9,
 Java and Database Security
, reflects on the security consideration you need to ponder before you put yourJDBC programs into production. The issue of “applet trusting,” and more, is covered in this chapter.Chapter 10,
Writing Database Drivers
, takes you into the heart of the JDBC with a thorough discussion of theprogramming details of JDBC drivers. You’ll even see an actual JDBC driver produced, as our SimpleText JDBC driveris hammered out during the chapter. The full source code for this driver is presented in Appendix B, while the intricaciesof writing a JDBC driver are explained in detail in this chapter.Chapter 11,
 Internet Database Issues: Middleware
, details three-tier database systems. A three-tier system is developedin this chapter to give you an idea of the functionality possible with these types of “indirect” database access. The fullsource code for the developed application server and the client are presented, as well as a sample applet that uses theclient to query and obtain results from a database.Chapter 12,
, provides you with a reference for all of the methods, variables, classes, exceptions, andinterfaces that are the JDBC.Table of Contents

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
suntararaajan liked this
Muhammad Yusuf liked this
mishrasrahul liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->