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.5.0) on Thu May 15 17:17:31 EDT 2008 --> 6<TITLE> 7LogCursor (Oracle - Berkeley DB Java API) 8</TITLE> 9 10<META NAME="keywords" CONTENT="com.sleepycat.db.LogCursor class"> 11 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style"> 13 14<SCRIPT type="text/javascript"> 15function windowTitle() 16{ 17 parent.document.title="LogCursor (Oracle - Berkeley DB Java API)"; 18} 19</SCRIPT> 20<NOSCRIPT> 21</NOSCRIPT> 22 23</HEAD> 24 25<BODY BGCOLOR="white" onload="windowTitle();"> 26 27 28<!-- ========= START OF TOP NAVBAR ======= --> 29<A NAME="navbar_top"><!-- --></A> 30<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 31<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 32<TR> 33<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 34<A NAME="navbar_top_firstrow"><!-- --></A> 35<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 36 <TR ALIGN="center" VALIGN="top"> 37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LogCursor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 45 </TR> 46</TABLE> 47</TD> 48<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 49<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM> 50</TD> 51</TR> 52 53<TR> 54<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 55 <A HREF="../../../com/sleepycat/db/LockStats.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> 56 <A HREF="../../../com/sleepycat/db/LogRecordHandler.html" title="interface in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> 57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 58 <A HREF="../../../index.html?com/sleepycat/db/LogCursor.html" target="_top"><B>FRAMES</B></A> 59 <A HREF="LogCursor.html" target="_top"><B>NO FRAMES</B></A> 60 <SCRIPT type="text/javascript"> 61 <!-- 62 if(window==top) { 63 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 64 } 65 //--> 66</SCRIPT> 67<NOSCRIPT> 68 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 69</NOSCRIPT> 70 71 72</FONT></TD> 73</TR> 74<TR> 75<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 76 SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> 77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 78DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> 79</TR> 80</TABLE> 81<A NAME="skip-navbar_top"></A> 82<!-- ========= END OF TOP NAVBAR ========= --> 83 84<HR> 85<!-- ======== START OF CLASS DATA ======== --> 86<H2> 87<FONT SIZE="-1"> 88com.sleepycat.db</FONT> 89<BR> 90Class LogCursor</H2> 91<PRE> 92<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> 93 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.db.LogCursor</B> 94</PRE> 95<HR> 96<DL> 97<DT><PRE>public class <B>LogCursor</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL> 98</PRE> 99 100<P> 101The LogCursor object is the handle for a cursor into the log files, 102supporting sequential access to the records stored in log files. 103<p> 104The handle is not free-threaded. Once the <A HREF="../../../com/sleepycat/db/LogCursor.html#close()"><CODE>LogCursor.close</CODE></A> 105method is called, the handle may not be accessed again, regardless of 106that method's success or failure. 107<P> 108 109<P> 110<HR> 111 112<P> 113 114<!-- ========== METHOD SUMMARY =========== --> 115 116<A NAME="method_summary"><!-- --></A> 117<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 118<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 119<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 120<B>Method Summary</B></FONT></TH> 121</TR> 122<TR BGCOLOR="white" CLASS="TableRowColor"> 123<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 124<CODE> void</CODE></FONT></TD> 125<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#close()">close</A></B>()</CODE> 126 127<BR> 128 </TD> 129</TR> 130<TR BGCOLOR="white" CLASS="TableRowColor"> 131<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 132<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> 133<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#getCurrent(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)">getCurrent</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, 134 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> 135 136<BR> 137 Return the LogSequenceNumber and log record to which the log cursor 138 currently refers.</TD> 139</TR> 140<TR BGCOLOR="white" CLASS="TableRowColor"> 141<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 142<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> 143<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#getFirst(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)">getFirst</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, 144 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> 145 146<BR> 147 Return the first LogSequenceNumber and log record.</TD> 148</TR> 149<TR BGCOLOR="white" CLASS="TableRowColor"> 150<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 151<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> 152<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#getLast(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)">getLast</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, 153 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> 154 155<BR> 156 Return the last LogSequenceNumber and log record.</TD> 157</TR> 158<TR BGCOLOR="white" CLASS="TableRowColor"> 159<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 160<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> 161<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#getNext(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)">getNext</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, 162 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> 163 164<BR> 165 Return the next LogSequenceNumber and log record.</TD> 166</TR> 167<TR BGCOLOR="white" CLASS="TableRowColor"> 168<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 169<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> 170<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#getPrev(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)">getPrev</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, 171 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> 172 173<BR> 174 Return the previous LogSequenceNumber and log record.</TD> 175</TR> 176<TR BGCOLOR="white" CLASS="TableRowColor"> 177<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 178<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> 179<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#set(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)">set</A></B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, 180 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> 181 182<BR> 183 Return a specific log record.</TD> 184</TR> 185<TR BGCOLOR="white" CLASS="TableRowColor"> 186<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 187<CODE> int</CODE></FONT></TD> 188<TD><CODE><B><A HREF="../../../com/sleepycat/db/LogCursor.html#version()">version</A></B>()</CODE> 189 190<BR> 191 Get the log file version.</TD> 192</TR> 193</TABLE> 194 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 195<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 196<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 197<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" title="class or interface in java.lang">Object</A></B></TH> 198</TR> 199<TR BGCOLOR="white" CLASS="TableRowColor"> 200<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#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#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#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#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#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#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#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#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#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#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#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> 201</TR> 202</TABLE> 203 204<P> 205 206<!-- ============ METHOD DETAIL ========== --> 207 208<A NAME="method_detail"><!-- --></A> 209<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 210<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 211<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 212<B>Method Detail</B></FONT></TH> 213</TR> 214</TABLE> 215 216<A NAME="close()"><!-- --></A><H3> 217close</H3> 218<PRE> 219public void <B>close</B>() 220 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> 221<DL> 222<DD><DL> 223 224<DT><B>Throws:</B> 225<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE></DL> 226</DD> 227</DL> 228<HR> 229 230<A NAME="getCurrent(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3> 231getCurrent</H3> 232<PRE> 233public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getCurrent</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, 234 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) 235 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> 236<DL> 237<DD>Return the LogSequenceNumber and log record to which the log cursor 238 currently refers. 239 <p> 240<P> 241<DD><DL> 242<DT><B>Parameters:</B><DD><CODE>lsn</CODE> - The returned LogSequenceNumber. 243 <p><DD><CODE>data</CODE> - The returned log record. The data field is set to the record 244 retrieved, and the size field indicates the number of bytes in 245 the record. 246 <p> 247<DT><B>Returns:</B><DD>The status of the operation. 248 <p> 249 <p> 250<DT><B>Throws:</B> 251<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> 252</DD> 253</DL> 254<HR> 255 256<A NAME="getNext(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3> 257getNext</H3> 258<PRE> 259public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getNext</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, 260 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) 261 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> 262<DL> 263<DD>Return the next LogSequenceNumber and log record. 264 <p> 265 The current log position is advanced to the next record in the log, 266 and its LogSequenceNumber and data are returned. If the cursor has 267 not been initialized, the first available log record in the log will 268 be returned. 269 <p> 270<P> 271<DD><DL> 272<DT><B>Parameters:</B><DD><CODE>lsn</CODE> - The returned LogSequenceNumber. 273 <p><DD><CODE>data</CODE> - The returned log record. 274 <p> 275<DT><B>Returns:</B><DD>The status of the operation; a return of NOTFOUND indicates the last 276 log record has already been returned or the log is empty. 277 <p> 278 <p> 279<DT><B>Throws:</B> 280<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> 281</DD> 282</DL> 283<HR> 284 285<A NAME="getFirst(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3> 286getFirst</H3> 287<PRE> 288public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getFirst</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, 289 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) 290 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> 291<DL> 292<DD>Return the first LogSequenceNumber and log record. 293 <p> 294 The current log position is set to the first record in the log, 295 and its LogSequenceNumber and data are returned. 296 <p> 297<P> 298<DD><DL> 299<DT><B>Parameters:</B><DD><CODE>lsn</CODE> - The returned LogSequenceNumber. 300 <p><DD><CODE>data</CODE> - The returned log record. 301 <p> 302<DT><B>Returns:</B><DD>The status of the operation; a return of NOTFOUND indicates the log 303 is empty. 304 <p> 305 <p> 306<DT><B>Throws:</B> 307<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> 308</DD> 309</DL> 310<HR> 311 312<A NAME="getLast(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3> 313getLast</H3> 314<PRE> 315public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getLast</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, 316 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) 317 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> 318<DL> 319<DD>Return the last LogSequenceNumber and log record. 320 <p> 321 The current log position is set to the last record in the log, 322 and its LogSequenceNumber and data are returned. 323 <p> 324<P> 325<DD><DL> 326<DT><B>Parameters:</B><DD><CODE>lsn</CODE> - The returned LogSequenceNumber. 327 <p><DD><CODE>data</CODE> - The returned log record. 328 <p> 329<DT><B>Returns:</B><DD>The status of the operation; a return of NOTFOUND indicates the log 330 is empty. 331 <p> 332 <p> 333<DT><B>Throws:</B> 334<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> 335</DD> 336</DL> 337<HR> 338 339<A NAME="getPrev(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3> 340getPrev</H3> 341<PRE> 342public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getPrev</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, 343 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) 344 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> 345<DL> 346<DD>Return the previous LogSequenceNumber and log record. 347 <p> 348 The current log position is advanced to the previous record in the log, 349 and its LogSequenceNumber and data are returned. If the cursor has 350 not been initialized, the last available log record in the log will 351 be returned. 352 <p> 353<P> 354<DD><DL> 355<DT><B>Parameters:</B><DD><CODE>lsn</CODE> - The returned LogSequenceNumber. 356 <p><DD><CODE>data</CODE> - The returned log record. 357 <p> 358<DT><B>Returns:</B><DD>The status of the operation; a return of NOTFOUND indicates the first 359 log record has already been returned or the log is empty. 360 <p> 361 <p> 362<DT><B>Throws:</B> 363<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> 364</DD> 365</DL> 366<HR> 367 368<A NAME="set(com.sleepycat.db.LogSequenceNumber, com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3> 369set</H3> 370<PRE> 371public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>set</B>(<A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> lsn, 372 <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) 373 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> 374<DL> 375<DD>Return a specific log record. 376 <p> 377 The current log position is set to the specified record in the log, 378 and its data is returned. 379 <p> 380<P> 381<DD><DL> 382<DT><B>Parameters:</B><DD><CODE>lsn</CODE> - The specified LogSequenceNumber. 383 <p><DD><CODE>data</CODE> - The returned log record. 384 <p> 385<DT><B>Returns:</B><DD>The status of the operation. 386 <p> 387 <p> 388<DT><B>Throws:</B> 389<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> 390</DD> 391</DL> 392<HR> 393 394<A NAME="version()"><!-- --></A><H3> 395version</H3> 396<PRE> 397public int <B>version</B>() 398 throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> 399<DL> 400<DD>Get the log file version. 401 <p> 402<P> 403<DD><DL> 404 405<DT><B>Returns:</B><DD>The log file version. 406 <p> 407 <p> 408<DT><B>Throws:</B> 409<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> 410</DD> 411</DL> 412<!-- ========= END OF CLASS DATA ========= --> 413<HR> 414 415 416<!-- ======= START OF BOTTOM NAVBAR ====== --> 417<A NAME="navbar_bottom"><!-- --></A> 418<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 419<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 420<TR> 421<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 422<A NAME="navbar_bottom_firstrow"><!-- --></A> 423<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 424 <TR ALIGN="center" VALIGN="top"> 425 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 426 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 427 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 428 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LogCursor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 429 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 430 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 431 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 432 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 433 </TR> 434</TABLE> 435</TD> 436<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 437<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM> 438</TD> 439</TR> 440 441<TR> 442<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 443 <A HREF="../../../com/sleepycat/db/LockStats.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> 444 <A HREF="../../../com/sleepycat/db/LogRecordHandler.html" title="interface in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> 445<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 446 <A HREF="../../../index.html?com/sleepycat/db/LogCursor.html" target="_top"><B>FRAMES</B></A> 447 <A HREF="LogCursor.html" target="_top"><B>NO FRAMES</B></A> 448 <SCRIPT type="text/javascript"> 449 <!-- 450 if(window==top) { 451 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 452 } 453 //--> 454</SCRIPT> 455<NOSCRIPT> 456 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 457</NOSCRIPT> 458 459 460</FONT></TD> 461</TR> 462<TR> 463<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 464 SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> 465<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 466DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> 467</TR> 468</TABLE> 469<A NAME="skip-navbar_bottom"></A> 470<!-- ======== END OF BOTTOM NAVBAR ======= --> 471 472<HR> 473<font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 474</BODY> 475</HTML> 476