| 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.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 SecondaryDatabase |
DbCompat.openSecondaryDatabase(Environment env,
Transaction txn,
String fileName,
String dbName,
Database primaryDatabase,
SecondaryConfig config)
Returns null if the database is not found (and AllowCreate is false) or
already exists (and ExclusiveCreate is true).
|
static SecondaryDatabase |
DbCompat.testOpenSecondaryDatabase(Environment env,
Transaction txn,
String file,
String name,
Database primary,
SecondaryConfig config)
Fires an assertion if the database is not found (and AllowCreate is
false) or already exists (and ExclusiveCreate is true).
|
| Modifier and Type | Field and Description |
|---|---|
static SecondaryConfig |
SecondaryConfig.DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
SecondaryConfig |
SecondaryConfig.clone()
Returns a copy of this configuration object.
|
SecondaryConfig |
SecondaryDatabase.getConfig()
Returns a copy of the secondary configuration of this database.
|
static SecondaryConfig |
DbInternal.getPrivateSecondaryConfig(SecondaryDatabase secDb)
Proxy to SecondaryDatabase.getPrivateSecondaryConfig
|
SecondaryConfig |
SecondaryDatabase.getSecondaryConfig()
Deprecated.
As of JE 4.0.13, replaced by
SecondaryDatabase.getConfig(). |
SecondaryConfig |
SecondaryConfig.setAllowPopulate(boolean allowPopulate)
Specifies whether automatic population of the secondary is allowed.
|
SecondaryConfig |
SecondaryConfig.setExtractFromPrimaryKeyOnly(boolean extractFromPrimaryKeyOnly) |
SecondaryConfig |
SecondaryConfig.setForeignKeyDatabase(Database foreignKeyDatabase)
Defines a foreign key integrity constraint for a given foreign key
database.
|
SecondaryConfig |
SecondaryConfig.setForeignKeyDeleteAction(ForeignKeyDeleteAction foreignKeyDeleteAction)
Specifies the action taken when a referenced record in the foreign key
database is deleted.
|
SecondaryConfig |
SecondaryConfig.setForeignKeyNullifier(ForeignKeyNullifier foreignKeyNullifier)
Specifies the user-supplied object used for setting single-valued
foreign keys to null.
|
SecondaryConfig |
SecondaryConfig.setForeignMultiKeyNullifier(ForeignMultiKeyNullifier foreignMultiKeyNullifier)
Specifies the user-supplied object used for setting multi-valued foreign
keys to null.
|
SecondaryConfig |
SecondaryConfig.setImmutableSecondaryKey(boolean immutableSecondaryKey)
Specifies whether the secondary key is immutable.
|
SecondaryConfig |
SecondaryConfig.setKeyCreator(SecondaryKeyCreator keyCreator)
Specifies the user-supplied object used for creating single-valued
secondary keys.
|
SecondaryConfig |
SecondaryConfig.setMultiKeyCreator(SecondaryMultiKeyCreator multiKeyCreator)
Specifies the user-supplied object used for creating multi-valued
secondary keys.
|
| Modifier and Type | Method and Description |
|---|---|
SecondaryDatabase |
Environment.openSecondaryDatabase(Transaction txn,
String databaseName,
Database primaryDatabase,
SecondaryConfig dbConfig)
Opens and optionally creates a
SecondaryDatabase. |
| Modifier and Type | Method and Description |
|---|---|
SecondaryConfig |
EntityStore.getSecondaryConfig(Class entityClass,
String keyName)
Returns the default secondary database Berkeley DB engine API
configuration for an entity class and key name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
EntityStore.setSecondaryConfig(Class entityClass,
String keyName,
SecondaryConfig config)
Configures a secondary database for an entity class and key name using
the Berkeley DB engine API.
|
| Modifier and Type | Method and Description |
|---|---|
SecondaryConfig |
Store.getSecondaryConfig(Class entityClass,
String keyName) |
| Modifier and Type | Method and Description |
|---|---|
void |
Store.setSecondaryConfig(Class entityClass,
String keyName,
SecondaryConfig config) |
Copyright © 2024. All rights reserved.