71 lines
5.0 KiB
HTML
71 lines
5.0 KiB
HTML
<?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="concept" />
|
|
<meta name="DC.Title" content="Java SQL routines" />
|
|
<meta name="abstract" content="Your iSeries server provides the ability to access Java programs from SQL statements and programs. This can be done using Java stored procedures and Java user-defined functions (UDFs). The iSeries server supports both the DB2 and SQLJ conventions for calling Java stored procedures and Java UDFs. Both Java stored procedures and Java UDFs can use Java classes that are stored in JAR files. The iSeries server uses stored procedures defined by the SQLJ Part 1 standard to register JAR files with the database." />
|
|
<meta name="description" content="Your iSeries server provides the ability to access Java programs from SQL statements and programs. This can be done using Java stored procedures and Java user-defined functions (UDFs). The iSeries server supports both the DB2 and SQLJ conventions for calling Java stored procedures and Java UDFs. Both Java stored procedures and Java UDFs can use Java classes that are stored in JAR files. The iSeries server uses stored procedures defined by the SQLJ Part 1 standard to register JAR files with the database." />
|
|
<meta name="DC.Relation" scheme="URI" content="dbconn.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="jsqlover.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="javaproc.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="writeudf.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="sqljjar.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="udfparam.htm" />
|
|
<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="jsqlrout" />
|
|
<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>Java SQL routines</title>
|
|
</head>
|
|
<body id="jsqlrout"><a name="jsqlrout"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Java SQL routines</h1>
|
|
<div><p>Your iSeries™ server
|
|
provides the ability to access Java™ programs from SQL statements and programs.
|
|
This can be done using Java stored procedures and Java user-defined
|
|
functions (UDFs). The iSeries server supports both the DB2<sup>®</sup> and SQLJ conventions
|
|
for calling Java stored procedures and Java UDFs. Both Java stored procedures and Java UDFs
|
|
can use Java classes that are stored in JAR files. The iSeries server
|
|
uses stored procedures defined by the <em>SQLJ Part 1</em> standard to register
|
|
JAR files with the database.</p>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="jsqlover.htm">Use Java SQL routines</a></strong><br />
|
|
You can access Java programs from SQL statements and programs.
|
|
This can be done using Java stored procedures and Java user-defined
|
|
functions (UDFs).</li>
|
|
<li class="ulchildlink"><strong><a href="javaproc.htm">Java stored procedures</a></strong><br />
|
|
When using Java to write stored procedures, you can
|
|
use two possible parameter passing styles.</li>
|
|
<li class="ulchildlink"><strong><a href="writeudf.htm">Java user-defined scalar functions</a></strong><br />
|
|
A Java scalar function returns one value from a Java program
|
|
to the database. For example, a scalar function could be created that returns
|
|
the sum of two numbers.</li>
|
|
<li class="ulchildlink"><strong><a href="sqljjar.htm">SQLJ procedures that manipulate JAR files</a></strong><br />
|
|
Both Java stored procedures and Java UDFs can use Java classes
|
|
that are stored in Java JAR files. </li>
|
|
<li class="ulchildlink"><strong><a href="udfparam.htm">Parameter passing conventions for Java stored procedures and UDFs</a></strong><br />
|
|
The following table lists how SQL data types are represented in Java stored
|
|
procedures and UDFs.</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dbconn.htm" title="With the IBM Developer Kit for Java, your Java programs can access your database files in three ways.">Database access with the IBM Developer Kit for Java</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |