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 | Class and Description |
---|---|
class |
SSecondaryConfig
The configuration properties of a SSecondaryDatabase extend those of a
primary SDatabase.
|
Modifier and Type | Method and Description |
---|---|
SDatabaseConfig |
SDatabaseConfig.cloneConfig()
Create a deep copy of this configuration object.
|
SDatabaseConfig |
SDatabase.getConfig()
Return this SDatabase object's configuration.
|
SDatabaseConfig |
SDatabaseConfig.setAllowCreate(boolean allowCreate)
Configure the
SEnvironment.openDatabase(com.sleepycat.client.STransaction, java.lang.String, java.lang.String, com.sleepycat.client.SDatabaseConfig) method to create
the database if it does not already exist. |
SDatabaseConfig |
SDatabaseConfig.setBlobThreshold(int value)
Set the size in bytes which is used to determine when a data item will
be stored as a blob.
|
SDatabaseConfig |
SDatabaseConfig.setBtreeMinKey(int btMinKey)
Set the minimum number of key/data pairs intended to be stored on any
single Btree leaf page.
|
SDatabaseConfig |
SDatabaseConfig.setBtreeRecordNumbers(boolean btreeRecordNumbers)
Configure the Btree to support retrieval by record number.
|
SDatabaseConfig |
SDatabaseConfig.setChecksum(boolean checksum)
Configure the database environment to do checksum verification of
pages read into the cache from the backing filestore.
|
SDatabaseConfig |
SDatabaseConfig.setExclusiveCreate(boolean exclusiveCreate)
Configure the
SEnvironment.openDatabase(com.sleepycat.client.STransaction, java.lang.String, java.lang.String, com.sleepycat.client.SDatabaseConfig) method to fail if
the database already exists. |
SDatabaseConfig |
SDatabaseConfig.setHashFillFactor(int hashFillFactor)
Set the desired density within the hash table.
|
SDatabaseConfig |
SDatabaseConfig.setHashNumElements(int hashNumElements)
Set an estimate of the final size of the hash table.
|
SDatabaseConfig |
SDatabaseConfig.setHeapRegionSize(int npages)
Sets the number of pages in a region of a database configured to use
the Heap access method.
|
SDatabaseConfig |
SDatabaseConfig.setHeapsize(long bytes)
Set the maximum on-disk database file size used by a database configured
to use the Heap access method.
|
SDatabaseConfig |
SDatabaseConfig.setMultiversion(boolean multiversion)
Configured the database with support for multiversion concurrency
control.
|
SDatabaseConfig |
SDatabaseConfig.setNoWaitDbExclusiveLock(java.lang.Boolean noWaitDbExclLock)
Configure the
SDatabase handle to obtain a write lock on the
entire database. |
SDatabaseConfig |
SDatabaseConfig.setPageSize(int pageSize)
Set the size of the pages used to hold items in the database, in bytes.
|
SDatabaseConfig |
SDatabaseConfig.setPriority(SCacheFilePriority priority)
Set the cache priority for pages referenced by the DB handle.
|
SDatabaseConfig |
SDatabaseConfig.setQueueExtentSize(int queueExtentSize)
Set the size of the extents used to hold pages in a Queue database,
specified as a number of pages.
|
SDatabaseConfig |
SDatabaseConfig.setReadOnly(boolean readOnly)
Configure the database in read-only mode.
|
SDatabaseConfig |
SDatabaseConfig.setReadUncommitted(boolean readUncommitted)
Configure the database to support read uncommitted.
|
SDatabaseConfig |
SDatabaseConfig.setRecordLength(int recordLength)
Specify the database record length, in bytes.
|
SDatabaseConfig |
SDatabaseConfig.setRecordPad(int recordPad)
Set the padding character for short, fixed-length records for the Queue
and Recno access methods.
|
SDatabaseConfig |
SDatabaseConfig.setRenumbering(boolean renumbering)
Configure the logical record numbers to be mutable, and change as
records are added to and deleted from the database.
|
SDatabaseConfig |
SDatabaseConfig.setReverseSplitOff(boolean reverseSplitOff)
Configure the Btree to not do reverse splits.
|
SDatabaseConfig |
SDatabaseConfig.setSortedDuplicates(boolean sortedDuplicates)
Configure the database to support sorted, duplicate data items.
|
SDatabaseConfig |
SDatabaseConfig.setTransactionNotDurable(boolean transactionNotDurable)
Configure the database environment to not write log records for this
database.
|
SDatabaseConfig |
SDatabaseConfig.setType(SDatabaseType type)
Configure the type of the database.
|
SDatabaseConfig |
SDatabaseConfig.setUnsortedDuplicates(boolean unsortedDuplicates)
Configure the database to support unsorted duplicate data items.
|
Modifier and Type | Method and Description |
---|---|
SDatabase |
SEnvironment.openDatabase(STransaction txn,
java.lang.String fileName,
java.lang.String databaseName,
SDatabaseConfig config)
Open a database.
|
void |
SDatabase.setConfig(SDatabaseConfig config)
Change the settings in an existing database handle.
|
Modifier and Type | Method and Description |
---|---|
SDatabaseConfig |
EntityStore.getPrimaryConfig(java.lang.Class entityClass)
Returns the default primary database Berkeley DB engine API
configuration for an entity class.
|
Modifier and Type | Method and Description |
---|---|
void |
EntityStore.setPrimaryConfig(java.lang.Class entityClass,
SDatabaseConfig config)
Configures the primary database for an entity class using the Berkeley
DB engine API.
|
Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.