JDBCTM Guide: Getting Started
December 6, 1996
Contents
-
1 Introduction
-
1.1 What Is JDBCTM ?
-
1.1.1 What Does JDBC Do?
-
1.1.2 JDBC Is a Low-level API and a Base for Higher-level API
-
1.1.3 JDBC and ODBC
-
1.1.4 Two-tier and Three-tier Models
-
1.1.5 SQL Conformance
-
1.2 JDBC Products
-
1.2.1 JDBC Driver Types
-
1.2.2 Obtaining JDBC Drivers
-
1.2.3 Other Products
-
2 Connection
-
2.1 Overview
-
2.1.1 Opening a Connection
-
2.1.2 URLs in General Use
-
2.1.3 JDBC URLs
-
2.1.4 The "odbc" Subprotocol
-
2.1.5 Registering Subprotocols
-
2.1.6 Sending SQL Statements
-
2.1.7 Transactions
-
2.1.8 Transaction Isolation Levels
-
3 DriverManager
-
3.1 Overview
-
3.1.1 Keeping Track of Available Drivers
-
3.1.2 Establishing a Connection
-
4 Statement
-
4.1 Statement Overview
-
4.1.1 Creating Statement objects
-
4.1.2 Executing Statement objects
-
4.1.3 Using the Method Execute
-
4.1.4 Statement Completion
-
4.1.5 SQL Escape Syntax in Statement Objects
-
5 ResultSet
-
5.1 ResultSet Overview
-
5.1.1 Rows and Cursors
-
5.1.2 Columns
-
5.1.3 Data Types and Conversions
-
5.1.4 Using Streams for Very Large Row Values
-
5.1.5 NULL Result Values
-
5.1.6 Optional or Multiple Result Sets
-
5.1.7 Using Streams for Very Large Row Values
-
5.1.8 NULL Result Values
-
5.1.9 Optional or Multiple Result Sets
-
6 PreparedStatement
-
6.1 PreparedStatement Overview
-
6.1.1 Creating PreparedStatement Objects
-
6.1.2 Passing IN Parameters
-
6.1.3 Data Type Conformance on IN Parameters
-
6.1.4 Using setObject
-
6.1.5 Sending SQL NULL as an IN parameter
-
6.1.6 Sending Very Large IN Parameters
-
7 CallableStatement
-
7.1 CallableStatement Overview
-
7.1.1 Creating a CallableStatement Object
-
7.1.2 IN and OUT Parameters
-
7.1.3 INOUT Parameters
-
7.1.4 Retrieve OUT Parameters after Results
-
7.1.5 Retrieving NULL Values as OUT Parameters
-
8 Mapping SQL and Java Types
-
8.1 Overview
-
8.2 Mapping SQL Data Types into Java
-
8.3 SQL Types
-
8.3.1 CHAR, VARCHAR, and LONGVARCHAR
-
8.3.2 DECIMAL and NUMERIC
-
8.3.3 BINARY, VARBINARY, and LONGVARBINARY
-
8.3.4 BIT
-
8.3.5 TINYINT, SMALLINT, INTEGER, and BIGINT
-
8.3.6 REAL, FLOAT, and DOUBLE
-
8.3.7 DATE, TIME, and TIMESTAMP
-
8.4 Examples of Mapping
-
8.4.1 Simple SQL Statement
-
8.4.2 SQL Statement with IN Parameters
-
8.4.3 SQL Statement with INOUT Parameters
-
8.5 Tables for Data Type Mapping
-
8.5.1 SQL Types Mapped to Java Types
-
8.5.2 Java Types Mapped to SQL Types
-
8.5.3 SQL Types Mapped to Java Object Types
-
8.5.4 JavaObject Types Mapped to SQL Types.
-
8.5.5 Conversions by setObject from Java Object Types to SQL Types.
-
8.5.6 SQL Types Retrieved by ResultSet.getXXX Methods
-
9 Sample Code
-
10 JDBC Release Notes
Contents | Prev | Next
jdbc@wombat.sun.com
or
jdbc-odbc@wombat.sun.com
Copyright © 1996 Sun Microsystems, Inc. All rights reserved.