ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahh_5.4.0.1/jdbc.htm

137 lines
7.6 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="JDBC classes" />
<meta name="abstract" content="JDBC is an application programming interface (API) included in the Java platform that enables Java programs to connect to a wide range of databases." />
<meta name="description" content="JDBC is an application programming interface (API) included in the Java platform that enables Java programs to connect to a wide range of databases." />
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="jdbc" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>JDBC classes</title>
</head>
<body id="jdbc"><a name="jdbc"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">JDBC classes</h1>
<div><p>JDBC is an application programming interface (API) included in
the Java™ platform
that enables Java programs to connect to a wide range of databases.</p>
<div class="section"><p>For more information about JDBC and about IBM<sup>®</sup> Toolbox for Java support for JDBC, including ongoing
improvements, JDBC properties, and unsupported SQL types, see the following
page:</p>
<blockquote><a href="jdbc2.htm">JDBC</a></blockquote>
</div>
<div class="section"><h4 class="sectiontitle">Supported interfaces</h4><p>The following table lists the
supported JDBC interfaces and the API required to use them:</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="border" border="1" rules="all"><thead align="left"><tr class="tablemainheaderbar"><th valign="top" width="50%" id="d0e41">Supported JDBC interface</th>
<th valign="top" width="50%" id="d0e43">API required</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="50%" headers="d0e41 "><a href="jdbblob.htm#jdbblob">Blob</a> provides access to binary
large objects (BLOBs)</td>
<td valign="top" width="50%" headers="d0e43 ">JDBC 2.1 core</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><a href="jdbccst.htm#jdbccst">CallableStatement</a> runs SQL
stored procedures</td>
<td valign="top" width="50%" headers="d0e43 ">JDK 1.1</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><a href="jdbclob.htm#jdbclob">Clob</a> provides access to character
large objects (CLOBs)</td>
<td valign="top" width="50%" headers="d0e43 ">JDBC 2.1 core</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><a href="jdbccon.htm#jdbccon">Connection</a> represents a connection
to a specific database</td>
<td valign="top" width="50%" headers="d0e43 ">JDK 1.1</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><a href="jdbcconnpool.htm#jdbcconnpool">ConnectionPool</a>
represents a pool of Connection objects.</td>
<td valign="top" width="50%" headers="d0e43 ">JDBC 2.0 Optional Package</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><p><a href="javadoc/com/ibm/as400/access/AS400JDBCConnectionPoolDataSource.html"> ConnectionPoolDataSource</a> represents a factory for pooled
AS400JDBCPooledConnection objects</p>
</td>
<td valign="top" width="50%" headers="d0e43 ">JDBC 2.0 Optional Package</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><a href="jdbcdbmd.htm#jdbcdbmd">DatabaseMetaData</a> provides
information about the database as a whole.</td>
<td valign="top" width="50%" headers="d0e43 ">JDK 1.1</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><a href="jdbcdatasource.htm#jdbcdatasource">DataSource</a> represents
a factory for database connections.</td>
<td valign="top" width="50%" headers="d0e43 "><p>JDBC 2.0 Optional Package</p>
</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><a href="jdbcdrvr.htm#jdbcdrvr">Driver</a> creates the connection
and returns information about the driver version.</td>
<td valign="top" width="50%" headers="d0e43 ">JDK 1.1</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><a href="jdbcparmmetadata.htm#jdbcparmmetadata">ParameterMetaData</a>
provides the ability to get information about the types and properties of
the parameters in a PreparedStatement object</td>
<td valign="top" width="50%" headers="d0e43 ">JDBC 3.0 API</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><a href="jdbcpst.htm#jdbcpst">PreparedStatement</a> runs compiled
SQL statements</td>
<td valign="top" width="50%" headers="d0e43 ">JDK 1.1</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><a href="jdbcrs.htm#jdbcrs">ResultSet</a> provides access to
a table of data that is generated by running a SQL query or DatabaseMetaData
catalog method</td>
<td valign="top" width="50%" headers="d0e43 ">JDK 1.1</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><p> <a href="jdbcrs.htm#jdbcrs__resultsetmetadata">ResultSetMetaData</a> provides
information about a specific ResultSet</p>
</td>
<td valign="top" width="50%" headers="d0e43 ">JDK 1.1</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><p><a href="jdbcrowset.htm#jdbcrowset">RowSet</a> is a connected
row set that encapsulates a ResultSet</p>
</td>
<td valign="top" width="50%" headers="d0e43 ">JDBC 2.0 Optional Package</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><a href="jdbcsavepoint.htm#jdbcsavepoint">Savepoint</a> provides
finer grained control within transactions</td>
<td valign="top" width="50%" headers="d0e43 ">JDBC 3.0 API</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><a href="jdbcst.htm#jdbcst">Statement</a> runs SQL statements
and obtains the results</td>
<td valign="top" width="50%" headers="d0e43 ">JDK 1.1</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><p><a href="jdbcxa.htm#jdbcxa">XAConnection</a> is a database
connection which participates in global XA transactions</p>
</td>
<td valign="top" width="50%" headers="d0e43 ">JDBC 2.0 Optional Package</td>
</tr>
<tr><td valign="top" width="50%" headers="d0e41 "><a href="jdbcxa.htm#jdbcxa">XAResource</a> is resource manager
for use in XA transactions</td>
<td valign="top" width="50%" headers="d0e43 ">JDBC 2.0 Optional Package</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="jdbc__jdbcexamples"><a name="jdbc__jdbcexamples"><!-- --></a><h4 class="sectiontitle">Examples</h4><p>The following examples
illustrate ways to use the IBM Toolbox for Java JDBC driver.</p>
<ul><li><a href="jdbcpopulateexample.htm#jdbcpopulateexample">Example: Using JDBCPopulate to create and populate a table</a></li>
<li><a href="jdbcqueryexample.htm#jdbcqueryexample">Example: Using JDBCQuery to query a table</a></li>
</ul>
</div>
</div>
</body>
</html>