... 135
ResultSetMetaData example 136
The DatabaseMetaData Interface 140
Creating DatabaseMetaData objects 141
Using DatabaseMetaData objects 141
DatabaseMetaData example 144
Summary 149
Part III: Using Java Data ... 33
Compiling and running the application 41
Troubleshooting the sample application 42
Summary 43
Chapter 4: Connecting to Databases with JDBC 44
In This Chapter...
... the methods and properties
that enable you to send commands and receive data from your database. They also define methods that help
bridge data type differences between Java and SQL data types ... “Understanding JDBC Data Types,” covers SQL and Java data type issues and their
compatibility.
The ResultSet object uses a cursor to point to rows in the result set. To acces...
... around and viewing data in a result set•
Updating data in a result set•
Retrieving data from a result set•
Handling data type issues•
In Chapter 4, “Connecting to Databases with JDBC,” and Chapter ... 1995−09−16 100
9876 543 21 John 43 51.00 1996−12−31 500
868653391 Greg 43 51.00 1996−12−31 500
12 345 6789 Jimmy 3080.00 1997−09−07 40 0
3126 549 87 Lori 2000.95 1999−01−11 30...
... with JAXP
Chapter 19: Accessing Data with Enterprise JavaBeans
203
Chapter 13: Accessing Enterprise Data with JNDI
In This Chapter
Introducing naming and directory services•
Understanding the Java ... Enterprise Data with JNDI
Chapter 14: Using Data Sources and Connection Pooling
Chapter 15: Understanding Distributed Transactions
Chapter 16: Working with JDBC Rowsets
Chapter...
... the OracleDataSource
object implements the JDBC DataSource interface and has methods for setting the connection properties.
Listing 14 2: JndiDataSource .java
package Chapter 14;
import java. sql.*;
import ...
View and update data in disconnected environments•
Take advantage of JavaBean technology, for example by using standard setter and getter methods for
configuring and retr...
... logic.
Java servlets and JavaServer Pages (JSP) are server−side Sun Java technologies used to develop
high−performance and highly scalable enterprise Web applications. Servlets and JSP are Java based, ... the getInt() method.
XRef Chapter 7, “Understanding JDBC Data Types,” provides more information about working
with SQL and Java data types.
Traversing data in a rowset
B...
... to establish a database connection.
Listing 17−3: DatabaseBean .java
// Java Data Access: JDBC, JNDI, and JAXP
// Chapter 17 − Web Applications and Data Access
// DatabaseBean .java
package Chapter18;
import ... the JAXP 1.1 as an optional package. The JAXP 1.1 will be included in the Java 2
Platform Standard Edition (J2SE) 1 .4 and in the Java 2 Platform Enterprise...