Package | Description |
---|---|
com.sleepycat.client | |
com.sleepycat.client.collections |
Data access based on the standard Java collections API.
|
com.sleepycat.client.persist |
The Direct Persistence Layer (DPL) adds a persistent object model to the
Berkeley DB transactional engine.
|
Modifier and Type | Class and Description |
---|---|
class |
BdbConnectionException
Signals that an error occurred while attempting to connect to a BdbServer.
|
class |
SDeadlockException
DeadlockException is thrown to a thread of control when multiple threads
competing for a lock are deadlocked, when a lock request has timed out or
when a lock request would need to block and the transaction has been
configured to not wait for locks.
|
class |
SHeapFullException
A HeapFullException is thrown when an attempt was made to add or update a
record in a Heap database.
|
class |
SLockNotGrantedException
LockNotGrantedException is thrown when lock or transaction timeouts have been
configured and a database operation has timed out.
|
class |
SMetaCheckSumFailException
A MetaCheckSumFailException is thrown when a checksum mismatch is detected on
a database metadata page.
|
class |
SResourceInUseException
Thrown if the resources accessed by the current operation is busy, and the
current operation conflicts with the operation running on the resources.
|
class |
SRunRecoveryException
Thrown when the database environment needs to be recovered.
|
class |
SVersionMismatchException
Thrown if the version of the Berkeley DB library used by the server doesn't
match the version that created the database environment.
|
Modifier and Type | Method and Description |
---|---|
void |
STransaction.abort()
Cause an abnormal termination of the transaction.
|
STransaction |
SEnvironment.beginTransaction(STransaction parent,
STransactionConfig config)
Create a new transaction in the database environment.
|
V |
TxnHelper.TransactionOperations.call(STransaction txn) |
void |
SEnvironment.checkpoint(SCheckpointConfig config)
Synchronously checkpoint the database environment.
|
void |
SJoinCursor.close()
Closes the cursors that have been opened by this join cursor.
|
void |
SCursor.close()
Discard the cursor.
|
void |
SDatabase.close()
Flush any cached database information to disk, close any open cursors,
free allocated resources, close underlying files, and discard the
database handle.
|
void |
SSecondaryDatabase.close() |
void |
SEnvironment.close()
Close the database environment, freeing any allocated resources and
closing any underlying subsystems.
|
void |
SSequence.close()
Close a sequence.
|
void |
BdbServerAdmin.closeDatabaseHandles(java.lang.String envHome,
java.lang.String fileName,
java.lang.String databaseName,
long minIdleInMilli)
Close database handles which are opened for the specified file and
database name under the specified environment and which have not been
accessed for at least the specified idle time.
|
void |
BdbServerAdmin.closeEnvironmentHandles(java.lang.String home,
long minIdleInMilli)
Close environment handles which are opened for the specified environment
and which have not been accessed for at least the specified idle time.
|
void |
STransaction.commit()
End the transaction.
|
void |
STransaction.commitNoSync()
End the transaction, not committing synchronously.
|
void |
STransaction.commitSync()
End the transaction, committing synchronously.
|
void |
STransaction.commitWriteNoSync()
End the transaction, writing but not flushing the log.
|
SCompactStats |
SDatabase.compact(STransaction txn,
SDatabaseEntry start,
SDatabaseEntry stop,
SDatabaseEntry end,
SCompactConfig config)
Compact a Btree or Recno database or returns unused Btree, Hash or Recno
database pages to the underlying filesystem.
|
int |
SCursor.compare(SCursor otherCursor)
Return a comparison of the two cursors.
|
static BdbServerConnection |
BdbServerConnection.connect(java.lang.String host,
int port)
Open a new connection to the specified BDB server.
|
static BdbServerConnection |
BdbServerConnection.connectSsl(java.lang.String host,
int port,
SslConfig sslConfig,
int timeout)
Open a new SSL connection to the specified BDB server.
|
int |
SCursor.count()
Return a count of the number of data items for the key to which the
cursor refers.
|
boolean |
SSecondaryKeyCreator.createSecondaryKey(SSecondaryDatabase secondary,
SDatabaseEntry key,
SDatabaseEntry data,
SDatabaseEntry result)
Creates a secondary key entry, given a primary key and data entry.
|
void |
SSecondaryMultiKeyCreator.createSecondaryKeys(SSecondaryDatabase secondary,
SDatabaseEntry key,
SDatabaseEntry data,
java.util.Set<SDatabaseEntry> results)
Create multiple secondary key entries, given a primary key and data
entry.
|
SOperationStatus |
SCursor.delete()
Delete the key/data pair to which the cursor refers.
|
SOperationStatus |
SDatabase.delete(STransaction txn,
SDatabaseEntry key)
Remove key/data pairs from the database.
|
void |
BdbServerAdmin.deleteEnvironmentAndDatabases(java.lang.String home,
boolean force)
Delete all files created for the environment at the specified home
directory, and all database files created under the environment.
|
SOperationStatus |
SDatabase.deleteMultiple(STransaction txn,
SMultipleDataEntry keys)
Remove key/data pairs from the database.
|
SOperationStatus |
SDatabase.deleteMultipleKey(STransaction txn,
SMultiplePairs pairs)
Remove key/data pairs from the database.
|
SCursor |
SCursor.dup(boolean samePosition)
Creates a new cursor that uses the same transaction and locker ID as the
original cursor.
|
SSecondaryCursor |
SSecondaryCursor.dup(boolean samePosition)
Returns a new
SSecondaryCursor for the same transaction as the
original cursor. |
SOperationStatus |
SDatabase.exists(STransaction txn,
SDatabaseEntry key)
Checks if the specified key appears in the database.
|
long |
SSequence.get(STransaction txn,
int delta)
Return the next available element in the sequence and changes the
sequence value by delta.
|
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.
|
SCacheFileStats[] |
SEnvironment.getCacheFileStats(SStatsConfig config)
Return statistics for individual files in the cache.
|
SCacheStats |
SEnvironment.getCacheStats(SStatsConfig config)
Returns the memory pool (that is, the buffer cache) subsystem
statistics.
|
SCursorConfig |
SCursor.getConfig()
Return this cursor's configuration.
|
SDatabaseConfig |
SDatabase.getConfig()
Return this SDatabase object's configuration.
|
SEnvironmentConfig |
SEnvironment.getConfig()
Return this object's configuration.
|
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.
|
SKeyRange |
SDatabase.getKeyRange(STransaction txn,
SDatabaseEntry key)
Return an estimate of the proportion of keys in the database less than,
equal to, and greater than the specified key.
|
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.
|
SLockStats |
SEnvironment.getLockStats(SStatsConfig config)
Return the database environment's locking statistics.
|
SLogStats |
SEnvironment.getLogStats(SStatsConfig config)
Return the database environment's logging statistics.
|
SMultiStats |
SEnvironment.getMultipleStats(SMultiStatsConfig config)
Return multiple database environment's statistics.
|
SMutexStats |
SEnvironment.getMutexStats(SStatsConfig config)
Return the database environment's mutex statistics.
|
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.
|
SCacheFilePriority |
SCursor.getPriority()
Get the cache priority for pages referenced by the cursor.
|
int |
STransaction.getPriority()
Get the transaction's deadlock priority.
|
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.
|
SSecondaryConfig |
SSecondaryDatabase.getSecondaryConfig()
Returns a copy of the secondary configuration of this database.
|
java.lang.String |
BdbServerAdmin.getServerBdbVersion()
Return the BDB library release version hosted by the server.
|
SDatabaseStats |
SDatabase.getStats(STransaction txn,
SStatsConfig config)
Return database statistics.
|
STransactionStats |
SEnvironment.getTransactionStats(SStatsConfig config)
Return the database environment's transactional statistics.
|
SJoinCursor |
SDatabase.join(SCursor[] cursors,
SJoinConfig config)
Creates a specialized join cursor for use in performing equality or
natural joins on secondary indices.
|
boolean |
SForeignKeyNullifier.nullifyForeignKey(SSecondaryDatabase secondary,
SDatabaseEntry data)
Sets the foreign key reference to null in the datum of the primary
database.
|
default boolean |
SForeignKeyNullifier.nullifyForeignKey(SSecondaryDatabase secondary,
SDatabaseEntry key,
SDatabaseEntry data,
SDatabaseEntry secKey) |
boolean |
SForeignMultiKeyNullifier.nullifyForeignKey(SSecondaryDatabase secondary,
SDatabaseEntry key,
SDatabaseEntry data,
SDatabaseEntry secKey)
Sets the foreign key reference to null in the datum of the primary
database.
|
SCursor |
SDatabase.openCursor(STransaction txn,
SCursorConfig config)
Return a cursor into the database.
|
SSecondaryCursor |
SSecondaryDatabase.openCursor(STransaction txn,
SCursorConfig config)
Return a
SSecondaryCursor into this secondary database. |
SDatabase |
SEnvironment.openDatabase(STransaction txn,
java.lang.String fileName,
java.lang.String databaseName,
SDatabaseConfig config)
Open a database.
|
SEnvironment |
BdbServerConnection.openEnvironment(java.lang.String home,
SEnvironmentConfig config)
Open a remote environment and return an environment handle.
|
SSecondaryDatabase |
SEnvironment.openSecondaryDatabase(STransaction txn,
java.lang.String fileName,
java.lang.String databaseName,
SDatabase primaryDatabase,
SSecondaryConfig config)
Open a secondary database.
|
SSequence |
SDatabase.openSequence(STransaction txn,
SDatabaseEntry key,
SSequenceConfig config)
Open a sequence represented by the key in the database.
|
void |
BdbServerAdmin.ping()
Check if the server is reachable and responsive.
|
SOperationStatus |
SCursor.put(SDatabaseEntry key,
SDatabaseEntry data)
Store a key/data pair into the database.
|
SOperationStatus |
SDatabase.put(STransaction txn,
SDatabaseEntry key,
SDatabaseEntry data)
Store the key/data pair into the database.
|
SOperationStatus |
SCursor.putAfter(SDatabaseEntry key,
SDatabaseEntry data)
Store a key/data pair into the database.
|
SOperationStatus |
SCursor.putBefore(SDatabaseEntry key,
SDatabaseEntry data)
Store a key/data pair into the database.
|
SOperationStatus |
SCursor.putCurrent(SDatabaseEntry data)
Replaces the data in the key/data pair at the current cursor position.
|
SOperationStatus |
SCursor.putKeyFirst(SDatabaseEntry key,
SDatabaseEntry data)
Store a key/data pair into the database.
|
SOperationStatus |
SCursor.putKeyLast(SDatabaseEntry key,
SDatabaseEntry data)
Store a key/data pair into the database.
|
SOperationStatus |
SDatabase.putMultipleKey(STransaction txn,
SMultiplePairs pairs,
boolean overwrite)
Store a set of key/data pairs into the database.
|
SOperationStatus |
SCursor.putNoDupData(SDatabaseEntry key,
SDatabaseEntry data)
Store a key/data pair into the database.
|
SOperationStatus |
SDatabase.putNoDupData(STransaction txn,
SDatabaseEntry key,
SDatabaseEntry data)
Store the key/data pair into the database if it does not already appear
in the database.
|
SOperationStatus |
SCursor.putNoOverwrite(SDatabaseEntry key,
SDatabaseEntry data)
Store a key/data pair into the database.
|
SOperationStatus |
SDatabase.putNoOverwrite(STransaction txn,
SDatabaseEntry key,
SDatabaseEntry data)
Store the key/data pair into the database if the key does not already
appear in the database.
|
default SOperationStatus |
GetHelper.remoteGet(SDatabaseEntry key,
SDatabaseEntryBase data,
GetHelper.RemoteGetFunction getFunc) |
default SOperationStatus |
GetHelper.remotePGet(SDatabaseEntry sKey,
SDatabaseEntry pKey,
SDatabaseEntry pData,
GetHelper.RemotePGetFunction pGetFunc) |
default SOperationStatus |
PutHelper.remotePut(java.util.List<TKeyDataWithSecondaryKeys> pairs,
SDatabaseEntry retKey,
PutHelper.RemotePutFunction func) |
void |
SEnvironment.removeDatabase(STransaction txn,
java.lang.String fileName,
java.lang.String databaseName,
boolean force)
Remove the database specified by the fileName and databaseName
parameters.
|
void |
SDatabase.removeSequence(STransaction txn,
SDatabaseEntry key,
boolean autoCommitNoSync,
boolean force)
Remove the sequence from the database.
|
void |
SEnvironment.renameDatabase(STransaction txn,
java.lang.String fileName,
java.lang.String databaseName,
java.lang.String newName,
boolean force)
Rename a database.
|
default <V> V |
TxnHelper.runInSingleTxn(STransaction userTxn,
java.util.function.Function<STransaction,V> operations)
Run multiple operations in the context of a single transaction.
|
default <V> V |
TxnHelper.runInSingleTxnWithIOException(STransaction userTxn,
TxnHelper.TransactionOperations<V> operations)
Run multiple operations in the context of a single transaction.
|
void |
SDatabase.setConfig(SDatabaseConfig config)
Change the settings in an existing database handle.
|
void |
SEnvironment.setConfig(SEnvironmentConfig config)
Change the settings in an existing environment handle.
|
void |
STransaction.setPriority(int priority)
Set the deadlock priority for this transaction.
|
void |
SCursor.setPriority(SCacheFilePriority priority)
Set the cache priority for pages referenced by this cursor handle.
|
void |
BdbServerAdmin.shutdownServer()
Request to shutdown the server.
|
int |
SDatabase.truncate(STransaction txn,
boolean countRecords)
Empty the database, discarding all records it contains.
|
Modifier and Type | Method and Description |
---|---|
STransaction |
CurrentTransaction.abortTransaction()
Aborts the transaction that is active for the current thread for this
environment and makes the parent transaction (if any) the current
transaction.
|
void |
PrimaryKeyAssigner.assignKey(SDatabaseEntry keyData)
Assigns a new primary key value into the given buffer.
|
STransaction |
CurrentTransaction.beginTransaction(STransactionConfig config)
Begins a new transaction for this environment and associates it with
the current thread.
|
STransaction |
CurrentTransaction.commitTransaction()
Commits the transaction that is active for the current thread for this
environment and makes the parent transaction (if any) the current
transaction.
|
void |
TransactionRunner.run(TransactionWorker worker)
Calls the
TransactionWorker.doWork() method and, for transactional
environments, may begin and end a transaction. |
Modifier and Type | Class and Description |
---|---|
class |
IndexNotAvailableException
Thrown by the
getPrimaryIndex , getSecondaryIndex and getSubclassIndex when an index has not yet
been created. |
class |
StoreExistsException
Thrown by the
EntityStore constructor when the ExclusiveCreate configuration parameter is
true and the store's internal catalog database already exists. |
class |
StoreNotFoundException
Thrown by the
EntityStore constructor when the AllowCreate configuration parameter is false and
the store's internal catalog database does not exist. |
Modifier and Type | Method and Description |
---|---|
void |
EntityStore.close()
Closes all databases and sequences that were opened via this store.
|
void |
ForwardCursor.close()
Closes the cursor.
|
void |
EntityCursor.close()
Closes the cursor.
|
void |
EntityStore.closeClass(java.lang.Class entityClass)
Closes the primary and secondary databases for the given entity class
that were opened via this store.
|
boolean |
EntityIndex.contains(K key)
Checks for existence of a key in this index.
|
boolean |
EntityIndex.contains(STransaction txn,
K key,
SLockMode lockMode)
Checks for existence of a key in this index.
|
long |
EntityIndex.count()
Returns a non-transactional count of the entities in this index.
|
int |
EntityCursor.count()
Returns the number of values (duplicates) for the key at the cursor
position, or returns zero if all values for the key have been deleted.
|
V |
EntityCursor.current()
Returns the value at the cursor position, or null if the value at the
cursor position has been deleted.
|
V |
EntityCursor.current(SLockMode lockMode)
Returns the value at the cursor position, or null if the value at the
cursor position has been deleted.
|
boolean |
EntityCursor.delete()
Deletes the entity at the cursor position.
|
boolean |
EntityIndex.delete(K key)
Deletes all entities with a given index key.
|
boolean |
EntityIndex.delete(STransaction txn,
K key)
Deletes all entities with a given index key.
|
EntityCursor<V> |
EntityCursor.dup()
Duplicates the cursor at the cursor position.
|
ForwardCursor<E> |
EntityJoin.entities()
Opens a cursor that returns the entities qualifying for the join.
|
EntityCursor<V> |
EntityIndex.entities()
Opens a cursor for traversing all entities in this index.
|
EntityCursor<V> |
EntityIndex.entities(K fromKey,
boolean fromInclusive,
K toKey,
boolean toInclusive)
Opens a cursor for traversing entities in a key range.
|
EntityCursor<V> |
EntityIndex.entities(STransaction txn,
K fromKey,
boolean fromInclusive,
K toKey,
boolean toInclusive,
SCursorConfig config)
Opens a cursor for traversing entities in a key range.
|
ForwardCursor<E> |
EntityJoin.entities(STransaction txn,
SCursorConfig config)
Opens a cursor that returns the entities qualifying for the join.
|
EntityCursor<V> |
EntityIndex.entities(STransaction txn,
SCursorConfig config)
Opens a cursor for traversing all entities in this index.
|
com.sleepycat.client.persist.evolve.EvolveStats |
EntityStore.evolve(com.sleepycat.client.persist.evolve.EvolveConfig config)
Performs conversion of unevolved objects in order to reduce lazy
conversion overhead.
|
V |
EntityCursor.first()
Moves the cursor to the first value and returns it, or returns null if
the cursor range is empty.
|
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(K key)
Gets an entity via a key of this index.
|
E |
PrimaryIndex.get(PK key) |
E |
SecondaryIndex.get(SK key) |
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) |
<PK,E> PrimaryIndex<PK,E> |
EntityStore.getPrimaryIndex(java.lang.Class<PK> primaryKeyClass,
java.lang.Class<E> entityClass)
Returns the primary index for a given entity class, opening it if
necessary.
|
<SK,PK,E> SecondaryIndex<SK,PK,E> |
EntityStore.getSecondaryIndex(PrimaryIndex<PK,E> primaryIndex,
java.lang.Class<SK> keyClass,
java.lang.String keyName)
Returns a secondary index for a given primary index and secondary key,
opening it if necessary.
|
SSequence |
EntityStore.getSequence(java.lang.String name)
Returns a named sequence for using Berkeley DB engine API directly,
opening it if necessary.
|
<SK,PK,E1,E2 extends E1> |
EntityStore.getSubclassIndex(PrimaryIndex<PK,E1> primaryIndex,
java.lang.Class<E2> entitySubclass,
java.lang.Class<SK> keyClass,
java.lang.String keyName)
Returns a secondary index for a secondary key in an entity subclass,
opening it if necessary.
|
ForwardCursor<PK> |
EntityJoin.keys()
Opens a cursor that returns the primary keys of entities qualifying for
the join.
|
EntityCursor<K> |
EntityIndex.keys()
Opens a cursor for traversing all keys in this index.
|
EntityCursor<K> |
EntityIndex.keys(K fromKey,
boolean fromInclusive,
K toKey,
boolean toInclusive)
Opens a cursor for traversing keys in a key range.
|
EntityCursor<K> |
EntityIndex.keys(STransaction txn,
K fromKey,
boolean fromInclusive,
K toKey,
boolean toInclusive,
SCursorConfig config)
Opens a cursor for traversing keys in a key range.
|
ForwardCursor<PK> |
EntityJoin.keys(STransaction txn,
SCursorConfig config)
Opens a cursor that returns the primary keys of entities qualifying for
the join.
|
EntityCursor<K> |
EntityIndex.keys(STransaction txn,
SCursorConfig config)
Opens a cursor for traversing all keys in this index.
|
EntityIndex<SK,PK> |
SecondaryIndex.keysIndex()
Returns a read-only keys index that maps secondary key to primary key.
|
V |
EntityCursor.last()
Moves the cursor to the last value and returns it, or returns null if
the cursor range is empty.
|
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()
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()
Moves the cursor to the next value and returns it, or returns null
if there are no more values in the cursor range.
|
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()
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.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()
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.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()
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.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()
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.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()
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.
|
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.
|
E |
PrimaryIndex.put(E entity)
Inserts an entity and returns null, or updates it if the primary key
already exists and returns the existing entity.
|
E |
PrimaryIndex.put(STransaction txn,
E entity)
Inserts an entity and returns null, or updates it if the primary key
already exists and returns the existing entity.
|
boolean |
PrimaryIndex.putNoOverwrite(E entity)
Inserts an entity and returns true, or returns false if the primary key
already exists.
|
boolean |
PrimaryIndex.putNoOverwrite(STransaction txn,
E entity)
Inserts an entity and returns true, or returns false if the primary key
already exists.
|
void |
PrimaryIndex.putNoReturn(E entity)
Inserts an entity, or updates it if the primary key already exists (does
not return the existing entity).
|
void |
PrimaryIndex.putNoReturn(STransaction txn,
E entity)
Inserts an entity, or updates it if the primary key already exists (does
not return the existing entity).
|
EntityIndex<PK,E> |
SecondaryIndex.subIndex(SK key)
Returns an index that maps primary key to entity for the subset of
entities having a given secondary key (duplicates).
|
void |
EntityStore.truncateClass(java.lang.Class entityClass)
Deletes all instances of this entity class and its (non-entity)
subclasses.
|
void |
EntityStore.truncateClass(STransaction txn,
java.lang.Class entityClass)
Deletes all instances of this entity class and its (non-entity)
subclasses.
|
boolean |
EntityCursor.update(V entity)
Replaces the entity at the cursor position with the given entity.
|
Constructor and Description |
---|
EntityStore(SEnvironment env,
java.lang.String storeName,
StoreConfig config)
Opens an entity store in a given environment.
|
PrimaryIndex(SDatabase database,
java.lang.Class<PK> keyClass,
EntryBinding<PK> keyBinding,
java.lang.Class<E> entityClass,
EntityBinding<E> entityBinding)
Creates a primary index without using an
EntityStore . |
SecondaryIndex(SSecondaryDatabase database,
SDatabase keysDatabase,
PrimaryIndex<PK,E> primaryIndex,
java.lang.Class<SK> secondaryKeyClass,
EntryBinding<SK> secondaryKeyBinding)
Creates a secondary index without using an
EntityStore . |
Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.