Package | Description |
---|---|
com.sleepycat.client | |
com.sleepycat.client.persist |
The Direct Persistence Layer (DPL) adds a persistent object model to the
Berkeley DB transactional engine.
|
Modifier and Type | Method and Description |
---|---|
static SLockMode |
SLockMode.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SLockMode[] |
SLockMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
protected TCursorGetConfig |
SCursor.createConfig(SDatabaseEntryBase data,
SLockMode lockMode) |
protected TDbGetConfig |
SDatabase.createConfig(SDatabaseEntryBase data,
SLockMode lockMode) |
SOperationStatus |
SDatabase.get(STransaction txn,
SDatabaseEntry key,
SDatabaseEntryBase data,
SLockMode lockMode)
Retrieves the key/data pair with the given key from the database.
|
SOperationStatus |
SSecondaryDatabase.get(STransaction txn,
SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Retrieves the secondary key / primary key / primary data tuple with the
given secondary key.
|
SOperationStatus |
SCursor.getCurrent(SDatabaseEntry key,
SDatabaseEntryBase data,
SLockMode lockMode)
Returns the key/data pair to which the cursor refers.
|
SOperationStatus |
SSecondaryCursor.getCurrent(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Returns the key/data pair to which the cursor refers.
|
SOperationStatus |
SCursor.getFirst(SDatabaseEntry key,
SDatabaseEntryBase data,
SLockMode lockMode)
Move the cursor to the first key/data pair of the database, and return
that pair.
|
SOperationStatus |
SSecondaryCursor.getFirst(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Move the cursor to the first key/data pair of the database, and return
that pair.
|
SOperationStatus |
SSecondaryCursor.getLast(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Move the cursor to the last key/data pair of the database, and return
that pair.
|
SOperationStatus |
SCursor.getLast(SDatabaseEntry key,
SDatabaseEntry data,
SLockMode lockMode)
Move the cursor to the last key/data pair of the database, and return
that pair.
|
SOperationStatus |
SCursor.getNext(SDatabaseEntry key,
SDatabaseEntryBase data,
SLockMode lockMode)
Move the cursor to the next key/data pair and return that pair.
|
SOperationStatus |
SSecondaryCursor.getNext(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Move the cursor to the next key/data pair and return that pair.
|
SOperationStatus |
SJoinCursor.getNext(SDatabaseEntry key,
SDatabaseEntry data,
SLockMode lockMode)
Returns the next primary key and data resulting from the join operation.
|
SOperationStatus |
SJoinCursor.getNext(SDatabaseEntry key,
SLockMode lockMode)
Returns the next primary key resulting from the join operation.
|
SOperationStatus |
SCursor.getNextDup(SDatabaseEntry key,
SDatabaseEntryBase data,
SLockMode lockMode)
If the next key/data pair of the database is a duplicate data record for
the current key/data pair, move the cursor to the next key/data pair of
the database and return that pair.
|
SOperationStatus |
SSecondaryCursor.getNextDup(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
If the next key/data pair of the database is a duplicate data record for
the current key/data pair, move the cursor to the next key/data pair of
the database and return that pair.
|
SOperationStatus |
SCursor.getNextNoDup(SDatabaseEntry key,
SDatabaseEntryBase data,
SLockMode lockMode)
Move the cursor to the next non-duplicate key/data pair and return that
pair.
|
SOperationStatus |
SSecondaryCursor.getNextNoDup(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Move the cursor to the next non-duplicate key/data pair and return that
pair.
|
SOperationStatus |
SSecondaryCursor.getPrev(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Move the cursor to the previous key/data pair and return that pair.
|
SOperationStatus |
SCursor.getPrev(SDatabaseEntry key,
SDatabaseEntry data,
SLockMode lockMode)
Move the cursor to the previous key/data pair and return that pair.
|
SOperationStatus |
SSecondaryCursor.getPrevDup(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
If the previous key/data pair of the database is a duplicate data record
for the current key/data pair, move the cursor to the previous key/data
pair of the database and return that pair.
|
SOperationStatus |
SCursor.getPrevDup(SDatabaseEntry key,
SDatabaseEntry data,
SLockMode lockMode)
If the previous key/data pair of the database is a duplicate data record
for the current key/data pair, move the cursor to the previous key/data
pair of the database and return that pair.
|
SOperationStatus |
SSecondaryCursor.getPrevNoDup(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Move the cursor to the previous non-duplicate key/data pair and return
that pair.
|
SOperationStatus |
SCursor.getPrevNoDup(SDatabaseEntry key,
SDatabaseEntry data,
SLockMode lockMode)
Move the cursor to the previous non-duplicate key/data pair and return
that pair.
|
SOperationStatus |
SSecondaryCursor.getRecordNumber(SDatabaseEntry secondaryRecno,
SDatabaseEntry primaryRecno,
SLockMode lockMode)
Return the record number associated with the cursor.
|
SOperationStatus |
SCursor.getRecordNumber(SDatabaseEntry data,
SLockMode lockMode)
Return the record number associated with the cursor.
|
SOperationStatus |
SCursor.getSearchBoth(SDatabaseEntry key,
SDatabaseEntryBase data,
SLockMode lockMode)
Move the cursor to the specified key/data pair, where both the key and
data items must match.
|
SOperationStatus |
SSecondaryCursor.getSearchBoth(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Move the cursor to the specified secondary and primary key, where both
the primary and secondary key items must match.
|
SOperationStatus |
SDatabase.getSearchBoth(STransaction txn,
SDatabaseEntry key,
SDatabaseEntryBase data,
SLockMode lockMode)
Retrieves the key/data pair with the given key and data value, that is,
both the key and data items must match.
|
SOperationStatus |
SSecondaryDatabase.getSearchBoth(STransaction txn,
SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Retrieves the key/data pair with the specified secondary and primary
key, that is, both the primary and secondary key items must match.
|
SOperationStatus |
SCursor.getSearchBothRange(SDatabaseEntry key,
SDatabaseEntryBase data,
SLockMode lockMode)
Move the cursor to the specified key and matching data item of the
database.
|
SOperationStatus |
SSecondaryCursor.getSearchBothRange(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Move the cursor to the specified secondary key and closest matching
primary key of the database.
|
SOperationStatus |
SCursor.getSearchKey(SDatabaseEntry key,
SDatabaseEntryBase data,
SLockMode lockMode)
Move the cursor to the given key of the database, and return the datum
associated with the given key.
|
SOperationStatus |
SSecondaryCursor.getSearchKey(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Move the cursor to the given key of the database, and return the datum
associated with the given key.
|
SOperationStatus |
SCursor.getSearchKeyRange(SDatabaseEntry key,
SDatabaseEntryBase data,
SLockMode lockMode)
Move the cursor to the closest matching key of the database, and return
the data item associated with the matching key.
|
SOperationStatus |
SSecondaryCursor.getSearchKeyRange(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Move the cursor to the closest matching key of the database, and return
the data item associated with the matching key.
|
SOperationStatus |
SCursor.getSearchRecordNumber(SDatabaseEntry key,
SDatabaseEntryBase data,
SLockMode lockMode)
Move the cursor to the specific numbered record of the database, and
return the associated key/data pair.
|
SOperationStatus |
SSecondaryCursor.getSearchRecordNumber(SDatabaseEntry secondaryRecno,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Move the cursor to the specific numbered record of the database, and
return the associated key/data pair.
|
SOperationStatus |
SDatabase.getSearchRecordNumber(STransaction txn,
SDatabaseEntry key,
SDatabaseEntryBase data,
SLockMode lockMode)
Retrieves the key/data pair associated with the specific numbered record
of the database.
|
SOperationStatus |
SSecondaryDatabase.getSearchRecordNumber(STransaction txn,
SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
SLockMode lockMode)
Retrieves the key/data pair associated with the specific numbered record
of the database.
|
Modifier and Type | Method and Description |
---|---|
boolean |
EntityIndex.contains(STransaction txn,
K key,
SLockMode lockMode)
Checks for existence of a key in this index.
|
V |
EntityCursor.current(SLockMode lockMode)
Returns the value at the cursor position, or null if the value at the
cursor position has been deleted.
|
V |
EntityCursor.first(SLockMode lockMode)
Moves the cursor to the first value and returns it, or returns null if
the cursor range is empty.
|
V |
EntityIndex.get(STransaction txn,
K key,
SLockMode lockMode)
Gets an entity via a key of this index.
|
E |
PrimaryIndex.get(STransaction txn,
PK key,
SLockMode lockMode) |
E |
SecondaryIndex.get(STransaction txn,
SK key,
SLockMode lockMode) |
java.util.Iterator<V> |
ForwardCursor.iterator(SLockMode lockMode)
Returns an iterator over the key range, starting with the value
following the current position or at the first value if the cursor is
uninitialized.
|
java.util.Iterator<V> |
EntityCursor.iterator(SLockMode lockMode)
Returns an iterator over the key range, starting with the value
following the current position or at the first value if the cursor is
uninitialized.
|
V |
EntityCursor.last(SLockMode lockMode)
Moves the cursor to the last value and returns it, or returns null if
the cursor range is empty.
|
V |
ForwardCursor.next(SLockMode lockMode)
Moves the cursor to the next value and returns it, or returns null
if there are no more values in the cursor range.
|
V |
EntityCursor.next(SLockMode lockMode)
Moves the cursor to the next value and returns it, or returns null
if there are no more values in the cursor range.
|
V |
EntityCursor.nextDup(SLockMode lockMode)
Moves the cursor to the next value with the same key (duplicate) and
returns it, or returns null if no more values are present for the key at
the current position.
|
V |
EntityCursor.nextNoDup(SLockMode lockMode)
Moves the cursor to the next value with a different key and returns it,
or returns null if there are no more unique keys in the cursor range.
|
V |
EntityCursor.prev(SLockMode lockMode)
Moves the cursor to the previous value and returns it, or returns null
if there are no preceding values in the cursor range.
|
V |
EntityCursor.prevDup(SLockMode lockMode)
Moves the cursor to the previous value with the same key (duplicate) and
returns it, or returns null if no preceding values are present for the
key at the current position.
|
V |
EntityCursor.prevNoDup(SLockMode lockMode)
Moves the cursor to the preceding value with a different key and returns
it, or returns null if there are no preceding unique keys in the cursor
range.
|
Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.