Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-release > by-pkgid > bc1980b66a68f286299491ee8724e71c > files > 395

db4.7-4.7.25-6mdv2010.1.x86_64.rpm

<!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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/sleepycat/persist/impl/Enhanced.html" title="interface in com.sleepycat.persist.impl"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<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>  &nbsp;
&nbsp;<A HREF="EnhancedAccessor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<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&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#EXPECT_ENHANCED">EXPECT_ENHANCED</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>
&nbsp;
<!-- ========== 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>&nbsp;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&nbsp;o,
         int&nbsp;field,
         int&nbsp;superLevel,
         boolean&nbsp;isSecField)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;o)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#newArray(int)">newArray</A></B>(int&nbsp;len)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#newInstance()">newInstance</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;o,
                 <A HREF="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</A>&nbsp;input,
                 int&nbsp;startField,
                 int&nbsp;endField,
                 int&nbsp;superLevel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;o,
                <A HREF="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</A>&nbsp;input)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;o,
                 <A HREF="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</A>&nbsp;input,
                 int&nbsp;startField,
                 int&nbsp;endField,
                 int&nbsp;superLevel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;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&nbsp;className,
              <A HREF="../../../../com/sleepycat/persist/impl/Enhanced.html" title="interface in com.sleepycat.persist.impl">Enhanced</A>&nbsp;prototype)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;o,
         int&nbsp;field,
         int&nbsp;superLevel,
         boolean&nbsp;isSecField,
         java.lang.Object&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;o,
                  <A HREF="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</A>&nbsp;output)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;o,
                 <A HREF="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</A>&nbsp;output)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;o,
                  <A HREF="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</A>&nbsp;output)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>
&nbsp;<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>
&nbsp;
<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&nbsp;className,
                                 <A HREF="../../../../com/sleepycat/persist/impl/Enhanced.html" title="interface in com.sleepycat.persist.impl">Enhanced</A>&nbsp;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&nbsp;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&nbsp;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&nbsp;o,
                             <A HREF="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</A>&nbsp;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&nbsp;o,
                            <A HREF="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</A>&nbsp;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&nbsp;o,
                              <A HREF="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</A>&nbsp;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&nbsp;o,
                             <A HREF="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</A>&nbsp;input,
                             int&nbsp;startField,
                             int&nbsp;endField,
                             int&nbsp;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&nbsp;o,
                              <A HREF="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</A>&nbsp;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&nbsp;o,
                             <A HREF="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</A>&nbsp;input,
                             int&nbsp;startField,
                             int&nbsp;endField,
                             int&nbsp;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&nbsp;o,
                                 int&nbsp;field,
                                 int&nbsp;superLevel,
                                 boolean&nbsp;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&nbsp;o,
                     int&nbsp;field,
                     int&nbsp;superLevel,
                     boolean&nbsp;isSecField,
                     java.lang.Object&nbsp;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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/sleepycat/persist/impl/Enhanced.html" title="interface in com.sleepycat.persist.impl"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<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>  &nbsp;
&nbsp;<A HREF="EnhancedAccessor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>