| Package | Description |
|---|---|
| com.sleepycat.bind.serial |
Bindings that use Java serialization.
|
| com.sleepycat.bind.tuple |
Bindings that use sequences of primitive fields, or tuples.
|
| 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 |
|---|---|
boolean |
TupleSerialKeyCreator.createSecondaryKey(SecondaryDatabase db,
DatabaseEntry primaryKeyEntry,
DatabaseEntry dataEntry,
DatabaseEntry indexKeyEntry) |
boolean |
SerialSerialKeyCreator.createSecondaryKey(SecondaryDatabase db,
DatabaseEntry primaryKeyEntry,
DatabaseEntry dataEntry,
DatabaseEntry indexKeyEntry) |
boolean |
TupleSerialKeyCreator.nullifyForeignKey(SecondaryDatabase db,
DatabaseEntry dataEntry) |
boolean |
SerialSerialKeyCreator.nullifyForeignKey(SecondaryDatabase db,
DatabaseEntry dataEntry) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TupleTupleKeyCreator.createSecondaryKey(SecondaryDatabase db,
DatabaseEntry primaryKeyEntry,
DatabaseEntry dataEntry,
DatabaseEntry indexKeyEntry) |
boolean |
TupleTupleKeyCreator.nullifyForeignKey(SecondaryDatabase db,
DatabaseEntry dataEntry) |
| 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 | Method and Description |
|---|---|
SecondaryDatabase |
SecondaryCursor.getDatabase()
Returns the Database handle associated with this Cursor.
|
SecondaryDatabase |
Environment.openSecondaryDatabase(Transaction txn,
String databaseName,
Database primaryDatabase,
SecondaryConfig dbConfig)
Opens and optionally creates a
SecondaryDatabase. |
| Modifier and Type | Method and Description |
|---|---|
Collection<SecondaryDatabase> |
SecondaryAssociation.getSecondaries(DatabaseEntry primaryKey)
Returns the secondary databases associated with the given primary key.
|
List<SecondaryDatabase> |
SecondaryDatabase.getSecondaryDatabases()
Returns an empty list, since this database is itself a secondary
database.
|
List<SecondaryDatabase> |
Database.getSecondaryDatabases()
Returns a list of all
SecondaryDatabase objects associated with a primary database. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SecondaryKeyCreator.createSecondaryKey(SecondaryDatabase secondary,
DatabaseEntry key,
DatabaseEntry data,
DatabaseEntry result)
Creates a secondary key entry, given a primary key and data entry.
|
void |
SecondaryMultiKeyCreator.createSecondaryKeys(SecondaryDatabase secondary,
DatabaseEntry key,
DatabaseEntry data,
Set<DatabaseEntry> results)
Creates a secondary key entry, given a primary key and data entry.
|
static SecondaryConfig |
DbInternal.getPrivateSecondaryConfig(SecondaryDatabase secDb)
Proxy to SecondaryDatabase.getPrivateSecondaryConfig
|
boolean |
ForeignKeyNullifier.nullifyForeignKey(SecondaryDatabase secondary,
DatabaseEntry data)
Sets the foreign key reference to null in the datum of the primary
database.
|
boolean |
ForeignMultiKeyNullifier.nullifyForeignKey(SecondaryDatabase secondary,
DatabaseEntry key,
DatabaseEntry data,
DatabaseEntry secKey)
Sets the foreign key reference to null in the datum of the primary
database.
|
static boolean |
DbInternal.readPrimaryAfterGet(Cursor cursor,
Database priDb,
DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode,
boolean secDirtyRead,
boolean lockPrimaryOnly,
boolean allowNoData,
Locker locker,
SecondaryDatabase secDb,
SecondaryAssociation secAssoc)
Proxy to Cursor.readPrimaryAfterGet
|
| Modifier and Type | Method and Description |
|---|---|
SecondaryDatabase |
SecondaryIndex.getDatabase()
Returns the underlying secondary database for this index.
|
| Constructor and Description |
|---|
SecondaryIndex(SecondaryDatabase database,
Database keysDatabase,
PrimaryIndex<PK,E> primaryIndex,
Class<SK> secondaryKeyClass,
EntryBinding<SK> secondaryKeyBinding)
Creates a secondary index without using an
EntityStore. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
PersistKeyCreator.createSecondaryKey(SecondaryDatabase secondary,
DatabaseEntry key,
DatabaseEntry data,
DatabaseEntry result) |
void |
PersistKeyCreator.createSecondaryKeys(SecondaryDatabase secondary,
DatabaseEntry key,
DatabaseEntry data,
Set results) |
boolean |
PersistKeyCreator.nullifyForeignKey(SecondaryDatabase secondary,
DatabaseEntry key,
DatabaseEntry data,
DatabaseEntry secKey) |
Copyright © 2024. All rights reserved.