⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oracle.jdbc.xa.oraclexaresource.html

📁 Oracle JDBC 的javaDoc
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><!--NewPage--><html><head><!-- Generated by javadoc on Thu Dec 02 03:30:11 PST 1999 --><title>  Class oracle.jdbc.xa.OracleXAResource</title></head><body><a name="_top_"></a><pre><a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-oracle.jdbc.xa.html">This Package</a>  <a href="oracle.jdbc.xa.OracleXAException.html#_top_">Previous</a>  <a href="oracle.jdbc.xa.OracleXid.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre><hr><h1>  Class oracle.jdbc.xa.OracleXAResource</h1><pre>java.lang.Object   |   +----oracle.jdbc.xa.OracleXAResource</pre><hr><dl>  <dt> public abstract class <b>OracleXAResource</b>  <dt> extends Object</dl><hr><a name="index"></a><h2>  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index"></h2><dl>  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#DEFAULT_XA_TIMEOUT"><b>DEFAULT_XA_TIMEOUT</b></a>  <dd>   <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#TMENDRSCAN"><b>TMENDRSCAN</b></a>  <dd>   <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#TMFAIL"><b>TMFAIL</b></a>  <dd>   <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#TMJOIN"><b>TMJOIN</b></a>  <dd>   <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#TMNOFLAGS"><b>TMNOFLAGS</b></a>  <dd>   <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#TMNOMIGRATE"><b>TMNOMIGRATE</b></a>  <dd>   <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#TMONEPHASE"><b>TMONEPHASE</b></a>  <dd>   <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#TMRESUME"><b>TMRESUME</b></a>  <dd>   <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#TMSTARTRSCAN"><b>TMSTARTRSCAN</b></a>  <dd>   <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#TMSUCCESS"><b>TMSUCCESS</b></a>  <dd>   <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#TMSUSPEND"><b>TMSUSPEND</b></a>  <dd>   <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#XA_OK"><b>XA_OK</b></a>  <dd> </dl><h2>  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index"></h2><dl>  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#OracleXAResource()"><b>OracleXAResource</b></a>()  <dd>   <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#OracleXAResource(java.sql.Connection)"><b>OracleXAResource</b></a>(Connection)  <dd> </dl><h2>  <img src="images/method-index.gif" width=207 height=38 alt="Method Index"></h2><dl>  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#commit(javax.transaction.xa.Xid, boolean)"><b>commit</b></a>(Xid, boolean)  <dd>   <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#end(javax.transaction.xa.Xid, int)"><b>end</b></a>(Xid, int)  <dd>   <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#forget(javax.transaction.xa.Xid)"><b>forget</b></a>(Xid)  <dd>   <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#getTransactionTimeout()"><b>getTransactionTimeout</b></a>()  <dd> Obtain the current transaction timeout value set for this XAResourceinstance.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#isSameRM(javax.transaction.xa.XAResource)"><b>isSameRM</b></a>(XAResource)  <dd> This method is called to determine if the resource manager instance represented by the target object is the same as the resouce managerinstance represented by the parameter xares.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#prepare(javax.transaction.xa.Xid)"><b>prepare</b></a>(Xid)  <dd>   <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#recover(int)"><b>recover</b></a>(int)  <dd> Obtain a list of prepared transaction branches from a resource manager.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#recover(int, int)"><b>recover</b></a>(int, int)  <dd>   <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#rollback(javax.transaction.xa.Xid)"><b>rollback</b></a>(Xid)  <dd>   <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#setTransactionTimeout(int)"><b>setTransactionTimeout</b></a>(int)  <dd> Set the current transaction timeout value for this XAResource instance.  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">	<a href="#start(javax.transaction.xa.Xid, int)"><b>start</b></a>(Xid, int)  <dd> </dl><a name="variables"></a><h2>  <img src="images/variables.gif" width=153 height=38 alt="Variables"></h2><a name="XA_OK"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>XA_OK</b><pre> public static final int XA_OK</pre><a name="DEFAULT_XA_TIMEOUT"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>DEFAULT_XA_TIMEOUT</b><pre> public static final short DEFAULT_XA_TIMEOUT</pre><a name="TMNOFLAGS"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>TMNOFLAGS</b><pre> public static final int TMNOFLAGS</pre><a name="TMNOMIGRATE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>TMNOMIGRATE</b><pre> public static final int TMNOMIGRATE</pre><a name="TMENDRSCAN"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>TMENDRSCAN</b><pre> public static final int TMENDRSCAN</pre><a name="TMFAIL"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>TMFAIL</b><pre> public static final int TMFAIL</pre><a name="TMJOIN"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>TMJOIN</b><pre> public static final int TMJOIN</pre><a name="TMONEPHASE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>TMONEPHASE</b><pre> public static final int TMONEPHASE</pre><a name="TMRESUME"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>TMRESUME</b><pre> public static final int TMRESUME</pre><a name="TMSTARTRSCAN"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>TMSTARTRSCAN</b><pre> public static final int TMSTARTRSCAN</pre><a name="TMSUCCESS"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>TMSUCCESS</b><pre> public static final int TMSUCCESS</pre><a name="TMSUSPEND"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>TMSUSPEND</b><pre> public static final int TMSUSPEND</pre><a name="constructors"></a><h2>  <img src="images/constructors.gif" width=231 height=38 alt="Constructors"></h2><a name="OracleXAResource"></a><a name="OracleXAResource()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>OracleXAResource</b><pre> public OracleXAResource()</pre><a name="OracleXAResource(java.sql.Connection)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>OracleXAResource</b><pre> public OracleXAResource(Connection pm_conn) throws XAException</pre><a name="methods"></a><h2>  <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="start(javax.transaction.xa.Xid, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="start"><b>start</b></a><pre> public abstract void start(Xid xid,                            int flag) throws XAException</pre><a name="end(javax.transaction.xa.Xid, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="end"><b>end</b></a><pre> public abstract void end(Xid xid,                          int flag) throws XAException</pre><a name="commit(javax.transaction.xa.Xid, boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="commit"><b>commit</b></a><pre> public abstract void commit(Xid xid,                             boolean onePhase) throws XAException</pre><a name="prepare(javax.transaction.xa.Xid)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="prepare"><b>prepare</b></a><pre> public abstract int prepare(Xid xid) throws XAException</pre><a name="forget(javax.transaction.xa.Xid)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="forget"><b>forget</b></a><pre> public abstract void forget(Xid xid) throws XAException</pre><a name="recover(int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="recover"><b>recover</b></a><pre> public Xid[] recover(int maxcount,                      int flag) throws XAException</pre><a name="rollback(javax.transaction.xa.Xid)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="rollback"><b>rollback</b></a><pre> public abstract void rollback(Xid xid) throws XAException</pre><a name="recover(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="recover"><b>recover</b></a><pre> public Xid[] recover(int flag) throws XAException</pre><dl>  <dd> Obtain a list of prepared transaction branches from a resource manager. The transaction manager calls this method during recovery to obtain the list of transaction branches that are currently in prepared or heuristically completed states.<p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> flag - One of TMSTARTRSCAN, TMENDRSCAN, TMNOFLAGS. TMNOFLAGSmust be used when no other flags are set in flags.    <dt> <b>Returns:</b>    <dd> The resource manager returns zero or more XIDs for thetransaction branches that are currently in a prepared or heuristically completed state. If an error occurs during the operation, the resource manager should raise the appropriate XAException.    <dt> <b>Throws:</b> XAException    <dd> An error has occurred. Possible values areXAER_RMERR, XAER_RMFAIL, XAER_INVAL, and XAER_PROTO.  </dl></dd></dl><a name="getTransactionTimeout()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getTransactionTimeout"><b>getTransactionTimeout</b></a><pre> public int getTransactionTimeout() throws XAException</pre><dl>  <dd> Obtain the current transaction timeout value set for this XAResourceinstance. If XAResource.setTransactionTimeout was not use prior toinvoking this method, the return value is the default timeout set fothe resource manager; otherwise, the value used in the previoussetTransactionTimeout call is returned. <p><p>  <dd><dl>    <dt> <b>Returns:</b>    <dd> the transaction timeout value in seconds.    <dt> <b>Throws:</b> XAException    <dd> - An error has occurred. Possible exceptionvalues are XAER_RMERR, XAER_RMFAIL.  </dl></dd></dl><a name="isSameRM(javax.transaction.xa.XAResource)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="isSameRM"><b>isSameRM</b></a><pre> public boolean isSameRM(XAResource xares) throws XAException</pre><dl>  <dd> This method is called to determine if the resource manager instance represented by the target object is the same as the resouce managerinstance represented by the parameter xares.<p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> xares - - An XAResource object whose resource manager instanceis to be compared with the resource manager instanceof the target object.    <dt> <b>Returns:</b>    <dd> true if it's the same RM instance; otherwise false.    <dt> <b>Throws:</b> XAException    <dd> - An error has occurred. Possible exceptionvalues are XAER_RMERR, XAER_RMFAIL.  </dl></dd></dl><a name="setTransactionTimeout(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setTransactionTimeout"><b>setTransactionTimeout</b></a><pre> public boolean setTransactionTimeout(int seconds) throws XAException</pre><dl>  <dd> Set the current transaction timeout value for this XAResource instance. Once set, this timeout value is effective until setTransactionTimeout isinvoked again with a different value. To reset the timeout value to thedefault value used by the resource manager, set the value to zero. If thetimeout operation is performed successfully, the method returns true;otherwise false. If a resource manager does not support transactiontimeout value to be set explicitly, this method returns false.<p><p>  <dd><dl>    <dt> <b>Parameters:</b>    <dd> the - - transaction timeout value in seconds.    <dt> <b>Returns:</b>    <dd> s  true if transaction timeout value is set successfully;otherwise false.    <dt> <b>Throws:</b> XAException    <dd> - An error has occurred. Possible exceptionvalues are XAER_RMERR, XAER_RMFAIL, or XAER_INVAL.  </dl></dd></dl><hr><pre><a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-oracle.jdbc.xa.html">This Package</a>  <a href="oracle.jdbc.xa.OracleXAException.html#_top_">Previous</a>  <a href="oracle.jdbc.xa.OracleXid.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -