Logo Search packages:      
Sourcecode: db version File versions

Object com::sleepycat::collections::DataView::makeKey ( DatabaseEntry  keyThang,
DatabaseEntry  priKeyThang 
) [inline, package]

Converts a key entry to a key object.

Definition at line 567 of file DataView.java.

References com::sleepycat::bind::EntryBinding::entryToObject().

Referenced by com::sleepycat::collections::DataCursor::getCurrentKey().

                                                                      {

        if (keyBinding == null) {
            throw new UnsupportedOperationException();
        } else {
            DatabaseEntry thang = dupsView ? priKeyThang : keyThang;
            if (thang.getSize() == 0) {
                return null;
            } else {
                return keyBinding.entryToObject(thang);
            }
        }
    }


Generated by  Doxygen 1.6.0   Back to index