Sophie

Sophie

distrib > Mandriva > cooker > x86_64 > by-pkgid > d1d568934909030644561e00a0d5581d > files > 9

db4.2-javadoc-4.2.52-30mdv2011.0.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_18) on Thu Dec 02 16:59:39 UTC 2010 -->
<TITLE>
DataCursor
</TITLE>

<META NAME="date" CONTENT="2010-12-02">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="DataCursor";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/sleepycat/bdb/CurrentTransaction.html" title="class in com.sleepycat.bdb"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/sleepycat/bdb/DataDb.html" title="class in com.sleepycat.bdb"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?com/sleepycat/bdb/DataCursor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="DataCursor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.sleepycat.bdb</FONT>
<BR>
Class DataCursor</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.bdb.DataCursor</B>
</PRE>
<HR>
<DL>
<DT><PRE>public final class <B>DataCursor</B><DT>extends java.lang.Object</DL>
</PRE>

<P>
(<em>internal</em>) Represents a Berkeley DB cursor and adds support for
 indices, bindings and key ranges.

 <p><b>NOTE:</b> This classes is internal and may be changed incompatibly or
 deleted in the future.  It is public only so it may be used by
 subpackages.</p>

 <p>This class operates on a view and takes care of reading and updating
 indices, calling bindings, constraining access to a key range, etc.</p>
<P>

<P>
<HR>

<P>

<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#DataCursor(com.sleepycat.bdb.DataCursor)">DataCursor</A></B>(<A HREF="../../../com/sleepycat/bdb/DataCursor.html" title="class in com.sleepycat.bdb">DataCursor</A>&nbsp;other)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clones a cursor preserving the current position.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#DataCursor(com.sleepycat.bdb.DataView, boolean)">DataCursor</A></B>(<A HREF="../../../com/sleepycat/bdb/DataView.html" title="class in com.sleepycat.bdb">DataView</A>&nbsp;view,
           boolean&nbsp;writeAllowed)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a cursor for a given view.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#DataCursor(com.sleepycat.bdb.DataView, boolean, java.lang.Object)">DataCursor</A></B>(<A HREF="../../../com/sleepycat/bdb/DataView.html" title="class in com.sleepycat.bdb">DataView</A>&nbsp;view,
           boolean&nbsp;writeAllowed,
           java.lang.Object&nbsp;singleKey)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a cursor for a given view and single key range.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#DataCursor(com.sleepycat.bdb.DataView, boolean, java.lang.Object, boolean, java.lang.Object, boolean)">DataCursor</A></B>(<A HREF="../../../com/sleepycat/bdb/DataView.html" title="class in com.sleepycat.bdb">DataView</A>&nbsp;view,
           boolean&nbsp;writeAllowed,
           java.lang.Object&nbsp;beginKey,
           boolean&nbsp;beginInclusive,
           java.lang.Object&nbsp;endKey,
           boolean&nbsp;endInclusive)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a cursor for a given view and key range.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#close()">close</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Closes a cursor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#count()">count</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of duplicates for the current key.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#delete()">delete</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Perform an arbitrary database 'delete' operation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#find(java.lang.Object, boolean)">find</A></B>(java.lang.Object&nbsp;value,
     boolean&nbsp;findFirst)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Find the given value, using DB_GET_BOTH if possible, or a sequential
 search otherwise.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#get(java.lang.Object, java.lang.Object, int, boolean)">get</A></B>(java.lang.Object&nbsp;key,
    java.lang.Object&nbsp;value,
    int&nbsp;flag,
    boolean&nbsp;lockForWrite)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Perform a database 'get' using the given key and value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#getCurrentKey()">getCurrentKey</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the key object for the last record read.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#getCurrentRecordNumber()">getCurrentRecordNumber</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the record number for the last record read.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#getCurrentValue()">getCurrentValue</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value object for the last record read.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../com/sleepycat/bdb/DataView.html" title="class in com.sleepycat.bdb">DataView</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#getView()">getView</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the view for this cursor, as specified to the constructor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#hasRecNumAccess()">hasRecNumAccess</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether record number access is allowed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#isWriteAllowed()">isWriteAllowed</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether write is allowed for this cursor, as specified to the
 constructor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#put(java.lang.Object, java.lang.Object, int, java.lang.Object[])">put</A></B>(java.lang.Object&nbsp;key,
    java.lang.Object&nbsp;value,
    int&nbsp;flag,
    java.lang.Object[]&nbsp;oldValue)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Perform an arbitrary database 'put' operation, optionally returning
 the previous value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/bdb/DataCursor.html#put(java.lang.Object, java.lang.Object, int, java.lang.Object[], boolean)">put</A></B>(java.lang.Object&nbsp;key,
    java.lang.Object&nbsp;value,
    int&nbsp;flag,
    java.lang.Object[]&nbsp;oldValue,
    boolean&nbsp;useCurrentKey)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Perform an arbitrary database 'put' operation, optionally using the
 current key instead of the key parameter.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="DataCursor(com.sleepycat.bdb.DataView, boolean)"><!-- --></A><H3>
