uTools-Manuals/docs/java/javax/sql/RowSetReader.html

107 lines
4.8 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
compact2, compact3
</div>
<div class="subTitle">
javax.sql
</div>
<h2 class="title" title="Interface RowSetReader">Interface RowSetReader</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Known Subinterfaces:
</dt>
<dd>
<span><a href="../../javax/sql/rowset/spi/XmlReader.html" title="javax.sql.rowset.spi中的接口">XmlReader</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public interface <span class="typeNameLabel">RowSetReader</span></pre>
<div class="block">
<span>断开连接的<code>RowSet</code>对象调用的工具将自己填充数据行。</span>
<span>读取器(一个对象实现<code>RowSetReader</code>接口)可以与被注册<code>RowSet</code>支持读/写器模式对象。</span>
<span><code>RowSet</code>对象的<code>execute</code>方法被调用时,它又调用读者的<code>readData</code>方法。</span>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
1.4
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t3"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../javax/sql/RowSetReader.html#readData-javax.sql.RowSetInternal-">readData</a></span>(<a href="../../javax/sql/RowSetInternal.html" title="interface in javax.sql">RowSetInternal</a> caller)</code>
<div class="block">
读取调用
<code>RowSet</code>对象的新内容。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="readData-javax.sql.RowSetInternal-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>readData</h4> <pre>void readData(<a href="../../javax/sql/RowSetInternal.html" title="interface in javax.sql">RowSetInternal</a> caller)
throws <a href="../../java/sql/SQLException.html" title="class in java.sql">SQLException</a></pre>
<div class="block">
<span>读取调用<code>RowSet</code>对象的新内容。</span>
<span>为了调用此方法,一个<code>RowSet</code>对象必须已经实现了<code>RowSetInternal</code>接口,并将此<code>RowSetReader</code>对象注册为其读卡器。</span>
<span><code>readData</code>方法在内部被调用的<code>RowSet.execute</code>方法用于支持读/写器模式行集。</span>
<p> <span><code>readData</code>方法向调用者添加行。</span> <span>它可以以各种各样的方式实现,甚至可以使用来自非关系数据源的行填充调用者。</span> <span>一般来说,读者可以调用任何行集的方法,但有一个例外。</span> <span>调用方法<code>execute</code>将导致<code>SQLException</code>被抛出,因为<code>execute</code>可能不会被递归调用。</span> <span>此外,当读者调用<code>RowSet</code>方法时,不会收到听众;</span> <span>也就是说,没有<code>RowSetEvent</code>对象,并且没有<code>RowSetListener</code>方法被调用。</span> <span>这是真的,因为听众已经通过方法<code>execute</code>被通知。</span> </p>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>caller</code> -所述
<code>RowSet</code>对象1其已经实现了
<code>RowSetInternal</code>接口2与此读出器被注册3
<code>execute</code>方法调用此读者
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../java/sql/SQLException.html" title="class in java.sql">SQLException</a></code> - if a database access error occurs or this method invokes the
<code>RowSet.execute</code> method
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>