<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_45) on Thu Jan 09 22:45:24 GMT 2014 --> <title>EnhancedAccessor</title> <meta name="date" content="2014-01-09"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="EnhancedAccessor"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../com/sleepycat/persist/impl/Enhanced.html" title="interface in com.sleepycat.persist.impl"><span class="strong">Prev Class</span></a></li> <li><a href="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/sleepycat/persist/impl/EnhancedAccessor.html" target="_top">Frames</a></li> <li><a href="EnhancedAccessor.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li><a href="#field_summary">Field</a> | </li> <li>Constr | </li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li><a href="#field_detail">Field</a> | </li> <li>Constr | </li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">com.sleepycat.persist.impl</div> <h2 title="Class EnhancedAccessor" class="title">Class EnhancedAccessor</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>com.sleepycat.persist.impl.EnhancedAccessor</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <hr> <br> <pre>public class <span class="strong">EnhancedAccessor</span> extends java.lang.Object</pre> <div class="block">Implements Accessor for a complex persistent class.</div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- =========== FIELD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="field_summary"> <!-- --> </a> <h3>Field Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> <caption><span>Fields</span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>static boolean</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#EXPECT_ENHANCED">EXPECT_ENHANCED</a></strong></code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#MAX_FIELD_NUM">MAX_FIELD_NUM</a></strong></code> <div class="block">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.</div> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method_summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span>Methods</span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>java.lang.Object</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#getField(java.lang.Object, int, int, boolean)">getField</a></strong>(java.lang.Object o, int field, int superLevel, boolean isSecField)</code> <div class="block">Returns the value of a given field, representing primitives as primitive wrapper objects.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#isPriKeyFieldNullOrZero(java.lang.Object)">isPriKeyFieldNullOrZero</a></strong>(java.lang.Object o)</code> <div class="block">Returns whether the primary key field is null (for a reference type) or zero (for a primitive integer type).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>java.lang.Object</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#newArray(int)">newArray</a></strong>(int len)</code> <div class="block">Creates a new one dimensional array of the given length, having the target class as its component type.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>java.lang.Object</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#newInstance()">newInstance</a></strong>()</code> <div class="block">Creates a new instance of the target class using its default constructor.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#readCompositeKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityInput)">readCompositeKeyFields</a></strong>(java.lang.Object o, <a href="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</a> input)</code> <div class="block">Reads all composite key field values from the given EntityInput, reading in declared field number order.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#readNonKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityInput, int, int, int)">readNonKeyFields</a></strong>(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> <div class="block">Reads a range of non-key field values from the given EntityInput, reading fields in super classes first and in name order within class.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#readPriKeyField(java.lang.Object, com.sleepycat.persist.impl.EntityInput)">readPriKeyField</a></strong>(java.lang.Object o, <a href="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</a> input)</code> <div class="block">Reads the primary key field value from the given EntityInput.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#readSecKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityInput, int, int, int)">readSecKeyFields</a></strong>(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> <div class="block">Reads a range of secondary key field values from the given EntityInput, reading fields in super classes first and in name order within class.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#registerClass(java.lang.String, com.sleepycat.persist.impl.Enhanced)">registerClass</a></strong>(java.lang.String className, <a href="../../../../com/sleepycat/persist/impl/Enhanced.html" title="interface in com.sleepycat.persist.impl">Enhanced</a> prototype)</code> <div class="block">Registers a prototype instance, and should be called during initialization of the prototype class.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#setField(java.lang.Object, int, int, boolean, java.lang.Object)">setField</a></strong>(java.lang.Object o, int field, int superLevel, boolean isSecField, java.lang.Object value)</code> <div class="block">Changes the value of a given field, representing primitives as primitive wrapper objects.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#writeCompositeKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityOutput)">writeCompositeKeyFields</a></strong>(java.lang.Object o, <a href="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</a> output)</code> <div class="block">Writes all composite key field values to the given EntityOutput, writing in declared field number order.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#writeNonKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityOutput)">writeNonKeyFields</a></strong>(java.lang.Object o, <a href="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</a> output)</code> <div class="block">Writes all non-key field values to the given EntityOutput, writing fields in super classes first and in name order within class.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#writePriKeyField(java.lang.Object, com.sleepycat.persist.impl.EntityOutput)">writePriKeyField</a></strong>(java.lang.Object o, <a href="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</a> output)</code> <div class="block">Writes the primary key field value to the given EntityOutput.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../com/sleepycat/persist/impl/EnhancedAccessor.html#writeSecKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityOutput)">writeSecKeyFields</a></strong>(java.lang.Object o, <a href="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</a> output)</code> <div class="block">Writes all secondary key field values to the given EntityOutput, writing fields in super classes first and in name order within class.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class java.lang.Object</h3> <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ FIELD DETAIL =========== --> <ul class="blockList"> <li class="blockList"><a name="field_detail"> <!-- --> </a> <h3>Field Detail</h3> <a name="EXPECT_ENHANCED"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>EXPECT_ENHANCED</h4> <pre>public static final boolean EXPECT_ENHANCED</pre> </li> </ul> <a name="MAX_FIELD_NUM"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>MAX_FIELD_NUM</h4> <pre>public static final int MAX_FIELD_NUM</pre> <div class="block">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.</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.sleepycat.persist.impl.EnhancedAccessor.MAX_FIELD_NUM">Constant Field Values</a></dd></dl> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method_detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="registerClass(java.lang.String, com.sleepycat.persist.impl.Enhanced)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>registerClass</h4> <pre>public static void registerClass(java.lang.String className, <a href="../../../../com/sleepycat/persist/impl/Enhanced.html" title="interface in com.sleepycat.persist.impl">Enhanced</a> prototype)</pre> <div class="block">Registers a prototype instance, and should be called during initialization of the prototype class. The prototype may be null for an abstract class.</div> </li> </ul> <a name="newInstance()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>newInstance</h4> <pre>public java.lang.Object newInstance()</pre> <div class="block">Creates a new instance of the target class using its default constructor.</div> </li> </ul> <a name="newArray(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>newArray</h4> <pre>public java.lang.Object newArray(int len)</pre> <div class="block">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></div> </li> </ul> <a name="isPriKeyFieldNullOrZero(java.lang.Object)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isPriKeyFieldNullOrZero</h4> <pre>public boolean isPriKeyFieldNullOrZero(java.lang.Object o)</pre> <div class="block">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.</div> </li> </ul> <a name="writePriKeyField(java.lang.Object, com.sleepycat.persist.impl.EntityOutput)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writePriKeyField</h4> <pre>public void writePriKeyField(java.lang.Object o, <a href="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</a> output)</pre> <div class="block">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></div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>o</code> - is the object whose primary key field is to be written.</dd><dd><code>output</code> - the output data to write to.</dd></dl> </li> </ul> <a name="readPriKeyField(java.lang.Object, com.sleepycat.persist.impl.EntityInput)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>readPriKeyField</h4> <pre>public void readPriKeyField(java.lang.Object o, <a href="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</a> input)</pre> <div class="block">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></div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>o</code> - is the object whose primary key field is to be read.</dd><dd><code>input</code> - the input data to read from.</dd></dl> </li> </ul> <a name="writeSecKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityOutput)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeSecKeyFields</h4> <pre>public void writeSecKeyFields(java.lang.Object o, <a href="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</a> output)</pre> <div class="block">Writes all secondary key field values to the given EntityOutput, writing fields in super classes first and in name order within class.</div> <dl><dt><span class="strong">Parameters:</span></dt><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><dd><code>output</code> - the output data to write to.</dd></dl> </li> </ul> <a name="readSecKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityInput, int, int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>readSecKeyFields</h4> <pre>public void readSecKeyFields(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> <div class="block">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></div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>o</code> - is the object whose secondary key fields are to be read.</dd><dd><code>input</code> - the input data to read from.</dd><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><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><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.</dd></dl> </li> </ul> <a name="writeNonKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityOutput)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNonKeyFields</h4> <pre>public void writeNonKeyFields(java.lang.Object o, <a href="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</a> output)</pre> <div class="block">Writes all non-key field values to the given EntityOutput, writing fields in super classes first and in name order within class.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>o</code> - is the object whose non-key fields are to be written.</dd><dd><code>output</code> - the output data to write to.</dd></dl> </li> </ul> <a name="readNonKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityInput, int, int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>readNonKeyFields</h4> <pre>public void readNonKeyFields(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> <div class="block">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></div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>o</code> - is the object whose non-key fields are to be read.</dd><dd><code>input</code> - the input data to read from.</dd><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><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><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.</dd></dl> </li> </ul> <a name="writeCompositeKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityOutput)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeCompositeKeyFields</h4> <pre>public void writeCompositeKeyFields(java.lang.Object o, <a href="../../../../com/sleepycat/persist/impl/EntityOutput.html" title="interface in com.sleepycat.persist.impl">EntityOutput</a> output)</pre> <div class="block">Writes all composite key field values to the given EntityOutput, writing in declared field number order.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>o</code> - the composite key object whose fields are to be written.</dd><dd><code>output</code> - the output data to write to.</dd></dl> </li> </ul> <a name="readCompositeKeyFields(java.lang.Object, com.sleepycat.persist.impl.EntityInput)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>readCompositeKeyFields</h4> <pre>public void readCompositeKeyFields(java.lang.Object o, <a href="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl">EntityInput</a> input)</pre> <div class="block">Reads all composite key field values from the given EntityInput, reading in declared field number order.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>o</code> - the composite key object whose fields are to be read.</dd><dd><code>input</code> - the input data to read from.</dd></dl> </li> </ul> <a name="getField(java.lang.Object, int, int, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getField</h4> <pre>public java.lang.Object getField(java.lang.Object o, int field, int superLevel, boolean isSecField)</pre> <div class="block">Returns the value of a given field, representing primitives as primitive wrapper objects.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>o</code> - is the object containing the key field.</dd><dd><code>field</code> - is the field index.</dd><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><dd><code>isSecField</code> - is true for a secondary key field or false for a non-key field.</dd> <dt><span class="strong">Returns:</span></dt><dd>the current field value, or null for a reference type field that is null.</dd></dl> </li> </ul> <a name="setField(java.lang.Object, int, int, boolean, java.lang.Object)"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>setField</h4> <pre>public void setField(java.lang.Object o, int field, int superLevel, boolean isSecField, java.lang.Object value)</pre> <div class="block">Changes the value of a given field, representing primitives as primitive wrapper objects.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>o</code> - is the object containing the key field.</dd><dd><code>field</code> - is the field index.</dd><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><dd><code>isSecField</code> - is true for a secondary key field or false for a non-key field.</dd><dd><code>value</code> - is the new value of the field, or null to set a reference type field to null.</dd></dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../com/sleepycat/persist/impl/Enhanced.html" title="interface in com.sleepycat.persist.impl"><span class="strong">Prev Class</span></a></li> <li><a href="../../../../com/sleepycat/persist/impl/EntityInput.html" title="interface in com.sleepycat.persist.impl"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/sleepycat/persist/impl/EnhancedAccessor.html" target="_top">Frames</a></li> <li><a href="EnhancedAccessor.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li><a href="#field_summary">Field</a> | </li> <li>Constr | </li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li><a href="#field_detail">Field</a> | </li> <li>Constr | </li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>