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

118 lines
5.2 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.

<div class="header">
<div class="subTitle">
compact2, compact3
</div>
<div class="subTitle">
javax.sql
</div>
<h2 class="title" title="Interface XAConnection">Interface XAConnection</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Superinterfaces:
</dt>
<dd>
<span><a href="../../javax/sql/PooledConnection.html" title="javax.sql中的接口">PooledConnection</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public interface <span class="typeNameLabel">XAConnection</span>
extends <a href="../../javax/sql/PooledConnection.html" title="interface in javax.sql">PooledConnection</a></pre>
<div class="block">
<span>为分布式事务提供支持的对象。</span>
<span>一个<code>XAConnection</code>对象可以在分布式事务由一个来征<code>XAResource</code>对象。</span>
<span>事务管理器,通常是中间层服务器的一部分,通过<code>XAConnection</code>对象来管理一个<code>XAResource</code>对象。</span>
<p> <span>应用程序员不直接使用此接口;</span> <span>相反,它由在中间层服务器中工作的事务管理器使用。</span> </p>
</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><a href="../../javax/transaction/xa/XAResource.html" title="interface in javax.transaction.xa">XAResource</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../javax/sql/XAConnection.html#getXAResource--">getXAResource</a></span>()</code>
<div class="block">
检索一个
<code>XAResource</code>对象,事务管理器将使用管理这个
<code>XAConnection</code>在分布式事务对象的参与。
</div> </td>
</tr>
</tbody>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.javax.sql.PooledConnection">
<!-- --> </a> <h3>Methods inherited from interface javax.sql.<a href="../../javax/sql/PooledConnection.html" title="interface in javax.sql">PooledConnection</a></h3> <code><a href="../../javax/sql/PooledConnection.html#addConnectionEventListener-javax.sql.ConnectionEventListener-">addConnectionEventListener</a>, <a href="../../javax/sql/PooledConnection.html#addStatementEventListener-javax.sql.StatementEventListener-">addStatementEventListener</a>, <a href="../../javax/sql/PooledConnection.html#close--">close</a>, <a href="../../javax/sql/PooledConnection.html#getConnection--">getConnection</a>, <a href="../../javax/sql/PooledConnection.html#removeConnectionEventListener-javax.sql.ConnectionEventListener-">removeConnectionEventListener</a>, <a href="../../javax/sql/PooledConnection.html#removeStatementEventListener-javax.sql.StatementEventListener-">removeStatementEventListener</a></code></li>
</ul> </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="getXAResource--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>getXAResource</h4> <pre><a href="../../javax/transaction/xa/XAResource.html" title="interface in javax.transaction.xa">XAResource</a> getXAResource()
throws <a href="../../java/sql/SQLException.html" title="class in java.sql">SQLException</a></pre>
<div class="block">
检索一个
<code>XAResource</code>对象,事务管理器将使用管理这个
<code>XAConnection</code>在分布式事务对象的参与。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
<code>XAResource</code>对象
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../java/sql/SQLException.html" title="class in java.sql">SQLException</a></code> - 如果发生数据库访问错误
</dd>
<dd>
<code><a href="../../java/sql/SQLFeatureNotSupportedException.html" title="class in java.sql">SQLFeatureNotSupportedException</a></code> - 如果JDBC驱动程序不支持此方法
</dd>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
1.4
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>