Logo Search packages:      
Sourcecode: db version File versions

com::sleepycat::util::keyrange::RangeCursor Class Reference

Inherited by com::sleepycat::collections::MyRangeCursor.

List of all members.


Detailed Description

A cursor-like interface that enforces a key range. The method signatures are actually those of SecondaryCursor, but the pKey parameter may be null. It was done this way to avoid doubling the number of methods.

This is not a fully general implementation of a range cursor and should not be used directly by applications; however, it may evolve into a generally useful range cursor some day.

Author:
Mark Hayes

Definition at line 30 of file RangeCursor.java.


Public Member Functions

void close () throws DatabaseException
int count () throws DatabaseException
OperationStatus delete () throws DatabaseException
RangeCursor dup (boolean samePosition) throws DatabaseException
OperationStatus getCurrent (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
Cursor getCursor ()
OperationStatus getFirst (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
OperationStatus getLast (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
OperationStatus getNext (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
OperationStatus getNextDup (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
OperationStatus getNextNoDup (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
OperationStatus getPrev (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
OperationStatus getPrevDup (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
OperationStatus getPrevNoDup (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
OperationStatus getSearchBoth (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
OperationStatus getSearchBothRange (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
OperationStatus getSearchKey (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
OperationStatus getSearchKeyRange (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
OperationStatus getSearchRecordNumber (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
boolean isInitialized ()
OperationStatus put (DatabaseEntry key, DatabaseEntry data) throws DatabaseException
OperationStatus putAfter (DatabaseEntry key, DatabaseEntry data) throws DatabaseException
OperationStatus putBefore (DatabaseEntry key, DatabaseEntry data) throws DatabaseException
OperationStatus putCurrent (DatabaseEntry data) throws DatabaseException
OperationStatus putNoDupData (DatabaseEntry key, DatabaseEntry data) throws DatabaseException
OperationStatus putNoOverwrite (DatabaseEntry key, DatabaseEntry data) throws DatabaseException
 RangeCursor (KeyRange range, KeyRange pkRange, Cursor cursor) throws DatabaseException
 RangeCursor (KeyRange range, Cursor cursor) throws DatabaseException

Protected Member Functions

boolean checkRecordNumber ()
void closeCursor (Cursor cursor) throws DatabaseException
Cursor dupCursor (Cursor cursor, boolean samePosition) throws DatabaseException

Private Member Functions

Cursor beginOperation () throws DatabaseException
OperationStatus doGetFirst (LockMode lockMode) throws DatabaseException
OperationStatus doGetLast (LockMode lockMode) throws DatabaseException
OperationStatus doGetNext (LockMode lockMode) throws DatabaseException
OperationStatus doGetNextDup (LockMode lockMode) throws DatabaseException
OperationStatus doGetNextNoDup (LockMode lockMode) throws DatabaseException
OperationStatus doGetPrev (LockMode lockMode) throws DatabaseException
OperationStatus doGetPrevDup (LockMode lockMode) throws DatabaseException
OperationStatus doGetPrevNoDup (LockMode lockMode) throws DatabaseException
OperationStatus doGetSearchBoth (LockMode lockMode) throws DatabaseException
OperationStatus doGetSearchBothRange (LockMode lockMode) throws DatabaseException
OperationStatus doGetSearchKey (LockMode lockMode) throws DatabaseException
OperationStatus doGetSearchKeyRange (LockMode lockMode) throws DatabaseException
OperationStatus doGetSearchRecordNumber (LockMode lockMode) throws DatabaseException
void endOperation (Cursor oldCursor, OperationStatus status, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data) throws DatabaseException
void init ()
void setParams (DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data)

Static Private Member Functions

static void shareData (DatabaseEntry from, DatabaseEntry to)
static void swapData (DatabaseEntry e1, DatabaseEntry e2)

Private Attributes

Cursor cursor
boolean initialized
KeyRange pkRange
DatabaseEntry privData
DatabaseEntry privKey
DatabaseEntry privPKey
KeyRange range
SecondaryCursor secCursor

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index