<!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_0) on Wed Dec 30 04:50:28 EST 2009 --> <TITLE> EnhancedAccessor </TITLE> <META NAME="date" CONTENT="2009-12-30"> <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="EnhancedAccessor"; } } </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="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="../../../../com/sleepycat/persist/impl/Enhanced.html" title="interface in com.sleepycat.persist.impl"><B>PREV CLASS</B></A> <A HREF="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/sleepycat/persist/impl/EnhancedAccessor.html" target="_top"><B>FRAMES</B></A> <A HREF="EnhancedAccessor.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> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <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"> com.sleepycat.persist.impl</FONT> <BR> Class EnhancedAccessor</H2> <PRE> java.lang.Object <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.persist.impl.EnhancedAccessor</B> </PRE> <HR> <DL> <DT><PRE>public class <B>EnhancedAccessor</B><DT>extends java.lang.Object</DL> </PRE> <P> Implements Accessor for a complex persistent class. <P> <P> <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 boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#EXPECT_ENHANCED">EXPECT_ENHANCED</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="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#MAX_FIELD_NUM">MAX_FIELD_NUM</A></B></CODE> <BR> A large field value to use instead of Integer.MAX_VALUE, to work around Java JIT compiler bug when doing an (X <= Integer.MAX_VALUE) as would be done in readXxxKeyFields methods.</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="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#getField(java.lang.Object, int, int, boolean)">getField</A></B>(java.lang.Object o, int field, int superLevel, boolean isSecField)</CODE> <BR> Returns the value of a given field, representing primitives as primitive wrapper objects.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#isPriKeyFieldNullOrZero(java.lang.Object)">isPriKeyFieldNullOrZero</A></B>(java.lang.Object o)</CODE> <BR> Returns whether the primary key field is null (for a reference type) or zero (for a primitive integer type).</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="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#newArray(int)">newArray</A></B>(int len)</CODE> <BR> Creates a new one dimensional array of the given length, having the target class as its component type.</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="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#newInstance()">newInstance</A></B>()</CODE> <BR> Creates a new instance of the target class using its default constructor.</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="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#readNonKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityInput, int, int, int)">readNonKeyFields</A></B>(java.lang.Object o, <A HREF="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</A> input, int startField, int endField, int superLevel)</CODE> <BR> Reads a range of non-key field values from the given EntityInput, reading fields in super classes first and in name order within class.</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="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#readPriKeyField(java.lang.Object, com.sleepycat.persist.impl.EntityInput)">readPriKeyField</A></B>(java.lang.Object o, <A HREF="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</A> input)</CODE> <BR> Reads the primary key field value from the given EntityInput.</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="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#readSecKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityInput, int, int, int)">readSecKeyFields</A></B>(java.lang.Object o, <A HREF="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</A> input, int startField, int endField, int superLevel)</CODE> <BR> Reads a range of secondary key field values from the given EntityInput, reading fields in super classes first and in name order within class.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#registerClass(java.lang.String, com.sleepycat.persist.impl.Enhanced)">registerClass</A></B>(java.lang.String className, <A HREF="../../../../com/sleepycat/persist/impl/Enhanced.html" title="interface in com.sleepycat.persist.impl">Enhanced</A> prototype)</CODE> <BR> Registers a prototype instance, and should be called during initialization of the prototype class.</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="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#setField(java.lang.Object, int, int, boolean, java.lang.Object)">setField</A></B>(java.lang.Object o, int field, int superLevel, boolean isSecField, java.lang.Object value)</CODE> <BR> Changes the value of a given field, representing primitives as primitive wrapper objects.</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="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#writeNonKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityOutput)">writeNonKeyFields</A></B>(java.lang.Object o, <A HREF="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</A> output)</CODE> <BR> Writes all non-key field values to the given EntityOutput, writing fields in super classes first and in name order within class.</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="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#writePriKeyField(java.lang.Object, com.sleepycat.persist.impl.EntityOutput)">writePriKeyField</A></B>(java.lang.Object o, <A HREF="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</A> output)</CODE> <BR> Writes the primary key field value to the given EntityOutput.</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="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#writeSecKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityOutput)">writeSecKeyFields</A></B>(java.lang.Object o, <A HREF="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</A> output)</CODE> <BR> Writes all secondary key field values to the given EntityOutput, writing fields in super classes first and in name order within class.</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, toString, 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="EXPECT_ENHANCED"><!-- --></A><H3> EXPECT_ENHANCED</H3> <PRE> public static final boolean <B>EXPECT_ENHANCED</B></PRE> <DL> <DL> </DL> </DL> <HR> <A NAME="MAX_FIELD_NUM"><!-- --></A><H3> MAX_FIELD_NUM</H3> <PRE> public static final int <B>MAX_FIELD_NUM</B></PRE> <DL> <DD>A large field value to use instead of Integer.MAX_VALUE, to work around Java JIT compiler bug when doing an (X <= Integer.MAX_VALUE) as would be done in readXxxKeyFields methods. <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.sleepycat.persist.impl.EnhancedAccessor.MAX_FIELD_NUM">Constant Field Values</A></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="registerClass(java.lang.String, com.sleepycat.persist.impl.Enhanced)"><!-- --></A><H3> registerClass</H3> <PRE> public static void <B>registerClass</B>(java.lang.String className, <A HREF="../../../../com/sleepycat/persist/impl/Enhanced.html" title="interface in com.sleepycat.persist.impl">Enhanced</A> prototype)</PRE> <DL> <DD>Registers a prototype instance, and should be called during initialization of the prototype class. The prototype may be null for an abstract class. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="newInstance()"><!-- --></A><H3> newInstance</H3> <PRE> public java.lang.Object <B>newInstance</B>()</PRE> <DL> <DD>Creates a new instance of the target class using its default constructor. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="newArray(int)"><!-- --></A><H3> newArray</H3> <PRE> public java.lang.Object <B>newArray</B>(int len)</PRE> <DL> <DD>Creates a new one dimensional array of the given length, having the target class as its component type. <p>Using a special method for a one dimensional array, which can be implemented by bytecode generation, is a compromise. We use reflection to create multidimensional arrays. We could in the future generate code to create arrays as they are encountered, if there is a need to avoid reflection for multidimensional arrays.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isPriKeyFieldNullOrZero(java.lang.Object)"><!-- --></A><H3> isPriKeyFieldNullOrZero</H3> <PRE> public boolean <B>isPriKeyFieldNullOrZero</B>(java.lang.Object o)</PRE> <DL> <DD>Returns whether the primary key field is null (for a reference type) or zero (for a primitive integer type). Null and zero are used as an indication that the key should be assigned from a sequence. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="writePriKeyField(java.lang.Object, com.sleepycat.persist.impl.EntityOutput)"><!-- --></A><H3> writePriKeyField</H3> <PRE> public void <B>writePriKeyField</B>(java.lang.Object o, <A HREF="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</A> output)</PRE> <DL> <DD>Writes the primary key field value to the given EntityOutput. <p>To write a primary key with a reference type, this method must call EntityOutput.writeKeyObject.</p> <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>o</CODE> - is the object whose primary key field is to be written.<DD><CODE>output</CODE> - the output data to write to.</DL> </DD> </DL> <HR> <A NAME="readPriKeyField(java.lang.Object, com.sleepycat.persist.impl.EntityInput)"><!-- --></A><H3> readPriKeyField</H3> <PRE> public void <B>readPriKeyField</B>(java.lang.Object o, <A HREF="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</A> input)</PRE> <DL> <DD>Reads the primary key field value from the given EntityInput. <p>To read a primary key with a reference type, this method must call EntityInput.readKeyObject.</p> <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>o</CODE> - is the object whose primary key field is to be read.<DD><CODE>input</CODE> - the input data to read from.</DL> </DD> </DL> <HR> <A NAME="writeSecKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityOutput)"><!-- --></A><H3> writeSecKeyFields</H3> <PRE> public void <B>writeSecKeyFields</B>(java.lang.Object o, <A HREF="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</A> output)</PRE> <DL> <DD>Writes all secondary key field values to the given EntityOutput, writing fields in super classes first and in name order within class. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>o</CODE> - is the object whose secondary key fields are to be written. <p>If the primary key has a reference type, this method must call EntityOutput.registerPriKeyObject before writing any other fields.</p><DD><CODE>output</CODE> - the output data to write to.</DL> </DD> </DL> <HR> <A NAME="readSecKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityInput, int, int, int)"><!-- --></A><H3> readSecKeyFields</H3> <PRE> public void <B>readSecKeyFields</B>(java.lang.Object o, <A HREF="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</A> input, int startField, int endField, int superLevel)</PRE> <DL> <DD>Reads a range of secondary key field values from the given EntityInput, reading fields in super classes first and in name order within class. <p>If the primary key has a reference type, this method must call EntityInput.registerPriKeyObject before reading any other fields.</p> <p>To read all fields, pass -1 for superLevel, zero for startField and MAX_FIELD_NUM for endField. Fields from super classes are read first.</p> <p>To read a specific range of fields, pass a non-negative number for superLevel and the specific indices of the field range to be read in the class at that level.</p> <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>o</CODE> - is the object whose secondary key fields are to be read.<DD><CODE>input</CODE> - the input data to read from.<DD><CODE>startField</CODE> - the starting field index in the range of fields to read. To read all fields, the startField should be zero.<DD><CODE>endField</CODE> - the ending field index in the range of fields to read. To read all fields, the endField should be MAX_FIELD_NUM.<DD><CODE>superLevel</CODE> - is a non-negative number to read the fields of the class that is the Nth super instance; or a negative number to read fields in all classes.</DL> </DD> </DL> <HR> <A NAME="writeNonKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityOutput)"><!-- --></A><H3> writeNonKeyFields</H3> <PRE> public void <B>writeNonKeyFields</B>(java.lang.Object o, <A HREF="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</A> output)</PRE> <DL> <DD>Writes all non-key field values to the given EntityOutput, writing fields in super classes first and in name order within class. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>o</CODE> - is the object whose non-key fields are to be written.<DD><CODE>output</CODE> - the output data to write to.</DL> </DD> </DL> <HR> <A NAME="readNonKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityInput, int, int, int)"><!-- --></A><H3> readNonKeyFields</H3> <PRE> public void <B>readNonKeyFields</B>(java.lang.Object o, <A HREF="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</A> input, int startField, int endField, int superLevel)</PRE> <DL> <DD>Reads a range of non-key field values from the given EntityInput, reading fields in super classes first and in name order within class. <p>To read all fields, pass -1 for superLevel, zero for startField and MAX_FIELD_NUM for endField. Fields from super classes are read first.</p> <p>To read a specific range of fields, pass a non-negative number for superLevel and the specific indices of the field range to be read in the class at that level.</p> <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>o</CODE> - is the object whose non-key fields are to be read.<DD><CODE>input</CODE> - the input data to read from.<DD><CODE>startField</CODE> - the starting field index in the range of fields to read. To read all fields, the startField should be zero.<DD><CODE>endField</CODE> - the ending field index in the range of fields to read. To read all fields, the endField should be MAX_FIELD_NUM.<DD><CODE>superLevel</CODE> - is a non-negative number to read the fields of the class that is the Nth super instance; or a negative number to read fields in all classes.</DL> </DD> </DL> <HR> <A NAME="getField(java.lang.Object, int, int, boolean)"><!-- --></A><H3> getField</H3> <PRE> public java.lang.Object <B>getField</B>(java.lang.Object o, int field, int superLevel, boolean isSecField)</PRE> <DL> <DD>Returns the value of a given field, representing primitives as primitive wrapper objects. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>o</CODE> - is the object containing the key field.<DD><CODE>field</CODE> - is the field index.<DD><CODE>superLevel</CODE> - is a positive number to identify the field of the class that is the Nth super instance; or zero to identify the field in this class.<DD><CODE>isSecField</CODE> - is true for a secondary key field or false for a non-key field. <DT><B>Returns:</B><DD>the current field value, or null for a reference type field that is null.</DL> </DD> </DL> <HR> <A NAME="setField(java.lang.Object, int, int, boolean, java.lang.Object)"><!-- --></A><H3> setField</H3> <PRE> public void <B>setField</B>(java.lang.Object o, int field, int superLevel, boolean isSecField, java.lang.Object value)</PRE> <DL> <DD>Changes the value of a given field, representing primitives as primitive wrapper objects. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>o</CODE> - is the object containing the key field.<DD><CODE>field</CODE> - is the field index.<DD><CODE>superLevel</CODE> - is a positive number to identify the field of the class that is the Nth super instance; or zero to identify the field in this class.<DD><CODE>isSecField</CODE> - is true for a secondary key field or false for a non-key field.<DD><CODE>value</CODE> - is the new value of the field, or null to set a reference type field to null.</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="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="../../../../com/sleepycat/persist/impl/Enhanced.html" title="interface in com.sleepycat.persist.impl"><B>PREV CLASS</B></A> <A HREF="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/sleepycat/persist/impl/EnhancedAccessor.html" target="_top"><B>FRAMES</B></A> <A HREF="EnhancedAccessor.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> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>