| Package | Description |
|---|---|
| com.sleepycat.compat |
INTERNAL: BDB/JE compatibility layer for bind, collections, DPL packages.
|
| com.sleepycat.je |
Foundation for creating environments, databases and transactions; provides
cursor based data access.
|
| com.sleepycat.je.dbi |
INTERNAL: Underlying XxxImpl classes for Environment, Database and Cursor,
plus other misc classes (originally, dbi meant "db internal interface").
|
| com.sleepycat.persist |
The Direct Persistence Layer (DPL) adds a persistent object model to the
Berkeley DB transactional engine.
|
| com.sleepycat.persist.impl |
INTERNAL: Direct Persistence Layer (DPL) implementation.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
DbCompat.getBtreeRecordNumbers(DatabaseConfig dbConfig) |
static boolean |
DbCompat.getDeferredWrite(DatabaseConfig dbConfig) |
static boolean |
DbCompat.getReadUncommitted(DatabaseConfig dbConfig) |
static boolean |
DbCompat.getRenumbering(DatabaseConfig dbConfig) |
static boolean |
DbCompat.getSortedDuplicates(DatabaseConfig dbConfig) |
static boolean |
DbCompat.getUnsortedDuplicates(DatabaseConfig dbConfig) |
static boolean |
DbCompat.isTypeBtree(DatabaseConfig dbConfig) |
static boolean |
DbCompat.isTypeHash(DatabaseConfig dbConfig) |
static boolean |
DbCompat.isTypeQueue(DatabaseConfig dbConfig) |
static boolean |
DbCompat.isTypeRecno(DatabaseConfig dbConfig) |
static Database |
DbCompat.openDatabase(Environment env,
Transaction txn,
String fileName,
String dbName,
DatabaseConfig config)
Returns null if the database is not found (and AllowCreate is false) or
already exists (and ExclusiveCreate is true).
|
static void |
DbCompat.setBtreeComparator(DatabaseConfig dbConfig,
Comparator<byte[]> comparator) |
static void |
DbCompat.setBtreeRecordNumbers(DatabaseConfig dbConfig,
boolean val) |
static void |
DbCompat.setDeferredWrite(DatabaseConfig dbConfig,
boolean val) |
static void |
DbCompat.setReadUncommitted(DatabaseConfig dbConfig,
boolean val) |
static void |
DbCompat.setRecordLength(DatabaseConfig dbConfig,
int val) |
static void |
DbCompat.setRecordPad(DatabaseConfig dbConfig,
int val) |
static void |
DbCompat.setRenumbering(DatabaseConfig dbConfig,
boolean val) |
static void |
DbCompat.setSortedDuplicates(DatabaseConfig dbConfig,
boolean val) |
static void |
DbCompat.setTypeBtree(DatabaseConfig dbConfig) |
static void |
DbCompat.setTypeHash(DatabaseConfig dbConfig) |
static void |
DbCompat.setTypeQueue(DatabaseConfig dbConfig) |
static void |
DbCompat.setTypeRecno(DatabaseConfig dbConfig) |
static void |
DbCompat.setUnsortedDuplicates(DatabaseConfig dbConfig,
boolean val) |
static Database |
DbCompat.testOpenDatabase(Environment env,
Transaction txn,
String file,
String name,
DatabaseConfig config)
Fires an assertion if the database is not found (and AllowCreate is
false) or already exists (and ExclusiveCreate is true).
|
| Modifier and Type | Class and Description |
|---|---|
class |
SecondaryConfig
The configuration properties of a
SecondaryDatabase extend
those of a primary Database. |
| Modifier and Type | Field and Description |
|---|---|
static DatabaseConfig |
DatabaseConfig.DEFAULT
An instance created using the default constructor is initialized with
the system's default settings.
|
| Modifier and Type | Method and Description |
|---|---|
DatabaseConfig |
DatabaseConfig.clone()
Returns a copy of this configuration object.
|
DatabaseConfig |
DatabaseConfig.cloneConfig()
Deprecated.
As of JE 4.0.13, replaced by
clone(). |
DatabaseConfig |
Database.getConfig()
Returns this Database object's configuration.
|
DatabaseConfig |
DatabaseConfig.setAllowCreate(boolean allowCreate)
Configures the
Environment.openDatabase method to create the database if it does not
already exist. |
DatabaseConfig |
DatabaseConfig.setBtreeComparator(Class<? extends Comparator<byte[]>> btreeComparatorClass)
By default, a byte by byte lexicographic comparison is used for btree
keys.
|
DatabaseConfig |
DatabaseConfig.setBtreeComparator(Comparator<byte[]> btreeComparator)
By default, a byte by byte lexicographic comparison is used for btree
keys.
|
DatabaseConfig |
DatabaseConfig.setCacheMode(CacheMode cacheMode)
Sets the default
CacheMode used for operations performed on this
database. |
DatabaseConfig |
DatabaseConfig.setDeferredWrite(boolean deferredWrite)
Sets the deferred-write option.
|
DatabaseConfig |
DatabaseConfig.setDuplicateComparator(Class<? extends Comparator<byte[]>> duplicateComparatorClass)
By default, a byte by byte lexicographic comparison is used for
duplicate data items in a duplicate set.
|
DatabaseConfig |
DatabaseConfig.setDuplicateComparator(Comparator<byte[]> duplicateComparator)
By default, a byte by byte lexicographic comparison is used for
duplicate data items in a duplicate set.
|
DatabaseConfig |
DatabaseConfig.setExclusiveCreate(boolean exclusiveCreate)
Configure the
Environment.openDatabase method to fail if the database already exists. |
DatabaseConfig |
DatabaseConfig.setKeyPrefixing(boolean keyPrefixing)
Configure the database to support key prefixing.
|
DatabaseConfig |
DatabaseConfig.setNodeMaxDupTreeEntries(int nodeMaxDupTreeEntries)
Deprecated.
this property no longer has any effect;
setNodeMaxEntries(int) should be used instead. |
DatabaseConfig |
DatabaseConfig.setNodeMaxEntries(int nodeMaxEntries)
Configures the
Environment.openDatabase method to have a B+Tree fanout of
nodeMaxEntries. |
DatabaseConfig |
DatabaseConfig.setOverrideBtreeComparator(boolean override)
Sets to true if the database exists and the btree comparator specified
in this configuration object should override the current comparator.
|
DatabaseConfig |
DatabaseConfig.setOverrideDuplicateComparator(boolean override)
Sets to true if the database exists and the duplicate comparator
specified in this configuration object should override the current
comparator.
|
DatabaseConfig |
SecondaryConfig.setOverrideTriggers(boolean override) |
DatabaseConfig |
DatabaseConfig.setOverrideTriggers(boolean override) |
DatabaseConfig |
DatabaseConfig.setReadOnly(boolean readOnly)
Configures the database in read-only mode.
|
DatabaseConfig |
DatabaseConfig.setReplicated(boolean replicated)
Configures a database to be replicated or non-replicated, in a
replicated Environment.
|
DatabaseConfig |
DatabaseConfig.setSecondaryAssociation(SecondaryAssociation association) |
DatabaseConfig |
DatabaseConfig.setSortedDuplicates(boolean sortedDuplicates)
Configures the database to support records with duplicate keys.
|
DatabaseConfig |
DatabaseConfig.setTemporary(boolean temporary)
Sets the temporary database option.
|
DatabaseConfig |
DatabaseConfig.setTransactional(boolean transactional)
Encloses the database open within a transaction.
|
DatabaseConfig |
SecondaryConfig.setTriggers(List<Trigger> triggers) |
DatabaseConfig |
DatabaseConfig.setTriggers(List<Trigger> triggers) |
DatabaseConfig |
DatabaseConfig.setUseExistingConfig(boolean useExistingConfig)
Setting useExistingConfig to true allows a program to open a database
without knowing a prior what its configuration is.
|
| Modifier and Type | Method and Description |
|---|---|
Database |
Environment.openDatabase(Transaction txn,
String databaseName,
DatabaseConfig dbConfig)
Opens, and optionally creates, a
Database. |
static void |
DbInternal.setUseExistingConfig(DatabaseConfig config,
boolean useExistingConfig)
Proxy to DatabaseConfig.setUseExistingConfig()
|
static void |
DbInternal.validate(DatabaseConfig config1,
DatabaseConfig config2)
Proxy to DatabaseConfig.validate(DatabaseConfig()
|
| Modifier and Type | Method and Description |
|---|---|
DatabaseConfig |
ReplicatedDatabaseConfig.getReplicaConfig(EnvironmentImpl envImpl)
Create a database config for use on the replica which contains
all the configuration options that were conveyed by way of this class.
|
| Modifier and Type | Method and Description |
|---|---|
DatabaseImpl |
DbTree.createDb(Locker locker,
String databaseName,
DatabaseConfig dbConfig,
HandleLocker handleLocker)
Creates a new database object given a database name.
|
DatabaseImpl |
DbTree.createInternalDb(Locker locker,
String databaseName,
DatabaseConfig dbConfig)
Create a database for internal use.
|
DatabaseImpl |
DbTree.createReplicaDb(Locker locker,
String databaseName,
DatabaseConfig dbConfig,
NameLN replicatedLN,
ReplicationContext repContext)
Create a replicated database on this replica node.
|
void |
DatabaseImpl.setConfigProperties(Locker locker,
String dbName,
DatabaseConfig dbConfig,
EnvironmentImpl envImpl) |
| Constructor and Description |
|---|
DatabaseImpl(Locker locker,
String dbName,
DatabaseId id,
EnvironmentImpl envImpl,
DatabaseConfig dbConfig)
Create a database object for a new database.
|
| Modifier and Type | Method and Description |
|---|---|
DatabaseConfig |
EntityStore.getPrimaryConfig(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(Class entityClass,
DatabaseConfig config)
Configures the primary database for an entity class using the Berkeley
DB engine API.
|
| Modifier and Type | Method and Description |
|---|---|
DatabaseConfig |
Store.getPrimaryConfig(Class entityClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
Store.setPrimaryConfig(Class entityClass,
DatabaseConfig config) |
| Constructor and Description |
|---|
PersistCatalog(Environment env,
String storePrefix,
String dbName,
DatabaseConfig dbConfig,
EntityModel modelParam,
Mutations mutationsParam,
boolean rawAccess,
Store store)
Creates a new catalog, opening the database and reading it from a given
catalog database if it already exists.
|
Copyright © 2024. All rights reserved.