DataCursor</H3>
<PRE>
public <B>DataCursor</B>(<A HREF="../../../com/sleepycat/bdb/DataView.html" title="class in com.sleepycat.bdb">DataView</A>&nbsp;view,
                  boolean&nbsp;writeAllowed)
           throws <A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A>,
                  java.io.IOException</PRE>
<DL>
<DD>Creates a cursor for a given view.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>view</CODE> - the database view traversed by the cursor.<DD><CODE>writeAllowed</CODE> - whether the cursor can be used for writing.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A></CODE> - if a database problem occurs.
<DD><CODE>java.io.IOException</CODE> - if an IO problem occurs.</DL>
</DL>
<HR>

<A NAME="DataCursor(com.sleepycat.bdb.DataView, boolean, java.lang.Object)"><!-- --></A><H3>
DataCursor</H3>
<PRE>
public <B>DataCursor</B>(<A HREF="../../../com/sleepycat/bdb/DataView.html" title="class in com.sleepycat.bdb">DataView</A>&nbsp;view,
                  boolean&nbsp;writeAllowed,
                  java.lang.Object&nbsp;singleKey)
           throws <A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A>,
                  java.io.IOException</PRE>
<DL>
<DD>Creates a cursor for a given view and single key range.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>view</CODE> - the database view traversed by the cursor.<DD><CODE>writeAllowed</CODE> - whether the cursor can be used for writing.<DD><CODE>singleKey</CODE> - the single key value.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A></CODE> - if a database problem occurs.
<DD><CODE>java.io.IOException</CODE> - if an IO problem occurs.</DL>
</DL>
<HR>

<A NAME="DataCursor(com.sleepycat.bdb.DataView, boolean, java.lang.Object, boolean, java.lang.Object, boolean)"><!-- --></A><H3>
DataCursor</H3>
<PRE>
public <B>DataCursor</B>(<A HREF="../../../com/sleepycat/bdb/DataView.html" title="class in com.sleepycat.bdb">DataView</A>&nbsp;view,
                  boolean&nbsp;writeAllowed,
                  java.lang.Object&nbsp;beginKey,
                  boolean&nbsp;beginInclusive,
                  java.lang.Object&nbsp;endKey,
                  boolean&nbsp;endInclusive)
           throws <A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A>,
                  java.io.IOException</PRE>
<DL>
<DD>Creates a cursor for a given view and key range.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>view</CODE> - the database view traversed by the cursor.<DD><CODE>writeAllowed</CODE> - whether the cursor can be used for writing.<DD><CODE>beginKey</CODE> - the lower bound.<DD><CODE>beginInclusive</CODE> - whether the lower bound is inclusive.<DD><CODE>endKey</CODE> - the upper bound.<DD><CODE>endInclusive</CODE> - whether the upper bound is inclusive.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A></CODE> - if a database problem occurs.
<DD><CODE>java.io.IOException</CODE> - if an IO problem occurs.</DL>
</DL>
<HR>

<A NAME="DataCursor(com.sleepycat.bdb.DataCursor)"><!-- --></A><H3>
DataCursor</H3>
<PRE>
public <B>DataCursor</B>(<A HREF="../../../com/sleepycat/bdb/DataCursor.html" title="class in com.sleepycat.bdb">DataCursor</A>&nbsp;other)
           throws <A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A>,
                  java.io.IOException</PRE>
