| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
|
| 3 |
<HTML> |
| 4 |
<HEAD> |
| 5 |
|
| 6 |
<TITLE> |
| 7 |
Cursor (Oracle - Berkeley DB Java API) |
| 8 |
</TITLE> |
| 9 |
|
| 10 |
<META NAME="date" CONTENT="2013-09-09"> |
| 11 |
|
| 12 |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style"> |
| 13 |
|
| 14 |
<SCRIPT type="text/javascript"> |
| 15 |
function windowTitle() |
| 16 |
{ |
| 17 |
if (location.href.indexOf('is-external=true') == -1) { |
| 18 |
parent.document.title="Cursor (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 |
|
| 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/Cursor.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 5.3.28</font></EM> |
| 53 |
</TD> |
| 54 |
</TR> |
| 55 |
|
| 56 |
<TR> |
| 57 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 58 |
<A HREF="../../../com/sleepycat/db/CompactStats.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> |
| 59 |
<A HREF="../../../com/sleepycat/db/CursorConfig.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> |
| 60 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 61 |
<A HREF="../../../index.html?com/sleepycat/db/Cursor.html" target="_top"><B>FRAMES</B></A> |
| 62 |
<A HREF="Cursor.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"> |
| 81 |
DETAIL: 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 |
|
| 86 |
|
| 87 |
<HR> |
| 88 |
|
| 89 |
<H2> |
| 90 |
<FONT SIZE="-1"> |
| 91 |
com.sleepycat.db</FONT> |
| 92 |
<BR> |
| 93 |
Class Cursor</H2> |
| 94 |
<PRE> |
| 95 |
<A HREF="http://download.oracle.com/javase/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.db.Cursor</B> |
| 97 |
</PRE> |
| 98 |
<DL> |
| 99 |
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../com/sleepycat/db/SecondaryCursor.html" title="class in com.sleepycat.db">SecondaryCursor</A></DD> |
| 100 |
</DL> |
| 101 |
<HR> |
| 102 |
<DL> |
| 103 |
<DT><PRE>public class <B>Cursor</B><DT>extends <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> |
| 104 |
</PRE> |
| 105 |
|
| 106 |
<P> |
| 107 |
A database cursor. Cursors are used for operating on collections of |
| 108 |
records, for iterating over a database, and for saving handles to |
| 109 |
individual records, so that they can be modified after they have been |
| 110 |
read. |
| 111 |
<p> |
| 112 |
Cursors may be used by multiple threads, but only serially. That is, |
| 113 |
the application must serialize access to the handle. |
| 114 |
<p> |
| 115 |
If the cursor is to be used to perform operations on behalf of a |
| 116 |
transaction, the cursor must be opened and closed within the context of |
| 117 |
that single transaction. |
| 118 |
<p> |
| 119 |
If you do not close the cursor before closing the database handle or the |
| 120 |
transaction handle that owns this cursor, then, closing a database |
| 121 |
handle or a transaction handle closes these open cursors. |
| 122 |
Once the cursor close method has been called, the handle may not be |
| 123 |
accessed again, regardless of the close method's success or failure. |
| 124 |
<p> |
| 125 |
To obtain a cursor with default attributes: |
| 126 |
<blockquote><pre> |
| 127 |
Cursor cursor = myDatabase.openCursor(txn, null); |
| 128 |
</pre></blockquote> |
| 129 |
To customize the attributes of a cursor, use a CursorConfig object. |
| 130 |
<blockquote><pre> |
| 131 |
CursorConfig config = new CursorConfig(); |
| 132 |
config.setDirtyRead(true); |
| 133 |
Cursor cursor = myDatabase.openCursor(txn, config); |
| 134 |
</pre></blockquote> |
| 135 |
<p> |
| 136 |
Modifications to the database during a sequential scan will be reflected |
| 137 |
in the scan; that is, records inserted behind a cursor will not be |
| 138 |
returned while records inserted in front of a cursor will be returned. |
| 139 |
In Queue and Recno databases, missing entries (that is, entries that |
| 140 |
were never explicitly created or that were created and then deleted) |
| 141 |
will be ignored during a sequential scan. |
| 142 |
<P> |
| 143 |
|
| 144 |
<P> |
| 145 |
<HR> |
| 146 |
|
| 147 |
<P> |
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
<A NAME="constructor_summary"></A> |
| 152 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 153 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 154 |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| 155 |
<B>Constructor Summary</B></FONT></TH> |
| 156 |
</TR> |
| 157 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 158 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 159 |
<CODE>protected </CODE></FONT></TD> |
| 160 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#Cursor(com.sleepycat.db.Database, com.sleepycat.db.CursorConfig)">Cursor</A></B>(<A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db">Database</A> database, |
| 161 |
<A HREF="../../../com/sleepycat/db/CursorConfig.html" title="class in com.sleepycat.db">CursorConfig</A> config)</CODE> |
| 162 |
|
| 163 |
<BR> |
| 164 |
</TD> |
| 165 |
</TR> |
| 166 |
</TABLE> |
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
<A NAME="method_summary"></A> |
| 171 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 172 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 173 |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| 174 |
<B>Method Summary</B></FONT></TH> |
| 175 |
</TR> |
| 176 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 177 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 178 |
<CODE> void</CODE></FONT></TD> |
| 179 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#close()">close</A></B>()</CODE> |
| 180 |
|
| 181 |
<BR> |
| 182 |
Discard the cursor.</TD> |
| 183 |
</TR> |
| 184 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 185 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 186 |
<CODE> int</CODE></FONT></TD> |
| 187 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#compare(com.sleepycat.db.Cursor)">compare</A></B>(<A HREF="../../../com/sleepycat/db/Cursor.html" title="class in com.sleepycat.db">Cursor</A> OtherCursor)</CODE> |
| 188 |
|
| 189 |
<BR> |
| 190 |
Return a comparison of the two cursors.</TD> |
| 191 |
</TR> |
| 192 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 193 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 194 |
<CODE> int</CODE></FONT></TD> |
| 195 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#count()">count</A></B>()</CODE> |
| 196 |
|
| 197 |
<BR> |
| 198 |
Return a count of the number of data items for the key to which the |
| 199 |
cursor refers.</TD> |
| 200 |
</TR> |
| 201 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 202 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 203 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 204 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#delete()">delete</A></B>()</CODE> |
| 205 |
|
| 206 |
<BR> |
| 207 |
Delete the key/data pair to which the cursor refers.</TD> |
| 208 |
</TR> |
| 209 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 210 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 211 |
<CODE> <A HREF="../../../com/sleepycat/db/Cursor.html" title="class in com.sleepycat.db">Cursor</A></CODE></FONT></TD> |
| 212 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#dup(boolean)">dup</A></B>(boolean samePosition)</CODE> |
| 213 |
|
| 214 |
<BR> |
| 215 |
Creates a new cursor that uses the same transaction and locker ID as the |
| 216 |
original cursor.</TD> |
| 217 |
</TR> |
| 218 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 219 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 220 |
<CODE> <A HREF="../../../com/sleepycat/db/CursorConfig.html" title="class in com.sleepycat.db">CursorConfig</A></CODE></FONT></TD> |
| 221 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getConfig()">getConfig</A></B>()</CODE> |
| 222 |
|
| 223 |
<BR> |
| 224 |
Return this cursor's configuration.</TD> |
| 225 |
</TR> |
| 226 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 227 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 228 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 229 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getCurrent(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getCurrent</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 230 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 231 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 232 |
|
| 233 |
<BR> |
| 234 |
Returns the key/data pair to which the cursor refers.</TD> |
| 235 |
</TR> |
| 236 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 237 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 238 |
<CODE> <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db">Database</A></CODE></FONT></TD> |
| 239 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getDatabase()">getDatabase</A></B>()</CODE> |
| 240 |
|
| 241 |
<BR> |
| 242 |
Return the Database handle associated with this Cursor.</TD> |
| 243 |
</TR> |
| 244 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 245 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 246 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 247 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getFirst(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getFirst</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 248 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 249 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 250 |
|
| 251 |
<BR> |
| 252 |
Move the cursor to the first key/data pair of the database, and return |
| 253 |
that pair.</TD> |
| 254 |
</TR> |
| 255 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 256 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 257 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 258 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getLast(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getLast</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 259 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 260 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 261 |
|
| 262 |
<BR> |
| 263 |
Move the cursor to the last key/data pair of the database, and return |
| 264 |
that pair.</TD> |
| 265 |
</TR> |
| 266 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 267 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 268 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 269 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getNext(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getNext</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 270 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 271 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 272 |
|
| 273 |
<BR> |
| 274 |
Move the cursor to the next key/data pair and return that pair.</TD> |
| 275 |
</TR> |
| 276 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 277 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 278 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 279 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getNextDup(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getNextDup</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 280 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 281 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 282 |
|
| 283 |
<BR> |
| 284 |
If the next key/data pair of the database is a duplicate data record for |
| 285 |
the current key/data pair, move the cursor to the next key/data pair |
| 286 |
of the database and return that pair.</TD> |
| 287 |
</TR> |
| 288 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 289 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 290 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 291 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getNextNoDup(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getNextNoDup</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 292 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 293 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 294 |
|
| 295 |
<BR> |
| 296 |
Move the cursor to the next non-duplicate key/data pair and return |
| 297 |
that pair.</TD> |
| 298 |
</TR> |
| 299 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 300 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 301 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 302 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getPrev(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getPrev</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 303 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 304 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 305 |
|
| 306 |
<BR> |
| 307 |
Move the cursor to the previous key/data pair and return that pair.</TD> |
| 308 |
</TR> |
| 309 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 310 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 311 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 312 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getPrevDup(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getPrevDup</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 313 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 314 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 315 |
|
| 316 |
<BR> |
| 317 |
If the previous key/data pair of the database is a duplicate data record |
| 318 |
for the current key/data pair, move the cursor to the previous key/data |
| 319 |
pair of the database and return that pair.</TD> |
| 320 |
</TR> |
| 321 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 322 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 323 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 324 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getPrevNoDup(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getPrevNoDup</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 325 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 326 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 327 |
|
| 328 |
<BR> |
| 329 |
Move the cursor to the previous non-duplicate key/data pair and return |
| 330 |
that pair.</TD> |
| 331 |
</TR> |
| 332 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 333 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 334 |
<CODE> <A HREF="../../../com/sleepycat/db/CacheFilePriority.html" title="class in com.sleepycat.db">CacheFilePriority</A></CODE></FONT></TD> |
| 335 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getPriority()">getPriority</A></B>()</CODE> |
| 336 |
|
| 337 |
<BR> |
| 338 |
Get the cache priority for pages referenced by the cursor.</TD> |
| 339 |
</TR> |
| 340 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 341 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 342 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 343 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getRecordNumber(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getRecordNumber</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 344 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 345 |
|
| 346 |
<BR> |
| 347 |
Return the record number associated with the cursor.</TD> |
| 348 |
</TR> |
| 349 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 350 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 351 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 352 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getSearchBoth(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getSearchBoth</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 353 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 354 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 355 |
|
| 356 |
<BR> |
| 357 |
Move the cursor to the specified key/data pair, where both the key and |
| 358 |
data items must match.</TD> |
| 359 |
</TR> |
| 360 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 361 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 362 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 363 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getSearchBothRange(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getSearchBothRange</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 364 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 365 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 366 |
|
| 367 |
<BR> |
| 368 |
Move the cursor to the specified key and matching data item of the database.</TD> |
| 369 |
</TR> |
| 370 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 371 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 372 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 373 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getSearchKey(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getSearchKey</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 374 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 375 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 376 |
|
| 377 |
<BR> |
| 378 |
Move the cursor to the given key of the database, and return the datum |
| 379 |
associated with the given key.</TD> |
| 380 |
</TR> |
| 381 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 382 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 383 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 384 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getSearchKeyRange(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getSearchKeyRange</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 385 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 386 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 387 |
|
| 388 |
<BR> |
| 389 |
Move the cursor to the closest matching key of the database, and return |
| 390 |
the data item associated with the matching key.</TD> |
| 391 |
</TR> |
| 392 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 393 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 394 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 395 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#getSearchRecordNumber(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)">getSearchRecordNumber</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 396 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 397 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode)</CODE> |
| 398 |
|
| 399 |
<BR> |
| 400 |
Move the cursor to the specific numbered record of the database, and |
| 401 |
return the associated key/data pair.</TD> |
| 402 |
</TR> |
| 403 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 404 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 405 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 406 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#put(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)">put</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 407 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> |
| 408 |
|
| 409 |
<BR> |
| 410 |
Store a key/data pair into the database.</TD> |
| 411 |
</TR> |
| 412 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 413 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 414 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 415 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#putAfter(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)">putAfter</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 416 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> |
| 417 |
|
| 418 |
<BR> |
| 419 |
Store a key/data pair into the database.</TD> |
| 420 |
</TR> |
| 421 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 422 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 423 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 424 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#putBefore(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)">putBefore</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 425 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> |
| 426 |
|
| 427 |
<BR> |
| 428 |
Store a key/data pair into the database.</TD> |
| 429 |
</TR> |
| 430 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 431 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 432 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 433 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#putCurrent(com.sleepycat.db.DatabaseEntry)">putCurrent</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> |
| 434 |
|
| 435 |
<BR> |
| 436 |
Replaces the data in the key/data pair at the current cursor position.</TD> |
| 437 |
</TR> |
| 438 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 439 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 440 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 441 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#putKeyFirst(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)">putKeyFirst</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 442 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> |
| 443 |
|
| 444 |
<BR> |
| 445 |
Store a key/data pair into the database.</TD> |
| 446 |
</TR> |
| 447 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 448 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 449 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 450 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#putKeyLast(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)">putKeyLast</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 451 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> |
| 452 |
|
| 453 |
<BR> |
| 454 |
Store a key/data pair into the database.</TD> |
| 455 |
</TR> |
| 456 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 457 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 458 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 459 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#putNoDupData(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)">putNoDupData</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 460 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> |
| 461 |
|
| 462 |
<BR> |
| 463 |
Store a key/data pair into the database.</TD> |
| 464 |
</TR> |
| 465 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 466 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 467 |
<CODE> <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A></CODE></FONT></TD> |
| 468 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#putNoOverwrite(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)">putNoOverwrite</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 469 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data)</CODE> |
| 470 |
|
| 471 |
<BR> |
| 472 |
Store a key/data pair into the database.</TD> |
| 473 |
</TR> |
| 474 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 475 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 476 |
<CODE> void</CODE></FONT></TD> |
| 477 |
<TD><CODE><B><A HREF="../../../com/sleepycat/db/Cursor.html#setPriority(com.sleepycat.db.CacheFilePriority)">setPriority</A></B>(<A HREF="../../../com/sleepycat/db/CacheFilePriority.html" title="class in com.sleepycat.db">CacheFilePriority</A> priority)</CODE> |
| 478 |
|
| 479 |
<BR> |
| 480 |
Set the cache priority for pages referenced by the DBC handle.</TD> |
| 481 |
</TR> |
| 482 |
</TABLE> |
| 483 |
<A NAME="methods_inherited_from_class_java.lang.Object"></A> |
| 484 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 485 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| 486 |
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
| 487 |
</TR> |
| 488 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 489 |
<TD><CODE><A HREF="http://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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> |
| 490 |
</TR> |
| 491 |
</TABLE> |
| 492 |
|
| 493 |
<P> |
| 494 |
|
| 495 |
|
| 496 |
|
| 497 |
<A NAME="constructor_detail"></A> |
| 498 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 499 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 500 |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| 501 |
<B>Constructor Detail</B></FONT></TH> |
| 502 |
</TR> |
| 503 |
</TABLE> |
| 504 |
|
| 505 |
<A NAME="Cursor(com.sleepycat.db.Database, com.sleepycat.db.CursorConfig)"></A><H3> |
| 506 |
Cursor</H3> |
| 507 |
<PRE> |
| 508 |
protected <B>Cursor</B>(<A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db">Database</A> database, |
| 509 |
<A HREF="../../../com/sleepycat/db/CursorConfig.html" title="class in com.sleepycat.db">CursorConfig</A> config)</PRE> |
| 510 |
<DL> |
| 511 |
</DL> |
| 512 |
|
| 513 |
|
| 514 |
|
| 515 |
<A NAME="method_detail"></A> |
| 516 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 517 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 518 |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| 519 |
<B>Method Detail</B></FONT></TH> |
| 520 |
</TR> |
| 521 |
</TABLE> |
| 522 |
|
| 523 |
<A NAME="close()"></A><H3> |
| 524 |
close</H3> |
| 525 |
<PRE> |
| 526 |
public void <B>close</B>() |
| 527 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 528 |
<DL> |
| 529 |
<DD>Discard the cursor. |
| 530 |
<p> |
| 531 |
After the close method has been called, you cannot use the cursor handle |
| 532 |
again. |
| 533 |
<p> |
| 534 |
It is not required to close the cursor explicitly before closing the |
| 535 |
database handle or the transaction handle that owns this cursor because |
| 536 |
closing a database handle or transaction handle closes those open cursor. |
| 537 |
<p> |
| 538 |
However, it is recommended that you always close all cursor handles |
| 539 |
immediately after their use to promote concurrency and to release resources |
| 540 |
such as page locks. |
| 541 |
<p> |
| 542 |
<P> |
| 543 |
<DD><DL> |
| 544 |
|
| 545 |
<DT><B>Throws:</B> |
| 546 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 547 |
deadlock. If the application is already intending to abort the transaction, |
| 548 |
this exception should be ignored, and the application should proceed. |
| 549 |
<p> |
| 550 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 551 |
</DD> |
| 552 |
</DL> |
| 553 |
<HR> |
| 554 |
|
| 555 |
<A NAME="dup(boolean)"></A><H3> |
| 556 |
dup</H3> |
| 557 |
<PRE> |
| 558 |
public <A HREF="../../../com/sleepycat/db/Cursor.html" title="class in com.sleepycat.db">Cursor</A> <B>dup</B>(boolean samePosition) |
| 559 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 560 |
<DL> |
| 561 |
<DD>Creates a new cursor that uses the same transaction and locker ID as the |
| 562 |
original cursor. |
| 563 |
<p> |
| 564 |
This is useful when an application is using locking and requires two |
| 565 |
or more cursors in the same thread of control. |
| 566 |
<p> |
| 567 |
<P> |
| 568 |
<DD><DL> |
| 569 |
<DT><B>Parameters:</B><DD><CODE>samePosition</CODE> - If true, the newly created cursor is initialized to refer to the |
| 570 |
same position in the database as the original cursor (if any) and |
| 571 |
hold the same locks (if any). If false, or the original cursor does |
| 572 |
not hold a database position and locks, the returned cursor is |
| 573 |
uninitialized and will behave like a newly created cursor. |
| 574 |
<p> |
| 575 |
<DT><B>Returns:</B><DD>A new cursor with the same transaction and locker ID as the original |
| 576 |
cursor. |
| 577 |
<p> |
| 578 |
<p> |
| 579 |
<DT><B>Throws:</B> |
| 580 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 581 |
</DD> |
| 582 |
</DL> |
| 583 |
<HR> |
| 584 |
|
| 585 |
<A NAME="getConfig()"></A><H3> |
| 586 |
getConfig</H3> |
| 587 |
<PRE> |
| 588 |
public <A HREF="../../../com/sleepycat/db/CursorConfig.html" title="class in com.sleepycat.db">CursorConfig</A> <B>getConfig</B>()</PRE> |
| 589 |
<DL> |
| 590 |
<DD>Return this cursor's configuration. |
| 591 |
<p> |
| 592 |
This may differ from the configuration used to open this object if |
| 593 |
the cursor existed previously. |
| 594 |
<p> |
| 595 |
<P> |
| 596 |
<DD><DL> |
| 597 |
|
| 598 |
<DT><B>Returns:</B><DD>This cursor's configuration. |
| 599 |
<p> |
| 600 |
<p> |
| 601 |
<DT><B>Throws:</B> |
| 602 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 603 |
</DD> |
| 604 |
</DL> |
| 605 |
<HR> |
| 606 |
|
| 607 |
<A NAME="getDatabase()"></A><H3> |
| 608 |
getDatabase</H3> |
| 609 |
<PRE> |
| 610 |
public <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db">Database</A> <B>getDatabase</B>()</PRE> |
| 611 |
<DL> |
| 612 |
<DD>Return the Database handle associated with this Cursor. |
| 613 |
|
| 614 |
<p> |
| 615 |
<P> |
| 616 |
<DD><DL> |
| 617 |
|
| 618 |
<DT><B>Returns:</B><DD>The Database handle associated with this Cursor. |
| 619 |
<p></DL> |
| 620 |
</DD> |
| 621 |
</DL> |
| 622 |
<HR> |
| 623 |
|
| 624 |
<A NAME="compare(com.sleepycat.db.Cursor)"></A><H3> |
| 625 |
compare</H3> |
| 626 |
<PRE> |
| 627 |
public int <B>compare</B>(<A HREF="../../../com/sleepycat/db/Cursor.html" title="class in com.sleepycat.db">Cursor</A> OtherCursor) |
| 628 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 629 |
<DL> |
| 630 |
<DD>Return a comparison of the two cursors. Two cursors are |
| 631 |
equal if and only if they are positioned |
| 632 |
on the same item in the same database. |
| 633 |
<p> |
| 634 |
<P> |
| 635 |
<DD><DL> |
| 636 |
|
| 637 |
<DT><B>Returns:</B><DD>An integer representing the result of the |
| 638 |
comparison between this cursor and OtherCursor (another |
| 639 |
cursor handle used as the comparator). 0 indicates that this cursor and |
| 640 |
OtherCursor are positioned on the same item, 1 |
| 641 |
indicates this cursor is greater than OtherCursor, -1 indicates that |
| 642 |
OtherCursor is greater than this cursor. |
| 643 |
<p> |
| 644 |
<p> |
| 645 |
<DT><B>Throws:</B> |
| 646 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 647 |
deadlock. |
| 648 |
<p> |
| 649 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 650 |
</DD> |
| 651 |
</DL> |
| 652 |
<HR> |
| 653 |
|
| 654 |
<A NAME="count()"></A><H3> |
| 655 |
count</H3> |
| 656 |
<PRE> |
| 657 |
public int <B>count</B>() |
| 658 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 659 |
<DL> |
| 660 |
<DD>Return a count of the number of data items for the key to which the |
| 661 |
cursor refers. |
| 662 |
<p> |
| 663 |
<P> |
| 664 |
<DD><DL> |
| 665 |
|
| 666 |
<DT><B>Returns:</B><DD>A count of the number of data items for the key to which the cursor |
| 667 |
refers. |
| 668 |
<p> |
| 669 |
<p> |
| 670 |
<DT><B>Throws:</B> |
| 671 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 672 |
deadlock. |
| 673 |
<p> |
| 674 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 675 |
</DD> |
| 676 |
</DL> |
| 677 |
<HR> |
| 678 |
|
| 679 |
<A NAME="delete()"></A><H3> |
| 680 |
delete</H3> |
| 681 |
<PRE> |
| 682 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>delete</B>() |
| 683 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 684 |
<DL> |
| 685 |
<DD>Delete the key/data pair to which the cursor refers. |
| 686 |
<p> |
| 687 |
When called on a cursor opened on a database that has been made into a |
| 688 |
secondary index, this method deletes the key/data pair from the primary database |
| 689 |
and all secondary indices. |
| 690 |
<p> |
| 691 |
The cursor position is unchanged after a delete, and subsequent calls |
| 692 |
to cursor functions expecting the cursor to refer to an existing key |
| 693 |
will fail. |
| 694 |
<p> |
| 695 |
<p> |
| 696 |
<P> |
| 697 |
<DD><DL> |
| 698 |
|
| 699 |
<DT><B>Throws:</B> |
| 700 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 701 |
deadlock. |
| 702 |
<p> |
| 703 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 704 |
</DD> |
| 705 |
</DL> |
| 706 |
<HR> |
| 707 |
|
| 708 |
<A NAME="getCurrent(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 709 |
getCurrent</H3> |
| 710 |
<PRE> |
| 711 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getCurrent</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 712 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 713 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 714 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 715 |
<DL> |
| 716 |
<DD>Returns the key/data pair to which the cursor refers. |
| 717 |
<p> |
| 718 |
If this method fails for any reason, the position of the cursor will be |
| 719 |
unchanged. |
| 720 |
<P> |
| 721 |
<DD><DL> |
| 722 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key |
| 723 |
returned as output. Its byte array does not need to be initialized by the |
| 724 |
caller.<DD><CODE>data</CODE> - the data |
| 725 |
returned as output. Multiple results can be retrieved by passing an object |
| 726 |
that is a subclass of <A HREF="../../../com/sleepycat/db/MultipleEntry.html" title="class in com.sleepycat.db"><CODE>MultipleEntry</CODE></A>, otherwise its byte array does not |
| 727 |
need to be initialized by the caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 728 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the key/pair at the cursor |
| 729 |
position has been deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 730 |
<DT><B>Throws:</B> |
| 731 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 732 |
does not contain a required non-null byte array. |
| 733 |
<p> |
| 734 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 735 |
deadlock. |
| 736 |
<p> |
| 737 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 738 |
<p> |
| 739 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 740 |
<p></DL> |
| 741 |
</DD> |
| 742 |
</DL> |
| 743 |
<HR> |
| 744 |
|
| 745 |
<A NAME="getFirst(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 746 |
getFirst</H3> |
| 747 |
<PRE> |
| 748 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getFirst</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 749 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 750 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 751 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 752 |
<DL> |
| 753 |
<DD>Move the cursor to the first key/data pair of the database, and return |
| 754 |
that pair. If the first key has duplicate values, the first data item |
| 755 |
in the set of duplicates is returned. |
| 756 |
<p> |
| 757 |
If this method fails for any reason, the position of the cursor will be |
| 758 |
unchanged. |
| 759 |
<P> |
| 760 |
<DD><DL> |
| 761 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key |
| 762 |
returned as output. Its byte array does not need to be initialized by the |
| 763 |
caller.<DD><CODE>data</CODE> - the data |
| 764 |
returned as output. Multiple results can be retrieved by passing an object |
| 765 |
that is a subclass of <A HREF="../../../com/sleepycat/db/MultipleEntry.html" title="class in com.sleepycat.db"><CODE>MultipleEntry</CODE></A>, otherwise its byte array does not |
| 766 |
need to be initialized by the caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 767 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#NOTFOUND"><CODE>OperationStatus.NOTFOUND</CODE></A> if no matching key/data pair is |
| 768 |
found; <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 769 |
<DT><B>Throws:</B> |
| 770 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 771 |
does not contain a required non-null byte array. |
| 772 |
<p> |
| 773 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 774 |
deadlock. |
| 775 |
<p> |
| 776 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 777 |
<p> |
| 778 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 779 |
<p></DL> |
| 780 |
</DD> |
| 781 |
</DL> |
| 782 |
<HR> |
| 783 |
|
| 784 |
<A NAME="getLast(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 785 |
getLast</H3> |
| 786 |
<PRE> |
| 787 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getLast</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 788 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 789 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 790 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 791 |
<DL> |
| 792 |
<DD>Move the cursor to the last key/data pair of the database, and return |
| 793 |
that pair. If the last key has duplicate values, the last data item in |
| 794 |
the set of duplicates is returned. |
| 795 |
<p> |
| 796 |
If this method fails for any reason, the position of the cursor will be |
| 797 |
unchanged. |
| 798 |
<P> |
| 799 |
<DD><DL> |
| 800 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key |
| 801 |
returned as output. Its byte array does not need to be initialized by the |
| 802 |
caller.<DD><CODE>data</CODE> - the data |
| 803 |
returned as output. Its byte array does not need to be initialized by the |
| 804 |
caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 805 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#NOTFOUND"><CODE>OperationStatus.NOTFOUND</CODE></A> if no matching key/data pair is |
| 806 |
found; <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 807 |
<DT><B>Throws:</B> |
| 808 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 809 |
does not contain a required non-null byte array. |
| 810 |
<p> |
| 811 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 812 |
deadlock. |
| 813 |
<p> |
| 814 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 815 |
<p> |
| 816 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 817 |
<p></DL> |
| 818 |
</DD> |
| 819 |
</DL> |
| 820 |
<HR> |
| 821 |
|
| 822 |
<A NAME="getNext(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 823 |
getNext</H3> |
| 824 |
<PRE> |
| 825 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getNext</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 826 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 827 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 828 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 829 |
<DL> |
| 830 |
<DD>Move the cursor to the next key/data pair and return that pair. If |
| 831 |
the matching key has duplicate values, the first data item in the set |
| 832 |
of duplicates is returned. |
| 833 |
<p> |
| 834 |
If the cursor is not yet initialized, move the cursor to the first |
| 835 |
key/data pair of the database, and return that pair. Otherwise, the |
| 836 |
cursor is moved to the next key/data pair of the database, and that pair |
| 837 |
is returned. In the presence of duplicate key values, the value of the |
| 838 |
key may not change. |
| 839 |
<p> |
| 840 |
If this method fails for any reason, the position of the cursor will be |
| 841 |
unchanged. |
| 842 |
<P> |
| 843 |
<DD><DL> |
| 844 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key |
| 845 |
returned as output. Its byte array does not need to be initialized by the |
| 846 |
caller.<DD><CODE>data</CODE> - the data |
| 847 |
returned as output. Multiple results can be retrieved by passing an object |
| 848 |
that is a subclass of <A HREF="../../../com/sleepycat/db/MultipleEntry.html" title="class in com.sleepycat.db"><CODE>MultipleEntry</CODE></A>, otherwise its byte array does not |
| 849 |
need to be initialized by the caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 850 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#NOTFOUND"><CODE>OperationStatus.NOTFOUND</CODE></A> if no matching key/data pair is |
| 851 |
found; <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 852 |
<DT><B>Throws:</B> |
| 853 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 854 |
does not contain a required non-null byte array. |
| 855 |
<p> |
| 856 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 857 |
deadlock. |
| 858 |
<p> |
| 859 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 860 |
<p> |
| 861 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 862 |
<p></DL> |
| 863 |
</DD> |
| 864 |
</DL> |
| 865 |
<HR> |
| 866 |
|
| 867 |
<A NAME="getNextDup(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 868 |
getNextDup</H3> |
| 869 |
<PRE> |
| 870 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getNextDup</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 871 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 872 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 873 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 874 |
<DL> |
| 875 |
<DD>If the next key/data pair of the database is a duplicate data record for |
| 876 |
the current key/data pair, move the cursor to the next key/data pair |
| 877 |
of the database and return that pair. |
| 878 |
<p> |
| 879 |
If this method fails for any reason, the position of the cursor will be |
| 880 |
unchanged. |
| 881 |
<P> |
| 882 |
<DD><DL> |
| 883 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key |
| 884 |
returned as output. Its byte array does not need to be initialized by the |
| 885 |
caller.<DD><CODE>data</CODE> - the data |
| 886 |
returned as output. Multiple results can be retrieved by passing an object |
| 887 |
that is a subclass of <A HREF="../../../com/sleepycat/db/MultipleEntry.html" title="class in com.sleepycat.db"><CODE>MultipleEntry</CODE></A>, otherwise its byte array does not |
| 888 |
need to be initialized by the caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 889 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#NOTFOUND"><CODE>OperationStatus.NOTFOUND</CODE></A> if no matching key/data pair is |
| 890 |
found; <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 891 |
<DT><B>Throws:</B> |
| 892 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 893 |
does not contain a required non-null byte array. |
| 894 |
<p> |
| 895 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 896 |
deadlock. |
| 897 |
<p> |
| 898 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 899 |
<p> |
| 900 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 901 |
<p></DL> |
| 902 |
</DD> |
| 903 |
</DL> |
| 904 |
<HR> |
| 905 |
|
| 906 |
<A NAME="getNextNoDup(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 907 |
getNextNoDup</H3> |
| 908 |
<PRE> |
| 909 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getNextNoDup</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 910 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 911 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 912 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 913 |
<DL> |
| 914 |
<DD>Move the cursor to the next non-duplicate key/data pair and return |
| 915 |
that pair. If the matching key has duplicate values, the first data |
| 916 |
item in the set of duplicates is returned. |
| 917 |
<p> |
| 918 |
If the cursor is not yet initialized, move the cursor to the first |
| 919 |
key/data pair of the database, and return that pair. Otherwise, the |
| 920 |
cursor is moved to the next non-duplicate key of the database, and that |
| 921 |
key/data pair is returned. |
| 922 |
<p> |
| 923 |
If this method fails for any reason, the position of the cursor will be |
| 924 |
unchanged. |
| 925 |
<P> |
| 926 |
<DD><DL> |
| 927 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key |
| 928 |
returned as output. Its byte array does not need to be initialized by the |
| 929 |
caller.<DD><CODE>data</CODE> - the data |
| 930 |
returned as output. Multiple results can be retrieved by passing an object |
| 931 |
that is a subclass of <A HREF="../../../com/sleepycat/db/MultipleEntry.html" title="class in com.sleepycat.db"><CODE>MultipleEntry</CODE></A>, otherwise its byte array does not |
| 932 |
need to be initialized by the caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 933 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#NOTFOUND"><CODE>OperationStatus.NOTFOUND</CODE></A> if no matching key/data pair is |
| 934 |
found; <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 935 |
<DT><B>Throws:</B> |
| 936 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 937 |
does not contain a required non-null byte array. |
| 938 |
<p> |
| 939 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 940 |
deadlock. |
| 941 |
<p> |
| 942 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 943 |
<p> |
| 944 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 945 |
<p></DL> |
| 946 |
</DD> |
| 947 |
</DL> |
| 948 |
<HR> |
| 949 |
|
| 950 |
<A NAME="getPrev(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 951 |
getPrev</H3> |
| 952 |
<PRE> |
| 953 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getPrev</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 954 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 955 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 956 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 957 |
<DL> |
| 958 |
<DD>Move the cursor to the previous key/data pair and return that pair. |
| 959 |
If the matching key has duplicate values, the last data item in the set |
| 960 |
of duplicates is returned. |
| 961 |
<p> |
| 962 |
If the cursor is not yet initialized, move the cursor to the last |
| 963 |
key/data pair of the database, and return that pair. Otherwise, the |
| 964 |
cursor is moved to the previous key/data pair of the database, and that |
| 965 |
pair is returned. In the presence of duplicate key values, the value of |
| 966 |
the key may not change. |
| 967 |
<p> |
| 968 |
If this method fails for any reason, the position of the cursor will be |
| 969 |
unchanged. |
| 970 |
<P> |
| 971 |
<DD><DL> |
| 972 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key |
| 973 |
returned as output. Its byte array does not need to be initialized by the |
| 974 |
caller.<DD><CODE>data</CODE> - the data |
| 975 |
returned as output. Its byte array does not need to be initialized by the |
| 976 |
caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 977 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#NOTFOUND"><CODE>OperationStatus.NOTFOUND</CODE></A> if no matching key/data pair is |
| 978 |
found; <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 979 |
<DT><B>Throws:</B> |
| 980 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 981 |
does not contain a required non-null byte array. |
| 982 |
<p> |
| 983 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 984 |
deadlock. |
| 985 |
<p> |
| 986 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 987 |
<p> |
| 988 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 989 |
<p></DL> |
| 990 |
</DD> |
| 991 |
</DL> |
| 992 |
<HR> |
| 993 |
|
| 994 |
<A NAME="getPrevDup(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 995 |
getPrevDup</H3> |
| 996 |
<PRE> |
| 997 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getPrevDup</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 998 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 999 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 1000 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1001 |
<DL> |
| 1002 |
<DD>If the previous key/data pair of the database is a duplicate data record |
| 1003 |
for the current key/data pair, move the cursor to the previous key/data |
| 1004 |
pair of the database and return that pair. |
| 1005 |
<p> |
| 1006 |
If this method fails for any reason, the position of the cursor will be |
| 1007 |
unchanged. |
| 1008 |
<P> |
| 1009 |
<DD><DL> |
| 1010 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key |
| 1011 |
returned as output. Its byte array does not need to be initialized by the |
| 1012 |
caller.<DD><CODE>data</CODE> - the data |
| 1013 |
returned as output. Its byte array does not need to be initialized by the |
| 1014 |
caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 1015 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#NOTFOUND"><CODE>OperationStatus.NOTFOUND</CODE></A> if no matching key/data pair is |
| 1016 |
found; <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 1017 |
<DT><B>Throws:</B> |
| 1018 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 1019 |
does not contain a required non-null byte array. |
| 1020 |
<p> |
| 1021 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1022 |
deadlock. |
| 1023 |
<p> |
| 1024 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1025 |
<p> |
| 1026 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 1027 |
<p></DL> |
| 1028 |
</DD> |
| 1029 |
</DL> |
| 1030 |
<HR> |
| 1031 |
|
| 1032 |
<A NAME="getPrevNoDup(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 1033 |
getPrevNoDup</H3> |
| 1034 |
<PRE> |
| 1035 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getPrevNoDup</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 1036 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 1037 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 1038 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1039 |
<DL> |
| 1040 |
<DD>Move the cursor to the previous non-duplicate key/data pair and return |
| 1041 |
that pair. If the matching key has duplicate values, the last data item |
| 1042 |
in the set of duplicates is returned. |
| 1043 |
<p> |
| 1044 |
If the cursor is not yet initialized, move the cursor to the last |
| 1045 |
key/data pair of the database, and return that pair. Otherwise, the |
| 1046 |
cursor is moved to the previous non-duplicate key of the database, and |
| 1047 |
that key/data pair is returned. |
| 1048 |
<p> |
| 1049 |
If this method fails for any reason, the position of the cursor will be |
| 1050 |
unchanged. |
| 1051 |
<P> |
| 1052 |
<DD><DL> |
| 1053 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key |
| 1054 |
returned as output. Its byte array does not need to be initialized by the |
| 1055 |
caller.<DD><CODE>data</CODE> - the data |
| 1056 |
returned as output. Its byte array does not need to be initialized by the |
| 1057 |
caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 1058 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#NOTFOUND"><CODE>OperationStatus.NOTFOUND</CODE></A> if no matching key/data pair is |
| 1059 |
found; <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 1060 |
<DT><B>Throws:</B> |
| 1061 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 1062 |
does not contain a required non-null byte array. |
| 1063 |
<p> |
| 1064 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1065 |
deadlock. |
| 1066 |
<p> |
| 1067 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1068 |
<p> |
| 1069 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 1070 |
<p></DL> |
| 1071 |
</DD> |
| 1072 |
</DL> |
| 1073 |
<HR> |
| 1074 |
|
| 1075 |
<A NAME="getRecordNumber(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 1076 |
getRecordNumber</H3> |
| 1077 |
<PRE> |
| 1078 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getRecordNumber</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 1079 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 1080 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1081 |
<DL> |
| 1082 |
<DD>Return the record number associated with the cursor. The record number |
| 1083 |
will be returned in the data parameter. |
| 1084 |
<p> |
| 1085 |
For this method to be called, the underlying database must be of type |
| 1086 |
Btree, and it must have been configured to support record numbers. |
| 1087 |
<p> |
| 1088 |
If this method fails for any reason, the position of the cursor will be |
| 1089 |
unchanged. |
| 1090 |
<P> |
| 1091 |
<DD><DL> |
| 1092 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the data |
| 1093 |
returned as output. Its byte array does not need to be initialized by the |
| 1094 |
caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 1095 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#NOTFOUND"><CODE>OperationStatus.NOTFOUND</CODE></A> if no matching key/data pair is |
| 1096 |
found; <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 1097 |
<DT><B>Throws:</B> |
| 1098 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 1099 |
does not contain a required non-null byte array. |
| 1100 |
<p> |
| 1101 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1102 |
deadlock. |
| 1103 |
<p> |
| 1104 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1105 |
<p> |
| 1106 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 1107 |
<p></DL> |
| 1108 |
</DD> |
| 1109 |
</DL> |
| 1110 |
<HR> |
| 1111 |
|
| 1112 |
<A NAME="getSearchKey(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 1113 |
getSearchKey</H3> |
| 1114 |
<PRE> |
| 1115 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getSearchKey</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 1116 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 1117 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 1118 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1119 |
<DL> |
| 1120 |
<DD>Move the cursor to the given key of the database, and return the datum |
| 1121 |
associated with the given key. If the matching key has duplicate |
| 1122 |
values, the first data item in the set of duplicates is returned. |
| 1123 |
<p> |
| 1124 |
If this method fails for any reason, the position of the cursor will be |
| 1125 |
unchanged. |
| 1126 |
<P> |
| 1127 |
<DD><DL> |
| 1128 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key |
| 1129 |
used as input. It must be initialized with a non-null byte array by the |
| 1130 |
caller.<DD><CODE>data</CODE> - the data |
| 1131 |
returned as output. Multiple results can be retrieved by passing an object |
| 1132 |
that is a subclass of <A HREF="../../../com/sleepycat/db/MultipleEntry.html" title="class in com.sleepycat.db"><CODE>MultipleEntry</CODE></A>, otherwise its byte array does not |
| 1133 |
need to be initialized by the caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 1134 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#NOTFOUND"><CODE>OperationStatus.NOTFOUND</CODE></A> if no matching key/data pair is |
| 1135 |
found; <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 1136 |
<DT><B>Throws:</B> |
| 1137 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 1138 |
does not contain a required non-null byte array. |
| 1139 |
<p> |
| 1140 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1141 |
deadlock. |
| 1142 |
<p> |
| 1143 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1144 |
<p> |
| 1145 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 1146 |
<p></DL> |
| 1147 |
</DD> |
| 1148 |
</DL> |
| 1149 |
<HR> |
| 1150 |
|
| 1151 |
<A NAME="getSearchKeyRange(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 1152 |
getSearchKeyRange</H3> |
| 1153 |
<PRE> |
| 1154 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getSearchKeyRange</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 1155 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 1156 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 1157 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1158 |
<DL> |
| 1159 |
<DD>Move the cursor to the closest matching key of the database, and return |
| 1160 |
the data item associated with the matching key. If the matching key has |
| 1161 |
duplicate values, the first data item in the set of duplicates is returned. |
| 1162 |
<p> |
| 1163 |
The returned key/data pair is for the smallest key greater than or equal |
| 1164 |
to the specified key (as determined by the key comparison function), |
| 1165 |
permitting partial key matches and range searches. |
| 1166 |
<p> |
| 1167 |
If this method fails for any reason, the position of the cursor will be |
| 1168 |
unchanged. |
| 1169 |
<P> |
| 1170 |
<DD><DL> |
| 1171 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key |
| 1172 |
used as input and returned as output. It must be initialized with a non-null |
| 1173 |
byte array by the caller.<DD><CODE>data</CODE> - the data |
| 1174 |
returned as output. Multiple results can be retrieved by passing an object |
| 1175 |
that is a subclass of <A HREF="../../../com/sleepycat/db/MultipleEntry.html" title="class in com.sleepycat.db"><CODE>MultipleEntry</CODE></A>, otherwise its byte array does not |
| 1176 |
need to be initialized by the caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 1177 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#NOTFOUND"><CODE>OperationStatus.NOTFOUND</CODE></A> if no matching key/data pair is |
| 1178 |
found; <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 1179 |
<DT><B>Throws:</B> |
| 1180 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 1181 |
does not contain a required non-null byte array. |
| 1182 |
<p> |
| 1183 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1184 |
deadlock. |
| 1185 |
<p> |
| 1186 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1187 |
<p> |
| 1188 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 1189 |
<p></DL> |
| 1190 |
</DD> |
| 1191 |
</DL> |
| 1192 |
<HR> |
| 1193 |
|
| 1194 |
<A NAME="getSearchBoth(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 1195 |
getSearchBoth</H3> |
| 1196 |
<PRE> |
| 1197 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getSearchBoth</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 1198 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 1199 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 1200 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1201 |
<DL> |
| 1202 |
<DD>Move the cursor to the specified key/data pair, where both the key and |
| 1203 |
data items must match. |
| 1204 |
<p> |
| 1205 |
If this method fails for any reason, the position of the cursor will be |
| 1206 |
unchanged. |
| 1207 |
<P> |
| 1208 |
<DD><DL> |
| 1209 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key |
| 1210 |
used as input. It must be initialized with a non-null byte array by the |
| 1211 |
caller.<DD><CODE>data</CODE> - the data |
| 1212 |
used as input. It must be initialized with a non-null byte array by the |
| 1213 |
caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 1214 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#NOTFOUND"><CODE>OperationStatus.NOTFOUND</CODE></A> if no matching key/data pair is |
| 1215 |
found; <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 1216 |
<DT><B>Throws:</B> |
| 1217 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 1218 |
does not contain a required non-null byte array. |
| 1219 |
<p> |
| 1220 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1221 |
deadlock. |
| 1222 |
<p> |
| 1223 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1224 |
<p> |
| 1225 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 1226 |
<p></DL> |
| 1227 |
</DD> |
| 1228 |
</DL> |
| 1229 |
<HR> |
| 1230 |
|
| 1231 |
<A NAME="getSearchBothRange(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 1232 |
getSearchBothRange</H3> |
| 1233 |
<PRE> |
| 1234 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getSearchBothRange</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 1235 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 1236 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 1237 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1238 |
<DL> |
| 1239 |
<DD>Move the cursor to the specified key and matching data item of the database. |
| 1240 |
<p> |
| 1241 |
In the case of any database supporting sorted duplicate sets, the returned |
| 1242 |
key/data pair is for the smallest data item greater than or equal to the |
| 1243 |
specified data item (as determined by the duplicate comparison function), |
| 1244 |
permitting partial matches and range searches in duplicate data sets. |
| 1245 |
<p> |
| 1246 |
If this method fails for any reason, the position of the cursor will be |
| 1247 |
unchanged. |
| 1248 |
<P> |
| 1249 |
<DD><DL> |
| 1250 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key |
| 1251 |
used as input and returned as output. It must be initialized with a non-null |
| 1252 |
byte array by the caller.<DD><CODE>data</CODE> - the data |
| 1253 |
used as input and returned as output. It must be initialized with a non-null |
| 1254 |
byte array by the caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 1255 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#NOTFOUND"><CODE>OperationStatus.NOTFOUND</CODE></A> if no matching key/data pair is |
| 1256 |
found; <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 1257 |
<DT><B>Throws:</B> |
| 1258 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 1259 |
does not contain a required non-null byte array. |
| 1260 |
<p> |
| 1261 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1262 |
deadlock. |
| 1263 |
<p> |
| 1264 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1265 |
<p> |
| 1266 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 1267 |
<p></DL> |
| 1268 |
</DD> |
| 1269 |
</DL> |
| 1270 |
<HR> |
| 1271 |
|
| 1272 |
<A NAME="getSearchRecordNumber(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.LockMode)"></A><H3> |
| 1273 |
getSearchRecordNumber</H3> |
| 1274 |
<PRE> |
| 1275 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>getSearchRecordNumber</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 1276 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data, |
| 1277 |
<A HREF="../../../com/sleepycat/db/LockMode.html" title="class in com.sleepycat.db">LockMode</A> lockMode) |
| 1278 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1279 |
<DL> |
| 1280 |
<DD>Move the cursor to the specific numbered record of the database, and |
| 1281 |
return the associated key/data pair. |
| 1282 |
<p> |
| 1283 |
The data field of the specified key must be a byte array containing a |
| 1284 |
record number, as described in <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A>. This determines |
| 1285 |
the record to be retrieved. |
| 1286 |
<p> |
| 1287 |
For this method to be called, the underlying database must be of type |
| 1288 |
Btree, and it must have been configured to support record numbers. |
| 1289 |
<p> |
| 1290 |
If this method fails for any reason, the position of the cursor will be |
| 1291 |
unchanged. |
| 1292 |
<P> |
| 1293 |
<DD><DL> |
| 1294 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key |
| 1295 |
returned as output. Its byte array does not need to be initialized by the |
| 1296 |
caller.<DD><CODE>data</CODE> - the data |
| 1297 |
returned as output. Multiple results can be retrieved by passing an object |
| 1298 |
that is a subclass of <A HREF="../../../com/sleepycat/db/MultipleEntry.html" title="class in com.sleepycat.db"><CODE>MultipleEntry</CODE></A>, otherwise its byte array does not |
| 1299 |
need to be initialized by the caller.<DD><CODE>lockMode</CODE> - the locking attributes; if null, default attributes are used. |
| 1300 |
<DT><B>Returns:</B><DD><A HREF="../../../com/sleepycat/db/OperationStatus.html#NOTFOUND"><CODE>OperationStatus.NOTFOUND</CODE></A> if no matching key/data pair is |
| 1301 |
found; <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A> if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted; otherwise, <A HREF="../../../com/sleepycat/db/OperationStatus.html#SUCCESS"><CODE>OperationStatus.SUCCESS</CODE></A>. |
| 1302 |
<DT><B>Throws:</B> |
| 1303 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if a DatabaseEntry parameter is null or |
| 1304 |
does not contain a required non-null byte array. |
| 1305 |
<p> |
| 1306 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1307 |
deadlock. |
| 1308 |
<p> |
| 1309 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1310 |
<p> |
| 1311 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs. |
| 1312 |
<p></DL> |
| 1313 |
</DD> |
| 1314 |
</DL> |
| 1315 |
<HR> |
| 1316 |
|
| 1317 |
<A NAME="put(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)"></A><H3> |
| 1318 |
put</H3> |
| 1319 |
<PRE> |
| 1320 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>put</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 1321 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) |
| 1322 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1323 |
<DL> |
| 1324 |
<DD>Store a key/data pair into the database. |
| 1325 |
<p> |
| 1326 |
If the put method succeeds, the cursor is always positioned to refer to |
| 1327 |
the newly inserted item. If the put method fails for any reason, the |
| 1328 |
state of the cursor will be unchanged. |
| 1329 |
<p> |
| 1330 |
If the key already appears in the database and duplicates are supported, |
| 1331 |
the new data value is inserted at the correct sorted location. If the |
| 1332 |
key already appears in the database and duplicates are not supported, |
| 1333 |
the existing key/data pair will be replaced. |
| 1334 |
<p> |
| 1335 |
<P> |
| 1336 |
<DD><DL> |
| 1337 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> operated on. |
| 1338 |
<p><DD><CODE>data</CODE> - the data <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> stored. |
| 1339 |
<p> |
| 1340 |
<p> |
| 1341 |
<DT><B>Throws:</B> |
| 1342 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1343 |
deadlock. |
| 1344 |
<p> |
| 1345 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1346 |
<p> |
| 1347 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 1348 |
</DD> |
| 1349 |
</DL> |
| 1350 |
<HR> |
| 1351 |
|
| 1352 |
<A NAME="putAfter(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)"></A><H3> |
| 1353 |
putAfter</H3> |
| 1354 |
<PRE> |
| 1355 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>putAfter</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 1356 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) |
| 1357 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1358 |
<DL> |
| 1359 |
<DD>Store a key/data pair into the database. |
| 1360 |
<p> |
| 1361 |
If the putAfter method succeeds, the cursor is always positioned to refer to |
| 1362 |
the newly inserted item. If the putAfter method fails for any reason, the |
| 1363 |
state of the cursor will be unchanged. |
| 1364 |
<p> |
| 1365 |
In the case of the Btree and Hash access methods, insert the data |
| 1366 |
element as a duplicate element of the key to which the cursor refers. |
| 1367 |
The new element appears immediately |
| 1368 |
after |
| 1369 |
the current cursor position. It is an error to call this method if the |
| 1370 |
underlying Btree or Hash database does not support duplicate data items. |
| 1371 |
The key parameter is ignored. |
| 1372 |
<p> |
| 1373 |
In the case of the Hash access method, the putAfter method will fail and |
| 1374 |
throw an exception if the current cursor record has already been deleted. |
| 1375 |
<p> |
| 1376 |
In the case of the Recno access method, it is an error to call this |
| 1377 |
method if the underlying Recno database was not configured to have |
| 1378 |
mutable record numbers. A new key is created, all records after the |
| 1379 |
inserted item are automatically renumbered, and the key of the new |
| 1380 |
record is returned in the key parameter. The initial value of the key |
| 1381 |
parameter is ignored. |
| 1382 |
<p> |
| 1383 |
The putAfter method may not be called for the Queue access method. |
| 1384 |
<p> |
| 1385 |
<P> |
| 1386 |
<DD><DL> |
| 1387 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> operated on. |
| 1388 |
<p><DD><CODE>data</CODE> - the data <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> stored. |
| 1389 |
<p> |
| 1390 |
<p> |
| 1391 |
<DT><B>Throws:</B> |
| 1392 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1393 |
deadlock. |
| 1394 |
<p> |
| 1395 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1396 |
<p> |
| 1397 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 1398 |
</DD> |
| 1399 |
</DL> |
| 1400 |
<HR> |
| 1401 |
|
| 1402 |
<A NAME="putBefore(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)"></A><H3> |
| 1403 |
putBefore</H3> |
| 1404 |
<PRE> |
| 1405 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>putBefore</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 1406 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) |
| 1407 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1408 |
<DL> |
| 1409 |
<DD>Store a key/data pair into the database. |
| 1410 |
<p> |
| 1411 |
If the putBefore method succeeds, the cursor is always positioned to refer to |
| 1412 |
the newly inserted item. If the putBefore method fails for any reason, the |
| 1413 |
state of the cursor will be unchanged. |
| 1414 |
<p> |
| 1415 |
In the case of the Btree and Hash access methods, insert the data |
| 1416 |
element as a duplicate element of the key to which the cursor refers. |
| 1417 |
The new element appears immediately |
| 1418 |
before |
| 1419 |
the current cursor position. It is an error to call this method if the |
| 1420 |
underlying Btree or Hash database does not support duplicate data items. |
| 1421 |
The key parameter is ignored. |
| 1422 |
<p> |
| 1423 |
In the case of the Hash access method, the putBefore method will fail and |
| 1424 |
throw an exception if the current cursor record has already been deleted. |
| 1425 |
<p> |
| 1426 |
In the case of the Recno access method, it is an error to call this |
| 1427 |
method if the underlying Recno database was not configured to have |
| 1428 |
mutable record numbers. A new key is created, all records after the |
| 1429 |
inserted item are automatically renumbered, and the key of the new |
| 1430 |
record is returned in the key parameter. The initial value of the key |
| 1431 |
parameter is ignored. |
| 1432 |
<p> |
| 1433 |
The putBefore method may not be called for the Queue access method. |
| 1434 |
<p> |
| 1435 |
<P> |
| 1436 |
<DD><DL> |
| 1437 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> operated on. |
| 1438 |
<p><DD><CODE>data</CODE> - the data <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> stored. |
| 1439 |
<p> |
| 1440 |
<p> |
| 1441 |
<DT><B>Throws:</B> |
| 1442 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1443 |
deadlock. |
| 1444 |
<p> |
| 1445 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1446 |
<p> |
| 1447 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 1448 |
</DD> |
| 1449 |
</DL> |
| 1450 |
<HR> |
| 1451 |
|
| 1452 |
<A NAME="putNoOverwrite(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)"></A><H3> |
| 1453 |
putNoOverwrite</H3> |
| 1454 |
<PRE> |
| 1455 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>putNoOverwrite</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 1456 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) |
| 1457 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1458 |
<DL> |
| 1459 |
<DD>Store a key/data pair into the database. |
| 1460 |
<p> |
| 1461 |
If the putNoOverwrite method succeeds, the cursor is always positioned to refer to |
| 1462 |
the newly inserted item. If the putNoOverwrite method fails for any reason, the |
| 1463 |
state of the cursor will be unchanged. |
| 1464 |
<p> |
| 1465 |
If the key already appears in the database, putNoOverwrite will return |
| 1466 |
<A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEXIST"><CODE>OperationStatus.KEYEXIST</CODE></A>. |
| 1467 |
<p> |
| 1468 |
<P> |
| 1469 |
<DD><DL> |
| 1470 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> operated on. |
| 1471 |
<p><DD><CODE>data</CODE> - the data <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> stored. |
| 1472 |
<p> |
| 1473 |
<p> |
| 1474 |
<DT><B>Throws:</B> |
| 1475 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1476 |
deadlock. |
| 1477 |
<p> |
| 1478 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1479 |
<p> |
| 1480 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 1481 |
</DD> |
| 1482 |
</DL> |
| 1483 |
<HR> |
| 1484 |
|
| 1485 |
<A NAME="putKeyFirst(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)"></A><H3> |
| 1486 |
putKeyFirst</H3> |
| 1487 |
<PRE> |
| 1488 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>putKeyFirst</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 1489 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) |
| 1490 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1491 |
<DL> |
| 1492 |
<DD>Store a key/data pair into the database. |
| 1493 |
<p> |
| 1494 |
If the putKeyFirst method succeeds, the cursor is always positioned to refer to |
| 1495 |
the newly inserted item. If the putKeyFirst method fails for any reason, the |
| 1496 |
state of the cursor will be unchanged. |
| 1497 |
<p> |
| 1498 |
In the case of the Btree and Hash access methods, insert the specified |
| 1499 |
key/data pair into the database. |
| 1500 |
<p> |
| 1501 |
If the underlying database supports duplicate data items, and if the |
| 1502 |
key already exists in the database and a duplicate sort function has |
| 1503 |
been specified, the inserted data item is added in its sorted location. |
| 1504 |
If the key already exists in the database and no duplicate sort function |
| 1505 |
has been specified, the inserted data item is added as the |
| 1506 |
first |
| 1507 |
of the data items for that key. |
| 1508 |
<p> |
| 1509 |
The putKeyFirst method may not be called for the Queue or Recno access methods. |
| 1510 |
<p> |
| 1511 |
<P> |
| 1512 |
<DD><DL> |
| 1513 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> operated on. |
| 1514 |
<p><DD><CODE>data</CODE> - the data <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> stored. |
| 1515 |
<p> |
| 1516 |
<p> |
| 1517 |
<DT><B>Throws:</B> |
| 1518 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1519 |
deadlock. |
| 1520 |
<p> |
| 1521 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1522 |
<p> |
| 1523 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 1524 |
</DD> |
| 1525 |
</DL> |
| 1526 |
<HR> |
| 1527 |
|
| 1528 |
<A NAME="putKeyLast(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)"></A><H3> |
| 1529 |
putKeyLast</H3> |
| 1530 |
<PRE> |
| 1531 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>putKeyLast</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 1532 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) |
| 1533 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1534 |
<DL> |
| 1535 |
<DD>Store a key/data pair into the database. |
| 1536 |
<p> |
| 1537 |
If the putKeyLast method succeeds, the cursor is always positioned to refer to |
| 1538 |
the newly inserted item. If the putKeyLast method fails for any reason, the |
| 1539 |
state of the cursor will be unchanged. |
| 1540 |
<p> |
| 1541 |
In the case of the Btree and Hash access methods, insert the specified |
| 1542 |
key/data pair into the database. |
| 1543 |
<p> |
| 1544 |
If the underlying database supports duplicate data items, and if the |
| 1545 |
key already exists in the database and a duplicate sort function has |
| 1546 |
been specified, the inserted data item is added in its sorted location. |
| 1547 |
If the key already exists in the database and no duplicate sort function |
| 1548 |
has been specified, the inserted data item is added as the |
| 1549 |
last |
| 1550 |
of the data items for that key. |
| 1551 |
<p> |
| 1552 |
The putKeyLast method may not be called for the Queue or Recno access methods. |
| 1553 |
<p> |
| 1554 |
<P> |
| 1555 |
<DD><DL> |
| 1556 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> operated on. |
| 1557 |
<p><DD><CODE>data</CODE> - the data <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> stored. |
| 1558 |
<p> |
| 1559 |
<p> |
| 1560 |
<DT><B>Throws:</B> |
| 1561 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1562 |
deadlock. |
| 1563 |
<p> |
| 1564 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1565 |
<p> |
| 1566 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 1567 |
</DD> |
| 1568 |
</DL> |
| 1569 |
<HR> |
| 1570 |
|
| 1571 |
<A NAME="putNoDupData(com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)"></A><H3> |
| 1572 |
putNoDupData</H3> |
| 1573 |
<PRE> |
| 1574 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>putNoDupData</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> key, |
| 1575 |
<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) |
| 1576 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1577 |
<DL> |
| 1578 |
<DD>Store a key/data pair into the database. |
| 1579 |
<p> |
| 1580 |
If the putNoDupData method succeeds, the cursor is always positioned to refer to |
| 1581 |
the newly inserted item. If the putNoDupData method fails for any reason, the |
| 1582 |
state of the cursor will be unchanged. |
| 1583 |
<p> |
| 1584 |
In the case of the Btree and Hash access methods, insert |
| 1585 |
the specified key/data pair into the database, unless a key/data pair |
| 1586 |
comparing equally to it already exists in the database. If a matching |
| 1587 |
key/data pair already exists in the database, <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEXIST"><CODE>OperationStatus.KEYEXIST</CODE></A> is returned. |
| 1588 |
<p> |
| 1589 |
This method may only be called if the underlying database has been |
| 1590 |
configured to support sorted duplicate data items. |
| 1591 |
<p> |
| 1592 |
This method may not be called for the Queue or Recno access methods. |
| 1593 |
<p> |
| 1594 |
<P> |
| 1595 |
<DD><DL> |
| 1596 |
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> operated on. |
| 1597 |
<p><DD><CODE>data</CODE> - the data <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> stored. |
| 1598 |
<p> |
| 1599 |
<p> |
| 1600 |
<DT><B>Throws:</B> |
| 1601 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - if the operation was selected to resolve a |
| 1602 |
deadlock. |
| 1603 |
<p> |
| 1604 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an invalid parameter was specified. |
| 1605 |
<p> |
| 1606 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 1607 |
</DD> |
| 1608 |
</DL> |
| 1609 |
<HR> |
| 1610 |
|
| 1611 |
<A NAME="putCurrent(com.sleepycat.db.DatabaseEntry)"></A><H3> |
| 1612 |
putCurrent</H3> |
| 1613 |
<PRE> |
| 1614 |
public <A HREF="../../../com/sleepycat/db/OperationStatus.html" title="class in com.sleepycat.db">OperationStatus</A> <B>putCurrent</B>(<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> data) |
| 1615 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1616 |
<DL> |
| 1617 |
<DD>Replaces the data in the key/data pair at the current cursor position. |
| 1618 |
<p> |
| 1619 |
Whether the putCurrent method succeeds or fails for any reason, the state |
| 1620 |
of the cursor will be unchanged. |
| 1621 |
<p> |
| 1622 |
Overwrite the data of the key/data pair to which the cursor refers with the |
| 1623 |
specified data item. This method will return OperationStatus.NOTFOUND if |
| 1624 |
the cursor currently refers to an already-deleted key/data pair. |
| 1625 |
<p> |
| 1626 |
For a database that does not support duplicates, the data may be changed by |
| 1627 |
this method. If duplicates are supported, the data may be changed only if |
| 1628 |
a custom partial comparator is configured and the comparator considers the |
| 1629 |
old and new data to be equal (that is, the comparator returns zero). For |
| 1630 |
more information on partial comparators see <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setDuplicateComparator(java.util.Comparator)"><CODE>DatabaseConfig.setDuplicateComparator(java.util.Comparator)</CODE></A>. |
| 1631 |
<p> |
| 1632 |
If the old and new data are unequal according to the comparator, a <code>DatabaseException</code> is thrown. Changing the data in this case would change |
| 1633 |
the sort order of the record, which would change the cursor position, and |
| 1634 |
this is not allowed. To change the sort order of a record, delete it and |
| 1635 |
then re-insert it. |
| 1636 |
<p> |
| 1637 |
<P> |
| 1638 |
<DD><DL> |
| 1639 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the data DatabaseEntry stored. |
| 1640 |
<br> |
| 1641 |
<DT><B>Throws:</B> |
| 1642 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db">DeadlockException</A></CODE> - - if the operation was selected to resolve a |
| 1643 |
deadlock. |
| 1644 |
<br> |
| 1645 |
<DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - - if an invalid parameter was specified. |
| 1646 |
<br> |
| 1647 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - - if the old and new data are not equal according |
| 1648 |
to the configured duplicate comparator or default comparator, or if a |
| 1649 |
failure occurs. |
| 1650 |
<br></DL> |
| 1651 |
</DD> |
| 1652 |
</DL> |
| 1653 |
<HR> |
| 1654 |
|
| 1655 |
<A NAME="getPriority()"></A><H3> |
| 1656 |
getPriority</H3> |
| 1657 |
<PRE> |
| 1658 |
public <A HREF="../../../com/sleepycat/db/CacheFilePriority.html" title="class in com.sleepycat.db">CacheFilePriority</A> <B>getPriority</B>() |
| 1659 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1660 |
<DL> |
| 1661 |
<DD>Get the cache priority for pages referenced by the cursor. |
| 1662 |
<p> |
| 1663 |
This method may be called at any time during the life of the application. |
| 1664 |
<p> |
| 1665 |
<p> |
| 1666 |
<P> |
| 1667 |
<DD><DL> |
| 1668 |
|
| 1669 |
<DT><B>Throws:</B> |
| 1670 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 1671 |
</DD> |
| 1672 |
</DL> |
| 1673 |
<HR> |
| 1674 |
|
| 1675 |
<A NAME="setPriority(com.sleepycat.db.CacheFilePriority)"></A><H3> |
| 1676 |
setPriority</H3> |
| 1677 |
<PRE> |
| 1678 |
public void <B>setPriority</B>(<A HREF="../../../com/sleepycat/db/CacheFilePriority.html" title="class in com.sleepycat.db">CacheFilePriority</A> priority) |
| 1679 |
throws <A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></PRE> |
| 1680 |
<DL> |
| 1681 |
<DD>Set the cache priority for pages referenced by the DBC handle. |
| 1682 |
<p> |
| 1683 |
The priority of a page biases the replacement algorithm to be more or less |
| 1684 |
likely to discard a page when space is needed in the buffer pool. The bias |
| 1685 |
is temporary, and pages will eventually be discarded if they are not |
| 1686 |
referenced again. The setPriority method is only advisory, and |
| 1687 |
does not guarantee pages will be treated in a specific way. |
| 1688 |
<p> |
| 1689 |
This method may be called at any time during the life of the application. |
| 1690 |
<p> |
| 1691 |
<P> |
| 1692 |
<DD><DL> |
| 1693 |
|
| 1694 |
<DT><B>Throws:</B> |
| 1695 |
<DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL> |
| 1696 |
</DD> |
| 1697 |
</DL> |
| 1698 |
|
| 1699 |
<HR> |
| 1700 |
|
| 1701 |
|
| 1702 |
|
| 1703 |
<A NAME="navbar_bottom"></A> |
| 1704 |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| 1705 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| 1706 |
<TR> |
| 1707 |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| 1708 |
<A NAME="navbar_bottom_firstrow"></A> |
| 1709 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| 1710 |
<TR ALIGN="center" VALIGN="top"> |
| 1711 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| 1712 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| 1713 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| 1714 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Cursor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| 1715 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| 1716 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| 1717 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| 1718 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| 1719 |
</TR> |
| 1720 |
</TABLE> |
| 1721 |
</TD> |
| 1722 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| 1723 |
<b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM> |
| 1724 |
</TD> |
| 1725 |
</TR> |
| 1726 |
|
| 1727 |
<TR> |
| 1728 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 1729 |
<A HREF="../../../com/sleepycat/db/CompactStats.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> |
| 1730 |
<A HREF="../../../com/sleepycat/db/CursorConfig.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> |
| 1731 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 1732 |
<A HREF="../../../index.html?com/sleepycat/db/Cursor.html" target="_top"><B>FRAMES</B></A> |
| 1733 |
<A HREF="Cursor.html" target="_top"><B>NO FRAMES</B></A> |
| 1734 |
<SCRIPT type="text/javascript"> |
| 1735 |
<!-- |
| 1736 |
if(window==top) { |
| 1737 |
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| 1738 |
} |
| 1739 |
//--> |
| 1740 |
</SCRIPT> |
| 1741 |
<NOSCRIPT> |
| 1742 |
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> |
| 1743 |
</NOSCRIPT> |
| 1744 |
|
| 1745 |
|
| 1746 |
</FONT></TD> |
| 1747 |
</TR> |
| 1748 |
<TR> |
| 1749 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 1750 |
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| 1751 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 1752 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| 1753 |
</TR> |
| 1754 |
</TABLE> |
| 1755 |
<A NAME="skip-navbar_bottom"></A> |
| 1756 |
|
| 1757 |
|
| 1758 |
<HR> |
| 1759 |
<font size=1>Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.</font> |
| 1760 |
</BODY> |
| 1761 |
</HTML> |