1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.6.0_03) on Mon Apr 12 16:25:48 EDT 2010 --> 6<TITLE> 7RecordNumberBinding (Oracle - Berkeley DB Java API) 8</TITLE> 9 10<META NAME="date" CONTENT="2010-04-12"> 11 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style"> 13 14<SCRIPT type="text/javascript"> 15function windowTitle() 16{ 17 if (location.href.indexOf('is-external=true') == -1) { 18 parent.document.title="RecordNumberBinding (Oracle - Berkeley DB Java API)"; 19 } 20} 21</SCRIPT> 22<NOSCRIPT> 23</NOSCRIPT> 24 25</HEAD> 26 27<BODY BGCOLOR="white" onload="windowTitle();"> 28<HR> 29 30 31<!-- ========= START OF TOP NAVBAR ======= --> 32<A NAME="navbar_top"><!-- --></A> 33<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 35<TR> 36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 37<A NAME="navbar_top_firstrow"><!-- --></A> 38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 39 <TR ALIGN="center" VALIGN="top"> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RecordNumberBinding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 48 </TR> 49</TABLE> 50</TD> 51<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 52<b>Berkeley DB</b><br><font size="-1"> version 4.8.30</font></EM> 53</TD> 54</TR> 55 56<TR> 57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 58 <A HREF="../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind"><B>PREV CLASS</B></A> 59 NEXT CLASS</FONT></TD> 60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 61 <A HREF="../../../index.html?com/sleepycat/bind/RecordNumberBinding.html" target="_top"><B>FRAMES</B></A> 62 <A HREF="RecordNumberBinding.html" target="_top"><B>NO FRAMES</B></A> 63 <SCRIPT type="text/javascript"> 64 <!-- 65 if(window==top) { 66 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 67 } 68 //--> 69</SCRIPT> 70<NOSCRIPT> 71 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 72</NOSCRIPT> 73 74 75</FONT></TD> 76</TR> 77<TR> 78<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 79 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 81DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 82</TR> 83</TABLE> 84<A NAME="skip-navbar_top"></A> 85<!-- ========= END OF TOP NAVBAR ========= --> 86 87<HR> 88<!-- ======== START OF CLASS DATA ======== --> 89<H2> 90<FONT SIZE="-1"> 91com.sleepycat.bind</FONT> 92<BR> 93Class RecordNumberBinding</H2> 94<PRE> 95<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> 96 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.bind.RecordNumberBinding</B> 97</PRE> 98<DL> 99<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind">EntryBinding</A></DD> 100</DL> 101<HR> 102<DL> 103<DT><PRE>public class <B>RecordNumberBinding</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind">EntryBinding</A></DL> 104</PRE> 105 106<P> 107An <code>EntryBinding</code> that treats a record number key entry as a 108 <code>Long</code> key object. 109 110 <p>Record numbers are returned as <code>Long</code> objects, although on 111 input any <code>Number</code> object may be used.</p> 112<P> 113 114<P> 115<HR> 116 117<P> 118 119<!-- ======== CONSTRUCTOR SUMMARY ======== --> 120 121<A NAME="constructor_summary"><!-- --></A> 122<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 123<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 124<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 125<B>Constructor Summary</B></FONT></TH> 126</TR> 127<TR BGCOLOR="white" CLASS="TableRowColor"> 128<TD><CODE><B><A HREF="../../../com/sleepycat/bind/RecordNumberBinding.html#RecordNumberBinding()">RecordNumberBinding</A></B>()</CODE> 129 130<BR> 131 Creates a byte array binding.</TD> 132</TR> 133</TABLE> 134 135<!-- ========== METHOD SUMMARY =========== --> 136 137<A NAME="method_summary"><!-- --></A> 138<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 139<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 140<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 141<B>Method Summary</B></FONT></TH> 142</TR> 143<TR BGCOLOR="white" CLASS="TableRowColor"> 144<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 145<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</A></CODE></FONT></TD> 146<TD><CODE><B><A HREF="../../../com/sleepycat/bind/RecordNumberBinding.html#entryToObject(com.sleepycat.db.DatabaseEntry)">entryToObject</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> entry)</CODE> 147 148<BR> 149 Converts a entry buffer into an Object.</TD> 150</TR> 151<TR BGCOLOR="white" CLASS="TableRowColor"> 152<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 153<CODE>static long</CODE></FONT></TD> 154<TD><CODE><B><A HREF="../../../com/sleepycat/bind/RecordNumberBinding.html#entryToRecordNumber(com.sleepycat.db.DatabaseEntry)">entryToRecordNumber</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> entry)</CODE> 155 156<BR> 157 Utility method for use by bindings to translate a entry buffer to an 158 record number integer.</TD> 159</TR> 160<TR BGCOLOR="white" CLASS="TableRowColor"> 161<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 162<CODE> void</CODE></FONT></TD> 163<TD><CODE><B><A HREF="../../../com/sleepycat/bind/RecordNumberBinding.html#objectToEntry(java.lang.Object, com.sleepycat.db.DatabaseEntry)">objectToEntry</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> object, 164 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> entry)</CODE> 165 166<BR> 167 Converts an Object into a entry buffer.</TD> 168</TR> 169<TR BGCOLOR="white" CLASS="TableRowColor"> 170<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 171<CODE>static void</CODE></FONT></TD> 172<TD><CODE><B><A HREF="../../../com/sleepycat/bind/RecordNumberBinding.html#recordNumberToEntry(long, com.sleepycat.db.DatabaseEntry)">recordNumberToEntry</A></B>(long recordNumber, 173 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> entry)</CODE> 174 175<BR> 176 Utility method for use by bindings to translate a record number integer 177 to a entry buffer.</TD> 178</TR> 179</TABLE> 180 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 181<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 182<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 183<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> 184</TR> 185<TR BGCOLOR="white" CLASS="TableRowColor"> 186<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> 187</TR> 188</TABLE> 189 190<P> 191 192<!-- ========= CONSTRUCTOR DETAIL ======== --> 193 194<A NAME="constructor_detail"><!-- --></A> 195<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 196<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 197<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 198<B>Constructor Detail</B></FONT></TH> 199</TR> 200</TABLE> 201 202<A NAME="RecordNumberBinding()"><!-- --></A><H3> 203RecordNumberBinding</H3> 204<PRE> 205public <B>RecordNumberBinding</B>()</PRE> 206<DL> 207<DD>Creates a byte array binding. 208<P> 209</DL> 210 211<!-- ============ METHOD DETAIL ========== --> 212 213<A NAME="method_detail"><!-- --></A> 214<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 215<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 216<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 217<B>Method Detail</B></FONT></TH> 218</TR> 219</TABLE> 220 221<A NAME="entryToObject(com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3> 222entryToObject</H3> 223<PRE> 224public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</A> <B>entryToObject</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> entry)</PRE> 225<DL> 226<DD><B>Description copied from interface: <CODE><A HREF="../../../com/sleepycat/bind/EntryBinding.html#entryToObject(com.sleepycat.db.DatabaseEntry)">EntryBinding</A></CODE></B></DD> 227<DD>Converts a entry buffer into an Object. 228<P> 229<DD><DL> 230<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/sleepycat/bind/EntryBinding.html#entryToObject(com.sleepycat.db.DatabaseEntry)">entryToObject</A></CODE> in interface <CODE><A HREF="../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind">EntryBinding</A></CODE></DL> 231</DD> 232<DD><DL> 233<DT><B>Parameters:</B><DD><CODE>entry</CODE> - is the source entry buffer. 234<DT><B>Returns:</B><DD>the resulting Object.</DL> 235</DD> 236</DL> 237<HR> 238 239<A NAME="objectToEntry(java.lang.Object, com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3> 240objectToEntry</H3> 241<PRE> 242public void <B>objectToEntry</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> object, 243 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> entry)</PRE> 244<DL> 245<DD><B>Description copied from interface: <CODE><A HREF="../../../com/sleepycat/bind/EntryBinding.html#objectToEntry(E, com.sleepycat.db.DatabaseEntry)">EntryBinding</A></CODE></B></DD> 246<DD>Converts an Object into a entry buffer. 247<P> 248<DD><DL> 249<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/sleepycat/bind/EntryBinding.html#objectToEntry(E, com.sleepycat.db.DatabaseEntry)">objectToEntry</A></CODE> in interface <CODE><A HREF="../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind">EntryBinding</A></CODE></DL> 250</DD> 251<DD><DL> 252<DT><B>Parameters:</B><DD><CODE>object</CODE> - is the source Object.<DD><CODE>entry</CODE> - is the destination entry buffer.</DL> 253</DD> 254</DL> 255<HR> 256 257<A NAME="entryToRecordNumber(com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3> 258entryToRecordNumber</H3> 259<PRE> 260public static long <B>entryToRecordNumber</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> entry)</PRE> 261<DL> 262<DD>Utility method for use by bindings to translate a entry buffer to an 263 record number integer. 264<P> 265<DD><DL> 266</DL> 267</DD> 268<DD><DL> 269<DT><B>Parameters:</B><DD><CODE>entry</CODE> - the entry buffer. 270<DT><B>Returns:</B><DD>the record number.</DL> 271</DD> 272</DL> 273<HR> 274 275<A NAME="recordNumberToEntry(long, com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3> 276recordNumberToEntry</H3> 277<PRE> 278public static void <B>recordNumberToEntry</B>(long recordNumber, 279 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> entry)</PRE> 280<DL> 281<DD>Utility method for use by bindings to translate a record number integer 282 to a entry buffer. 283<P> 284<DD><DL> 285</DL> 286</DD> 287<DD><DL> 288<DT><B>Parameters:</B><DD><CODE>recordNumber</CODE> - the record number.<DD><CODE>entry</CODE> - the entry buffer to hold the record number.</DL> 289</DD> 290</DL> 291<!-- ========= END OF CLASS DATA ========= --> 292<HR> 293 294 295<!-- ======= START OF BOTTOM NAVBAR ====== --> 296<A NAME="navbar_bottom"><!-- --></A> 297<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 298<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 299<TR> 300<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 301<A NAME="navbar_bottom_firstrow"><!-- --></A> 302<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 303 <TR ALIGN="center" VALIGN="top"> 304 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 305 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 306 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 307 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RecordNumberBinding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 308 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 309 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 310 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 311 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 312 </TR> 313</TABLE> 314</TD> 315<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 316<b>Berkeley DB</b><br><font size="-1"> version 4.8.30</font></EM> 317</TD> 318</TR> 319 320<TR> 321<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 322 <A HREF="../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind"><B>PREV CLASS</B></A> 323 NEXT CLASS</FONT></TD> 324<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 325 <A HREF="../../../index.html?com/sleepycat/bind/RecordNumberBinding.html" target="_top"><B>FRAMES</B></A> 326 <A HREF="RecordNumberBinding.html" target="_top"><B>NO FRAMES</B></A> 327 <SCRIPT type="text/javascript"> 328 <!-- 329 if(window==top) { 330 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 331 } 332 //--> 333</SCRIPT> 334<NOSCRIPT> 335 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 336</NOSCRIPT> 337 338 339</FONT></TD> 340</TR> 341<TR> 342<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 343 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 344<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 345DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 346</TR> 347</TABLE> 348<A NAME="skip-navbar_bottom"></A> 349<!-- ======== END OF BOTTOM NAVBAR ======= --> 350 351<HR> 352<font size=1>Copyright (c) 1996-2009 Oracle. All rights reserved.</font> 353</BODY> 354</HTML> 355