interaction.html
来自「SUN公司官方J2EE中文帮助文档 应该不错 有兴趣的下来看看 html格式的」· HTML 代码 · 共 344 行 · 第 1/2 页
HTML
344 行
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="close()"><!-- --></A><H3>
close</H3>
<PRE>
public void <B>close</B>()
throws <A HREF="../../../javax/resource/ResourceException.html">ResourceException</A></PRE>
<DL>
<DD>Closes the current Interaction and release all the resources
held for this instance by the resource adapter. The close of an
Interaction instance does not close the associated Connection
instance. It is recommended that Interaction instances be
closed explicitly to free any held resources.<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/resource/ResourceException.html">ResourceException</A></CODE> - Failed to close the Interaction
instance. Invoking close on an
already closed Interaction should
also throw this exception.</DL>
</DD>
</DL>
<HR>
<A NAME="getConnection()"><!-- --></A><H3>
getConnection</H3>
<PRE>
public <A HREF="../../../javax/resource/cci/Connection.html">Connection</A> <B>getConnection</B>()</PRE>
<DL>
<DD>Gets the Connection associated with the Interaction.<DD><DL>
<DT><B>Returns:</B><DD>Connection instance associated with the Interaction</DL>
</DD>
</DL>
<HR>
<A NAME="execute(javax.resource.cci.InteractionSpec, javax.resource.cci.Record, javax.resource.cci.Record)"><!-- --></A><H3>
execute</H3>
<PRE>
public boolean <B>execute</B>(<A HREF="../../../javax/resource/cci/InteractionSpec.html">InteractionSpec</A> ispec,
<A HREF="../../../javax/resource/cci/Record.html">Record</A> input,
<A HREF="../../../javax/resource/cci/Record.html">Record</A> output)
throws <A HREF="../../../javax/resource/ResourceException.html">ResourceException</A></PRE>
<DL>
<DD>Executes an interaction represented by the InteractionSpec.
This form of invocation takes an input Record and updates
the output Record.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ispec</CODE> - InteractionSpec representing a target EIS
data/function module<DD><CODE>input</CODE> - Input Record<DD><CODE>output</CODE> - Output Record<DT><B>Returns:</B><DD>true if execution of the EIS function has been
successful and output Record has been updated; false
otherwise<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/resource/ResourceException.html">ResourceException</A></CODE> - Exception if execute operation
fails. Examples of error cases
are:
<UL>
<LI> Resource adapter internal, EIS-specific or
communication error
<LI> Invalid specification of an InteractionSpec,
input or output record structure
<LI> Errors in use of input or output Record
<LI> Invalid connection associated with this
Interaction
</UL><DD><CODE><A HREF="../../../javax/resource/NotSupportedException.html">NotSupportedException</A></CODE> - Operation not supported</DL>
</DD>
</DL>
<HR>
<A NAME="execute(javax.resource.cci.InteractionSpec, javax.resource.cci.Record)"><!-- --></A><H3>
execute</H3>
<PRE>
public <A HREF="../../../javax/resource/cci/Record.html">Record</A> <B>execute</B>(<A HREF="../../../javax/resource/cci/InteractionSpec.html">InteractionSpec</A> ispec,
<A HREF="../../../javax/resource/cci/Record.html">Record</A> input)
throws <A HREF="../../../javax/resource/ResourceException.html">ResourceException</A></PRE>
<DL>
<DD>Executes an interaction represented by the InteractionSpec.
This form of invocation takes an input Record and returns an
output Record if the execution of the Interaction has been
successfull.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ispec</CODE> - InteractionSpec representing a target EIS
data/function module<DD><CODE>input</CODE> - Input Record<DT><B>Returns:</B><DD>output Record if execution of the EIS function has been
successful; null otherwise<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/resource/ResourceException.html">ResourceException</A></CODE> - Exception if execute operation
fails. Examples of error cases
are:
<UL>
<LI> Resource adapter internal, EIS-specific or
communication error
<LI> Invalid specification of an InteractionSpec
or input record structure
<LI> Errors in use of input Record or creation
of an output Record
<LI> Invalid connection associated with this
Interaction
</UL><DD><CODE><A HREF="../../../javax/resource/NotSupportedException.html">NotSupportedException</A></CODE> - Operation not supported</DL>
</DD>
</DL>
<HR>
<A NAME="getWarnings()"><!-- --></A><H3>
getWarnings</H3>
<PRE>
public <A HREF="../../../javax/resource/cci/ResourceWarning.html">ResourceWarning</A> <B>getWarnings</B>()
throws <A HREF="../../../javax/resource/ResourceException.html">ResourceException</A></PRE>
<DL>
<DD>Gets the first ResourceWarning from the chain of warnings
associated with this Interaction instance.<DD><DL>
<DT><B>Returns:</B><DD>ResourceWarning at top of the warning chain<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/resource/ResourceException.html">ResourceException</A></CODE> - Failed to get ResourceWarnings
associated with Interaction</DL>
</DD>
</DL>
<HR>
<A NAME="clearWarnings()"><!-- --></A><H3>
clearWarnings</H3>
<PRE>
public void <B>clearWarnings</B>()
throws <A HREF="../../../javax/resource/ResourceException.html">ResourceException</A></PRE>
<DL>
<DD>Clears all the warning reported by this Interaction instance. After
a call to this method, the method getWarnings will return null
until a new warning is reported for this Interaction.<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/resource/ResourceException.html">ResourceException</A></CODE> - Failed to clear ResourceWarnings
associated with Interaction</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../javax/resource/cci/IndexedRecord.html"><B>PREV CLASS</B></A>
<A HREF="../../../javax/resource/cci/InteractionSpec.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="Interaction.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?