connectionevent.html
来自「SUN公司官方J2EE中文帮助文档 应该不错 有兴趣的下来看看 html格式的」· HTML 代码 · 共 456 行 · 第 1/2 页
HTML
456 行
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/resource/spi/ConnectionEvent.html#getId()">getId</A></B>()</CODE>
<BR>
Get the type of event</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/resource/spi/ConnectionEvent.html#setConnectionHandle(java.lang.Object)">setConnectionHandle</A></B>(java.lang.Object connectionHandle)</CODE>
<BR>
Set the connection handle.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.util.EventObject"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.util.EventObject</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>getSource, toString</CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="CONNECTION_CLOSED"><!-- --></A><H3>
CONNECTION_CLOSED</H3>
<PRE>
public static final int <B>CONNECTION_CLOSED</B></PRE>
<DL>
<DD>Event notification that an application component has closed the
connection</DL>
<HR>
<A NAME="LOCAL_TRANSACTION_STARTED"><!-- --></A><H3>
LOCAL_TRANSACTION_STARTED</H3>
<PRE>
public static final int <B>LOCAL_TRANSACTION_STARTED</B></PRE>
<DL>
<DD>Event notification that a Resource Manager Local Transaction was
started on the connection</DL>
<HR>
<A NAME="LOCAL_TRANSACTION_COMMITTED"><!-- --></A><H3>
LOCAL_TRANSACTION_COMMITTED</H3>
<PRE>
public static final int <B>LOCAL_TRANSACTION_COMMITTED</B></PRE>
<DL>
<DD>Event notification that a Resource Manager Local Transaction was
committed on the connection</DL>
<HR>
<A NAME="LOCAL_TRANSACTION_ROLLEDBACK"><!-- --></A><H3>
LOCAL_TRANSACTION_ROLLEDBACK</H3>
<PRE>
public static final int <B>LOCAL_TRANSACTION_ROLLEDBACK</B></PRE>
<DL>
<DD>Event notification that a Resource Manager Local Transaction was
rolled back on the connection</DL>
<HR>
<A NAME="CONNECTION_ERROR_OCCURRED"><!-- --></A><H3>
CONNECTION_ERROR_OCCURRED</H3>
<PRE>
public static final int <B>CONNECTION_ERROR_OCCURRED</B></PRE>
<DL>
<DD>Event notification that an error occurred on the connection.
This event indicates that the ManagedConnection instance is
now invalid and unusable.</DL>
<HR>
<A NAME="id"><!-- --></A><H3>
id</H3>
<PRE>
protected int <B>id</B></PRE>
<DL>
<DD>Type of the event</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="ConnectionEvent(javax.resource.spi.ManagedConnection, int)"><!-- --></A><H3>
ConnectionEvent</H3>
<PRE>
public <B>ConnectionEvent</B>(<A HREF="../../../javax/resource/spi/ManagedConnection.html">ManagedConnection</A> source,
int eid)</PRE>
<DL>
<DD>Construct a ConnectionEvent object. Exception defaults to null.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>source</CODE> - ManagedConnection that is the
source of the event<DD><CODE>eid</CODE> - type of the Connection event</DL>
</DD>
</DL>
<HR>
<A NAME="ConnectionEvent(javax.resource.spi.ManagedConnection, int, java.lang.Exception)"><!-- --></A><H3>
ConnectionEvent</H3>
<PRE>
public <B>ConnectionEvent</B>(<A HREF="../../../javax/resource/spi/ManagedConnection.html">ManagedConnection</A> source,
int eid,
java.lang.Exception exception)</PRE>
<DL>
<DD>Construct a ConnectionEvent object.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>source</CODE> - ManagedConnection that is the
source of the event<DD><CODE>exception</CODE> - exception about to be thrown to the application<DD><CODE>eid</CODE> - type of the Connection event</DL>
</DD>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<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="getConnectionHandle()"><!-- --></A><H3>
getConnectionHandle</H3>
<PRE>
public java.lang.Object <B>getConnectionHandle</B>()</PRE>
<DL>
<DD>Get the connection handle associated with the Managed
Connection instance. Used for CONNECTION_CLOSED event.</DL>
<HR>
<A NAME="setConnectionHandle(java.lang.Object)"><!-- --></A><H3>
setConnectionHandle</H3>
<PRE>
public void <B>setConnectionHandle</B>(java.lang.Object connectionHandle)</PRE>
<DL>
<DD>Set the connection handle. Used for CONNECTION_CLOSED event</DL>
<HR>
<A NAME="getException()"><!-- --></A><H3>
getException</H3>
<PRE>
public java.lang.Exception <B>getException</B>()</PRE>
<DL>
<DD>Get the exception. May be null.<DD><DL>
<DT><B>Returns:</B><DD>the exception about to be thrown.</DL>
</DD>
</DL>
<HR>
<A NAME="getId()"><!-- --></A><H3>
getId</H3>
<PRE>
public int <B>getId</B>()</PRE>
<DL>
<DD>Get the type of event</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">
PREV CLASS
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="ConnectionEvent.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?