| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc (build 1.6.0_01) on Tue Mar 18 12:42:25 PDT 2008 --> |
| <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <TITLE> |
| InstanceLifecycleEvent (JDO2 API 2.1) |
| </TITLE> |
| |
| <META NAME="date" CONTENT="2008-03-18"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="InstanceLifecycleEvent (JDO2 API 2.1)"; |
| } |
| } |
| </SCRIPT> |
| <NOSCRIPT> |
| </NOSCRIPT> |
| |
| </HEAD> |
| |
| <BODY BGCOLOR="white" onload="windowTitle();"> |
| <HR> |
| |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <A NAME="navbar_top"><!-- --></A> |
| <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <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="class-use/InstanceLifecycleEvent.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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/jdo/listener/DirtyLifecycleListener.html" title="interface in javax.jdo.listener"><B>PREV CLASS</B></A> |
| <A HREF="../../../javax/jdo/listener/InstanceLifecycleListener.html" title="interface in javax.jdo.listener"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../index.html?javax/jdo/listener/InstanceLifecycleEvent.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="InstanceLifecycleEvent.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <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> |
| <A NAME="skip-navbar_top"></A> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| javax.jdo.listener</FONT> |
| <BR> |
| Class InstanceLifecycleEvent</H2> |
| <PRE> |
| java.lang.Object |
| <IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.util.EventObject |
| <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>javax.jdo.listener.InstanceLifecycleEvent</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT><PRE>public class <B>InstanceLifecycleEvent</B><DT>extends java.util.EventObject</DL> |
| </PRE> |
| |
| <P> |
| This is the event class used in life cycle event notifications. |
| <P>Note that although InstanceLifecycleEvent inherits Serializable interface |
| from EventObject, it is not intended to be Serializable. Appropriate |
| serialization methods are implemented to throw NotSerializableException. |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>2.0</DD> |
| <DT><B>Version:</B></DT> |
| <DD>2.0</DD> |
| <DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#javax.jdo.listener.InstanceLifecycleEvent">Serialized Form</A></DL> |
| <HR> |
| |
| <P> |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#ATTACH">ATTACH</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#CLEAR">CLEAR</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#CREATE">CREATE</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#DELETE">DELETE</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#DETACH">DETACH</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#DIRTY">DIRTY</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#LOAD">LOAD</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#STORE">STORE</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| <A NAME="fields_inherited_from_class_java.util.EventObject"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Fields inherited from class java.util.EventObject</B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>source</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#InstanceLifecycleEvent(java.lang.Object, int)">InstanceLifecycleEvent</A></B>(java.lang.Object source, |
| int type)</CODE> |
| |
| <BR> |
| Creates a new event object with the specified |
| <code>source</code> and <code>type</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#InstanceLifecycleEvent(java.lang.Object, int, java.lang.Object)">InstanceLifecycleEvent</A></B>(java.lang.Object source, |
| int type, |
| java.lang.Object target)</CODE> |
| |
| <BR> |
| Creates a new event object with the specified |
| <code>source</code>, <code>type</code>, and <code>target</code>.</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.Object</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#getDetachedInstance()">getDetachedInstance</A></B>()</CODE> |
| |
| <BR> |
| Returns the detached instance involved in the event.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#getEventType()">getEventType</A></B>()</CODE> |
| |
| <BR> |
| Returns the event type that triggered this event.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.Object</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#getPersistentInstance()">getPersistentInstance</A></B>()</CODE> |
| |
| <BR> |
| Returns the persistent instance involved in the event.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.Object</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#getSource()">getSource</A></B>()</CODE> |
| |
| <BR> |
| The source object of the Event.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.Object</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#getTarget()">getTarget</A></B>()</CODE> |
| |
| <BR> |
| The target object of the Event.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.util.EventObject"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.util.EventObject</B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>toString</CODE></TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
| </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" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Field Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="CREATE"><!-- --></A><H3> |
| CREATE</H3> |
| <PRE> |
| public static final int <B>CREATE</B></PRE> |
| <DL> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.jdo.listener.InstanceLifecycleEvent.CREATE">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="LOAD"><!-- --></A><H3> |
| LOAD</H3> |
| <PRE> |
| public static final int <B>LOAD</B></PRE> |
| <DL> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.jdo.listener.InstanceLifecycleEvent.LOAD">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="STORE"><!-- --></A><H3> |
| STORE</H3> |
| <PRE> |
| public static final int <B>STORE</B></PRE> |
| <DL> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.jdo.listener.InstanceLifecycleEvent.STORE">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="CLEAR"><!-- --></A><H3> |
| CLEAR</H3> |
| <PRE> |
| public static final int <B>CLEAR</B></PRE> |
| <DL> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.jdo.listener.InstanceLifecycleEvent.CLEAR">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="DELETE"><!-- --></A><H3> |
| DELETE</H3> |
| <PRE> |
| public static final int <B>DELETE</B></PRE> |
| <DL> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.jdo.listener.InstanceLifecycleEvent.DELETE">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="DIRTY"><!-- --></A><H3> |
| DIRTY</H3> |
| <PRE> |
| public static final int <B>DIRTY</B></PRE> |
| <DL> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.jdo.listener.InstanceLifecycleEvent.DIRTY">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="DETACH"><!-- --></A><H3> |
| DETACH</H3> |
| <PRE> |
| public static final int <B>DETACH</B></PRE> |
| <DL> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.jdo.listener.InstanceLifecycleEvent.DETACH">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="ATTACH"><!-- --></A><H3> |
| ATTACH</H3> |
| <PRE> |
| public static final int <B>ATTACH</B></PRE> |
| <DL> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.jdo.listener.InstanceLifecycleEvent.ATTACH">Constant Field Values</A></DL> |
| </DL> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Constructor Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="InstanceLifecycleEvent(java.lang.Object, int)"><!-- --></A><H3> |
| InstanceLifecycleEvent</H3> |
| <PRE> |
| public <B>InstanceLifecycleEvent</B>(java.lang.Object source, |
| int type)</PRE> |
| <DL> |
| <DD>Creates a new event object with the specified |
| <code>source</code> and <code>type</code>. |
| <P> |
| <DL> |
| <DT><B>Parameters:</B><DD><CODE>source</CODE> - the instance that triggered the event<DD><CODE>type</CODE> - the event type<DT><B>Since:</B></DT> |
| <DD>2.0</DD> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="InstanceLifecycleEvent(java.lang.Object, int, java.lang.Object)"><!-- --></A><H3> |
| InstanceLifecycleEvent</H3> |
| <PRE> |
| public <B>InstanceLifecycleEvent</B>(java.lang.Object source, |
| int type, |
| java.lang.Object target)</PRE> |
| <DL> |
| <DD>Creates a new event object with the specified |
| <code>source</code>, <code>type</code>, and <code>target</code>. |
| <P> |
| <DL> |
| <DT><B>Parameters:</B><DD><CODE>source</CODE> - the instance that triggered the event<DD><CODE>type</CODE> - the event type<DD><CODE>target</CODE> - the "other" instance<DT><B>Since:</B></DT> |
| <DD>2.0</DD> |
| </DL> |
| </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="getEventType()"><!-- --></A><H3> |
| getEventType</H3> |
| <PRE> |
| public int <B>getEventType</B>()</PRE> |
| <DL> |
| <DD>Returns the event type that triggered this event. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the event type<DT><B>Since:</B></DT> |
| <DD>2.0</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getSource()"><!-- --></A><H3> |
| getSource</H3> |
| <PRE> |
| public java.lang.Object <B>getSource</B>()</PRE> |
| <DL> |
| <DD>The source object of the Event. Although not deprecated, |
| it is recommended that the the methods |
| <code>getPersistentInstance()</code> and |
| <code>getDetachedInstance()</code> be used instead. |
| <P> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>getSource</CODE> in class <CODE>java.util.EventObject</CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>The persistent instance on any pre- callback except preAttach, |
| or the detached instance for a postDetach or preAttach callback.<DT><B>See Also:</B><DD><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#getPersistentInstance()"><CODE>getPersistentInstance()</CODE></A>, |
| <A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#getDetachedInstance()"><CODE>getDetachedInstance()</CODE></A>, |
| "Section 12.15, Java Data Objects 2.0 Specification"</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getTarget()"><!-- --></A><H3> |
| getTarget</H3> |
| <PRE> |
| public java.lang.Object <B>getTarget</B>()</PRE> |
| <DL> |
| <DD>The target object of the Event. Although not deprecated, |
| it is recommended that the the methods |
| <code>getPersistentInstance()</code> and |
| <code>getDetachedInstance()</code> be used instead. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>The detached instance for preDetach and postAttach, |
| the persistent instance otherwise.<DT><B>Since:</B></DT> |
| <DD>2.0</DD> |
| <DT><B>See Also:</B><DD><A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#getPersistentInstance()"><CODE>getPersistentInstance()</CODE></A>, |
| <A HREF="../../../javax/jdo/listener/InstanceLifecycleEvent.html#getDetachedInstance()"><CODE>getDetachedInstance()</CODE></A>, |
| "Section 12.15, Java Data Objects 2.0 Specification"</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPersistentInstance()"><!-- --></A><H3> |
| getPersistentInstance</H3> |
| <PRE> |
| public java.lang.Object <B>getPersistentInstance</B>()</PRE> |
| <DL> |
| <DD>Returns the persistent instance involved in the event. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>The persistent instance involved in the event, or null if there |
| was none.<DT><B>See Also:</B><DD>"Section 12.15, Java Data Objects 2.0 Specification"</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDetachedInstance()"><!-- --></A><H3> |
| getDetachedInstance</H3> |
| <PRE> |
| public java.lang.Object <B>getDetachedInstance</B>()</PRE> |
| <DL> |
| <DD>Returns the detached instance involved in the event. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>The detached instance involved in the event, or null if there was none.<DT><B>See Also:</B><DD>"Section 12.15, Java Data Objects 2.0 Specification"</DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <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="class-use/InstanceLifecycleEvent.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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/jdo/listener/DirtyLifecycleListener.html" title="interface in javax.jdo.listener"><B>PREV CLASS</B></A> |
| <A HREF="../../../javax/jdo/listener/InstanceLifecycleListener.html" title="interface in javax.jdo.listener"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../index.html?javax/jdo/listener/InstanceLifecycleEvent.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="InstanceLifecycleEvent.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <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> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved. |
| </BODY> |
| </HTML> |