<DL>
<DD>Clones a cursor preserving the current position.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>other</CODE> - the cursor to clone.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A></CODE> - if a database problem occurs.
<DD><CODE>java.io.IOException</CODE> - if an IO problem occurs.</DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="close()"><!-- --></A><H3>
close</H3>
<PRE>
public void <B>close</B>()
           throws <A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A>,
                  java.io.IOException</PRE>
<DL>
<DD>Closes a cursor.
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A></CODE> - if a database problem occurs.
<DD><CODE>java.io.IOException</CODE> - if an IO problem occurs.</DL>
</DD>
</DL>
<HR>

<A NAME="getView()"><!-- --></A><H3>
getView</H3>
<PRE>
public <A HREF="../../../com/sleepycat/bdb/DataView.html" title="class in com.sleepycat.bdb">DataView</A> <B>getView</B>()</PRE>
<DL>
<DD>Returns the view for this cursor, as specified to the constructor.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the view.</DL>
</DD>
</DL>
<HR>

<A NAME="isWriteAllowed()"><!-- --></A><H3>
isWriteAllowed</H3>
<PRE>
public boolean <B>isWriteAllowed</B>()</PRE>
<DL>
<DD>Returns whether write is allowed for this cursor, as specified to the
 constructor.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>whether write is allowed.</DL>
</DD>
</DL>
<HR>

<A NAME="getCurrentKey()"><!-- --></A><H3>
getCurrentKey</H3>
<PRE>
public java.lang.Object <B>getCurrentKey</B>()
                               throws <A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A>,
                                      java.io.IOException</PRE>
<DL>
<DD>Returns the key object for the last record read.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the current key object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A></CODE> - if a database problem occurs.
<DD><CODE>java.io.IOException</CODE> - if an IO problem occurs.</DL>
</DD>
</DL>
<HR>

<A NAME="getCurrentValue()"><!-- --></A><H3>
getCurrentValue</H3>
<PRE>
public java.lang.Object <B>getCurrentValue</B>()
                                 throws <A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A>,
                                        java.io.IOException</PRE>
<DL>
<DD>Returns the value object for the last record read.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the current value object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A></CODE> - if a database problem occurs.
<DD><CODE>java.io.IOException</CODE> - if an IO problem occurs.</DL>
</DD>
</DL>
<HR>

<A NAME="hasRecNumAccess()"><!-- --></A><H3>
hasRecNumAccess</H3>
<PRE>
public boolean <B>hasRecNumAccess</B>()</PRE>
<DL>
<DD>Returns whether record number access is allowed.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>whether record number access is allowed.</DL>
</DD>
</DL>
<HR>

<A NAME="getCurrentRecordNumber()"><!-- --></A><H3>
getCurrentRecordNumber</H3>
<PRE>
public int <B>getCurrentRecordNumber</B>()
                           throws <A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A>,
                                  java.io.IOException</PRE>
<DL>
<DD>Returns the record number for the last record read.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the last read record number.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A></CODE> - if a database problem occurs.
<DD><CODE>java.io.IOException</CODE> - if an IO problem occurs.</DL>
</DD>
</DL>
<HR>

<A NAME="get(java.lang.Object, java.lang.Object, int, boolean)"><!-- --></A><H3>
get</H3>
<PRE>
public int <B>get</B>(java.lang.Object&nbsp;key,
               java.lang.Object&nbsp;value,
               int&nbsp;flag,
               boolean&nbsp;lockForWrite)
        throws <A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A>,
               java.io.IOException</PRE>
<DL>
<DD>Perform a database 'get' using the given key and value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key or null if none is required by the flag.<DD><CODE>value</CODE> - the value or null if none is required by the flag.<DD><CODE>flag</CODE> - a single flag value appropriate for cursor get.<DD><CODE>lockForWrite</CODE> - whether to set the RMW flag.
<DT><B>Returns:</B><DD>an error or zero for success.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A></CODE> - if a database problem occurs.
<DD><CODE>java.io.IOException</CODE> - if an IO problem occurs.</DL>
</DD>
</DL>
<HR>

