ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaha_5.4.0.1/javaproc.htm

72 lines
5.1 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 stored procedures" />
<meta name="abstract" content="When using Java to write stored procedures, you can use two possible parameter passing styles." />
<meta name="description" content="When using Java to write stored procedures, you can use two possible parameter passing styles." />
<meta name="DC.Relation" scheme="URI" content="jsqlrout.htm" />
<meta name="DC.Relation" scheme="URI" content="jsqlover.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="DC.Relation" scheme="URI" content="javaparm.htm" />
<meta name="DC.Relation" scheme="URI" content="db2genpm.htm" />
<meta name="DC.Relation" scheme="URI" content="javarest.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="javaproc" />
<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 stored procedures</title>
</head>
<body id="javaproc"><a name="javaproc"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Java stored procedures</h1>
<div><p>When using Java™ to write stored procedures, you can
use two possible parameter passing styles.</p>
<p>The recommended style is the <a href="javaparm.htm">JAVA parameter
style</a>, which matches the parameter style specified in the SQLj: SQL
routines standard. The second style, <a href="db2genpm.htm">DB2GENERAL</a>,
is a parameter style defined by DB2<sup>®</sup> UDB. The parameter style also determines
the conventions that you must use when coding a Java stored procedure.</p>
<p>Additionally, you should also be aware of some <a href="javarest.htm">restrictions</a>
that are placed on Java stored procedures.</p>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="javaparm.htm">JAVA parameter style</a></strong><br />
</li>
<li class="ulchildlink"><strong><a href="db2genpm.htm">DB2GENERAL parameter style</a></strong><br />
When coding a Java stored procedure that uses the DB2GENERAL
parameter style, you must use these conventions.</li>
<li class="ulchildlink"><strong><a href="javarest.htm">Restrictions on Java stored procedures</a></strong><br />
These restrictions apply to Java stored procedures.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="jsqlrout.htm" title="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.">Java SQL routines</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="writeudf.htm" title="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.">Java user-defined scalar functions</a></div>
<div><a href="sqljjar.htm" title="Both Java stored procedures and Java UDFs can use Java classes that are stored in Java JAR files.">SQLJ procedures that manipulate JAR files</a></div>
<div><a href="udfparam.htm" title="The following table lists how SQL data types are represented in Java stored procedures and UDFs.">Parameter passing conventions for Java stored procedures and UDFs</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="jsqlover.htm" title="You can access Java programs from SQL statements and programs. This can be done using Java stored procedures and Java user-defined functions (UDFs).">Use Java SQL routines</a></div>
</div>
</div>
</body>
</html>