Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-testing > by-pkgid > 2c50825dd66d0497b96a67f7fab2ee84 > files > 5138

openoffice.org64-devel-doc-2.4.1.10-1mdv2008.1.x86_64.rpm

<html>
<head>
<title>Service CallableStatement</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../idl.css">
</head>
<body>
<div id="adc-idlref">

<a name="_top_"> </a><table class="navimain" border="0" cellpadding="3">
<tr>
<td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td>
<td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td>
<td class="navimain"><a href="CallableStatement-xref.html" class="navimain">Use</a></td>
<td class="navimainnone">Devguide</td>
<td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td>
</tr>
</table>
<table class="navisub" border="0" cellpadding="0">
<tr>
<td class="navisub"><a href="#IncludedServices" class="navisub">Included Services</a></td>
<td class="navisub"><a href="#ExportedInterfaces" class="navisub">Exported Interfaces</a></td>
<td class="navisub">Properties' Summary</td>
<td class="navisub">Properties' Details</td>
</tr>
</table>
<hr>
<table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;">
<tr>
<td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">sdbc</a> :: </p>
</td>
</tr>
<tr>
<td class="title">service CallableStatement</td>
</tr>
<tr>
<td><dl>
<dt><b>Description</b></dt>
<dd>is used to execute SQL stored procedures.
 
 
 </dd>
<dd><p>
 SDBC provides a stored procedure SQL escape that allows stored procedures
 to be called in a standard way for all RDBMSs. This escape syntax has one
 form that includes a result parameter and one that does not. If used, the
 result parameter must be registered as an OUT parameter. The other parameters
 can be used for input, output, or both. Parameters are referred to sequentially,
 by number. The first parameter is 1.
 </p>
 <p>
 <code>{?=call&amp;lt;procedure-name&amp;gt;[&amp;lt;arg1&amp;gt;,&amp;lt;arg2&amp;gt;,...]}<br/>{call&amp;lt;procedure-name&amp;gt;[&amp;lt;arg1&amp;gt;,&amp;lt;arg2&amp;gt;,...]}
 </code>
 </p>
 <p>
 IN parameter values are set using the set methods inherited from
 <a href="PreparedStatement.html">PreparedStatement</a>
 . The type of all
 OUT parameters must be registered prior to executing the stored procedure;
 their values are retrieved after execution via the 
 <code>get</code>
 methods
 provided by the 
 <a href="XRow.html">XRow</a>
 .
 </p>
 <p>
 A 
 <code>CallableStatement</code>
 can return one
 <a href="XResultSet.html">XResultSet</a>
 or multiple
 <a href="ResultSet.html">ResultSet</a>
 objects. Multiple 
 <code>ResultSet</code>
 objects are
 handled using operations inherited from
 <a href="XPreparedStatement.html">XPreparedStatement</a>
 .
 </p>
 <p>
 For maximum portability, a call's 
 <a href="ResultSet.html">ResultSet</a>
 objects and
 update counts should be processed prior to getting the values of output
 parameters.
 </p>
</dd>
</dl>
</td>
</tr>
</table>
<hr>
<a name="IncludedServices"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Included Services</td>
</tr>
<tr>
<td class="imsum_left"><a href="PreparedStatement.html">PreparedStatement</a></td>
<td class="imsum_right"><dl>
<dt>(referenced entity's summary:)</dt>
<dd>represents a precompiled SQL statement. 
 </dd>
</dl>
</td>
</tr>
</table>
<a name="ExportedInterfaces"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Exported Interfaces</td>
</tr>
<tr>
<td class="imsum_left"><a href="XRow.html">XRow</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>is used for retrieve the values of OUT parameters.
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left"><a href="XOutParameters.html">XOutParameters</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>is used to declare parameters as OUT parameters.
 </dd>
</dl>
</td>
</tr>
</table>
<br>&nbsp;<a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright &copy; 2008 Sun Microsystems, Inc.</p>

</div> <!-- id="adc-idlref" -->
</body>

</html>