Logo Search packages:      
Sourcecode: db version File versions

OperationStatus com::sleepycat::collections::DataCursor::doGetSearchKey ( boolean  lockForWrite  )  throws DatabaseException [inline, private]

Pass-thru version of Cursor.getSearchKey(). Searches by record number in a BTREE-RECNO db with RECNO access.

Definition at line 569 of file DataCursor.java.

References com::sleepycat::collections::DataView::btreeRecNumAccess, getLockMode(), com::sleepycat::util::keyrange::RangeCursor::getSearchKey(), and com::sleepycat::util::keyrange::RangeCursor::getSearchRecordNumber().

Referenced by getSearchKey(), and initForPut().

                                 {

        LockMode lockMode = getLockMode(lockForWrite);
        if (view.btreeRecNumAccess) {
            return cursor.getSearchRecordNumber(keyThang, primaryKeyThang,
                                                valueThang, lockMode);
        } else {
            return cursor.getSearchKey(keyThang, primaryKeyThang,
                                       valueThang, lockMode);
        }
    }


Generated by  Doxygen 1.6.0   Back to index