<A NAME="find(java.lang.Object, boolean)"><!-- --></A><H3>
find</H3>
<PRE>
public int <B>find</B>(java.lang.Object&nbsp;value,
                boolean&nbsp;findFirst)
         throws <A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A>,
                java.io.IOException</PRE>
<DL>
<DD>Find the given value, using DB_GET_BOTH if possible, or a sequential
 search otherwise.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the value to search for among duplicates at the current
 position.<DD><CODE>findFirst</CODE> - whether to find the first or last value.
<DT><B>Returns:</B><DD>an error or zero for success.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A></CODE> - if a database problem occurs.
<DD><CODE>java.io.IOException</CODE> - if an IO problem occurs.</DL>
</DD>
</DL>
<HR>

<A NAME="count()"><!-- --></A><H3>
count</H3>
<PRE>
public int <B>count</B>()
          throws <A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A>,
                 java.io.IOException</PRE>
<DL>
<DD>Return the number of duplicates for the current key.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the number of duplicates.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A></CODE> - if a database problem occurs.
<DD><CODE>java.io.IOException</CODE> - if an IO problem occurs.</DL>
</DD>
</DL>
<HR>

<A NAME="put(java.lang.Object, java.lang.Object, int, java.lang.Object[])"><!-- --></A><H3>
put</H3>
<PRE>
public int <B>put</B>(java.lang.Object&nbsp;key,
               java.lang.Object&nbsp;value,
               int&nbsp;flag,
               java.lang.Object[]&nbsp;oldValue)
        throws <A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A>,
               java.io.IOException</PRE>
<DL>
<DD>Perform an arbitrary database 'put' operation, optionally returning
 the previous value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to put.<DD><CODE>value</CODE> - the value to put.<DD><CODE>flag</CODE> - a single flag value appropriate for cursor put.<DD><CODE>oldValue</CODE> - holds the old value, or null if the old value should
 not be returned.
<DT><B>Returns:</B><DD>an error or zero for success.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A></CODE> - if a database problem occurs.
<DD><CODE>java.io.IOException</CODE> - if an IO problem occurs.</DL>
</DD>
</DL>
<HR>

<A NAME="put(java.lang.Object, java.lang.Object, int, java.lang.Object[], boolean)"><!-- --></A><H3>
put</H3>
<PRE>
public int <B>put</B>(java.lang.Object&nbsp;key,
               java.lang.Object&nbsp;value,
               int&nbsp;flag,
               java.lang.Object[]&nbsp;oldValue,
               boolean&nbsp;useCurrentKey)
        throws <A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A>,
               java.io.IOException</PRE>
<DL>
<DD>Perform an arbitrary database 'put' operation, optionally using the
 current key instead of the key parameter.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key to put.<DD><CODE>value</CODE> - the value to put.<DD><CODE>flag</CODE> - a single flag value appropriate for cursor put.<DD><CODE>oldValue</CODE> - holds the old value, or null if the old value should
 not be returned.<DD><CODE>useCurrentKey</CODE> - is true to use the current key rather than the
 key parameter.
<DT><B>Returns:</B><DD>an error or zero for success.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A></CODE> - if a database problem occurs.
<DD><CODE>java.io.IOException</CODE> - if an IO problem occurs.</DL>
</DD>
</DL>
<HR>

<A NAME="delete()"><!-- --></A><H3>
delete</H3>
<PRE>
public int <B>delete</B>()
           throws <A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A>,
                  java.io.IOException</PRE>
<DL>
<DD>Perform an arbitrary database 'delete' operation.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>an error or zero for success.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../com/sleepycat/db/DbException.html" title="class in com.sleepycat.db">DbException</A></CODE> - if a database problem occurs.
<DD><CODE>java.io.IOException</CODE> - if an IO problem occurs.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/sleepycat/bdb/CurrentTransaction.html" title="class in com.sleepycat.bdb"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/sleepycat/bdb/DataDb.html" title="class in com.sleepycat.bdb"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?com/sleepycat/bdb/DataCursor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="DataCursor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>