| Package | Description |
|---|---|
| com.sleepycat.collections |
Data access based on the standard Java collections API.
|
| 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.je.trigger |
NOT YET RELEASED: Triggers provide a mechanism for automatically executing one
or more application defined trigger methods whenever a certain type of
operation is performed.
|
| com.sleepycat.je.txn |
INTERNAL: Transaction management and locking (concurrency control).
|
| 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 |
|---|---|
Transaction |
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.
|
Transaction |
CurrentTransaction.beginTransaction(TransactionConfig config)
Begins a new transaction for this environment and associates it with
the current thread.
|
Transaction |
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.
|
Transaction |
CurrentTransaction.getTransaction()
Returns the transaction associated with the current thread for this
environment, or null if no transaction is active.
|
| Modifier and Type | Method and Description |
|---|---|
static Transaction |
DbCompat.getThreadTransaction(Environment env) |
| Modifier and Type | Method and Description |
|---|---|
static OperationStatus |
DbCompat.append(Database db,
Transaction txn,
DatabaseEntry key,
DatabaseEntry data) |
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 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 boolean |
DbCompat.removeDatabase(Environment env,
Transaction txn,
String fileName,
String dbName)
Returns false if the database is not found.
|
static boolean |
DbCompat.renameDatabase(Environment env,
Transaction txn,
String oldFileName,
String oldDbName,
String newFileName,
String newDbName)
Returns false if the database is not found.
|
static boolean |
DbCompat.setImportunate(Transaction txn,
boolean importunate) |
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).
|
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).
|
static boolean |
DbCompat.truncateDatabase(Environment env,
Transaction txn,
String fileName,
String dbName)
Returns false if the database is not found.
|
| Modifier and Type | Method and Description |
|---|---|
static Transaction |
DbInternal.beginInternalTransaction(Environment env,
TransactionConfig config) |
Transaction |
Environment.beginTransaction(Transaction parent,
TransactionConfig txnConfig)
Creates a new transaction in the database environment.
|
Transaction |
Environment.getThreadTransaction()
Returns the transaction associated with this thread if implied
transactions are being used.
|
Transaction |
XAEnvironment.getXATransaction(Xid xid)
Used to get the Transaction object given an XA Xid.
|
| Modifier and Type | Method and Description |
|---|---|
Transaction |
Environment.beginTransaction(Transaction parent,
TransactionConfig txnConfig)
Creates a new transaction in the database environment.
|
OperationStatus |
SecondaryDatabase.delete(Transaction txn,
DatabaseEntry key)
Deletes the record associated with the given secondary key.
|
OperationStatus |
Database.delete(Transaction txn,
DatabaseEntry key)
Removes records with a given key from the database.
|
OperationResult |
SecondaryDatabase.delete(Transaction txn,
DatabaseEntry key,
WriteOptions options)
Deletes the record associated with the given secondary key.
|
OperationResult |
Database.delete(Transaction txn,
DatabaseEntry key,
WriteOptions options)
Removes records with a given key from the database.
|
long |
Environment.discardExtinctRecords(@Nullable Transaction txn,
@NonNull Set<String> dbNames,
@Nullable DatabaseEntry inclusiveBeginKey,
@Nullable DatabaseEntry exclusiveEndKey,
@Nullable ScanFilter scanFilter,
@Nullable String label)
Initiates asynchronous discarding of the specified extinct records.
|
OperationResult |
SecondaryDatabase.get(Transaction txn,
DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
Get getType,
ReadOptions options)
Retrieves a record according to the specified
Get type. |
OperationStatus |
SecondaryDatabase.get(Transaction txn,
DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Retrieves the key/data pair with the given key.
|
OperationResult |
SecondaryDatabase.get(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
Get getType,
ReadOptions options)
Moves the cursor to a record according to the specified
Get
type. |
OperationResult |
Database.get(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
Get getType,
ReadOptions options)
Retrieves a record according to the specified
Get type. |
OperationStatus |
SecondaryDatabase.get(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode) |
OperationStatus |
Database.get(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Retrieves the key/data pair with the given key.
|
long |
Sequence.get(Transaction txn,
int delta)
Returns the next available element in the sequence and changes the
sequence value by
delta. |
static Environment |
DbInternal.getEnvironment(Transaction txn)
Proxy to Transaction.getEnvironment()
|
static Locker |
DbInternal.getLocker(Transaction txn)
Proxy to Transaction.getLocker()
|
OperationStatus |
SecondaryDatabase.getSearchBoth(Transaction txn,
DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Retrieves the key/data pair with the specified secondary and primary
key, that is, both the primary and secondary key items must match.
|
OperationStatus |
SecondaryDatabase.getSearchBoth(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
This operation is not allowed with this method signature.
|
OperationStatus |
Database.getSearchBoth(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Retrieves the key/data pair with the given key and data value, that is,
both the key and data items must match.
|
static Txn |
DbInternal.getTxn(Transaction transaction) |
SecondaryCursor |
SecondaryDatabase.openCursor(Transaction txn,
CursorConfig cursorConfig)
Obtain a cursor on a database, returning a
SecondaryCursor. |
Cursor |
Database.openCursor(Transaction txn,
CursorConfig cursorConfig)
Returns a cursor into the database.
|
Database |
Environment.openDatabase(Transaction txn,
String databaseName,
DatabaseConfig dbConfig)
Opens, and optionally creates, a
Database. |
SecondaryCursor |
SecondaryDatabase.openSecondaryCursor(Transaction txn,
CursorConfig cursorConfig)
Deprecated.
As of JE 4.0.13, replaced by
SecondaryDatabase.openCursor(com.sleepycat.je.Transaction, com.sleepycat.je.CursorConfig). |
SecondaryDatabase |
Environment.openSecondaryDatabase(Transaction txn,
String databaseName,
Database primaryDatabase,
SecondaryConfig dbConfig)
Opens and optionally creates a
SecondaryDatabase. |
Sequence |
Database.openSequence(Transaction txn,
DatabaseEntry key,
SequenceConfig config)
Opens a sequence in the database.
|
void |
SecondaryDatabase.populateSecondaries(Transaction txn,
DatabaseEntry key,
DatabaseEntry data) |
void |
Database.populateSecondaries(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
Deprecated.
|
void |
SecondaryDatabase.populateSecondaries(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
long expirationTime,
CacheMode cacheMode) |
void |
Database.populateSecondaries(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
long expirationTime,
CacheMode cacheMode) |
OperationStatus |
SecondaryDatabase.put(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
This operation is not allowed on a secondary database.
|
OperationStatus |
Database.put(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
Stores the key/data pair into the database.
|
OperationResult |
SecondaryDatabase.put(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
Put putType,
WriteOptions options)
This operation is not allowed on a secondary database.
|
OperationResult |
Database.put(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
Put putType,
WriteOptions options)
Inserts or updates a record according to the specified
Put
type. |
OperationStatus |
SecondaryDatabase.putNoDupData(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
This operation is not allowed on a secondary database.
|
OperationStatus |
Database.putNoDupData(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
Stores the key/data pair into the database if it does not already appear
in the database.
|
OperationStatus |
SecondaryDatabase.putNoOverwrite(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
This operation is not allowed on a secondary database.
|
OperationStatus |
Database.putNoOverwrite(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
Stores the key/data pair into the database if the key does not already
appear in the database.
|
void |
Environment.removeDatabase(Transaction txn,
String databaseName)
Removes a database from the environment, discarding all records in the
database and removing the database name itself.
|
void |
Database.removeSequence(Transaction txn,
DatabaseEntry key)
Removes the sequence from the database.
|
void |
Environment.renameDatabase(Transaction txn,
String databaseName,
String newName)
Renames a database, without removing the records it contains.
|
void |
Environment.setThreadTransaction(Transaction txn)
Sets the transaction associated with this thread if implied transactions
are being used.
|
void |
XAEnvironment.setXATransaction(Xid xid,
Transaction txn)
Used to set the Transaction object for an XA Xid.
|
long |
Environment.truncateDatabase(Transaction txn,
String databaseName,
boolean returnCount)
Empties the database, discarding all the records it contains, without
removing the database name.
|
| Modifier and Type | Method and Description |
|---|---|
Txn |
EnvironmentImpl.txnBegin(Transaction parent,
TransactionConfig txnConfig)
Transactional services.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TransactionTrigger.abort(Transaction txn)
The trigger method invoked after the transaction has been aborted.
|
void |
Trigger.addTrigger(Transaction txn)
The trigger method invoked when this trigger is added to the database.
|
void |
TransactionTrigger.commit(Transaction txn)
The trigger method invoked after a transaction has been committed.
|
void |
Trigger.delete(Transaction txn,
DatabaseEntry key,
DatabaseEntry oldData)
The trigger method invoked after a successful delete, that is, one that
actually resulted in a key/value pair being removed.
|
void |
PersistentTrigger.open(Transaction txn,
Environment environment,
boolean isNew)
The trigger method invoked after the open of the first
Database
writable handle. |
void |
Trigger.put(Transaction txn,
DatabaseEntry key,
DatabaseEntry oldData,
DatabaseEntry newData)
The trigger method invoked after a successful put, that is, one that
actually results in a modification to the database.
|
void |
PersistentTrigger.remove(Transaction txn)
The trigger method invoked after the successful removal of a primary
Database. |
void |
Trigger.removeTrigger(Transaction txn)
The trigger method invoked when this trigger is removed from the
database, either as a result of opening the database with a different
trigger configuration, or because the database it was associated with it
has been removed.
|
void |
PersistentTrigger.rename(Transaction txn,
String newName)
The trigger method invoked after the successful renaming of a primary
Database. |
void |
ReplicatedDatabaseTrigger.repeatAddTrigger(Transaction txn)
The trigger method invoked when an addTrigger operation needs to be
repeated.
|
void |
ReplicatedDatabaseTrigger.repeatCreate(Transaction txn)
The trigger method invoked when a database create trigger needs to be
repeated.
|
void |
ReplicatedDatabaseTrigger.repeatDelete(Transaction txn,
DatabaseEntry key)
The trigger method invoked when a database delete trigger needs to be
repeated.
|
void |
ReplicatedDatabaseTrigger.repeatPut(Transaction txn,
DatabaseEntry key,
DatabaseEntry newData)
The trigger method invoked when a database put trigger needs to be
repeated.
|
void |
ReplicatedDatabaseTrigger.repeatRemove(Transaction txn)
The trigger method invoked when a database remove trigger needs to be
repeated.
|
void |
ReplicatedDatabaseTrigger.repeatRemoveTrigger(Transaction txn)
The trigger method invoked when a removeTrigger operation needs to be
repeated.
|
void |
ReplicatedDatabaseTrigger.repeatRename(Transaction txn,
String newName)
The trigger method invoked when a database rename trigger needs to be
repeated.
|
void |
ReplicatedDatabaseTrigger.repeatTransaction(Transaction txn)
Used to inform the application that the trigger method calls associated
with the partial transaction will be repeated.
|
void |
ReplicatedDatabaseTrigger.repeatTruncate(Transaction txn)
The trigger method invoked when a database truncate trigger needs to be
repeated.
|
void |
PersistentTrigger.truncate(Transaction txn)
The trigger method invoked after the successful truncation of a
Database. |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
BuddyLocker.getTransaction()
Forwards this call to the buddy locker.
|
Transaction |
Txn.getTransaction() |
Transaction |
Locker.getTransaction()
Returns a Transaction if the locker is transctional, or null otherwise.
|
Transaction |
TxnManager.getTxnForThread()
Retrieve a Txn object for this Thread.
|
Transaction |
TxnManager.unsetTxnForThread()
Called when txn is assoc'd with this thread.
|
| Modifier and Type | Method and Description |
|---|---|
static Locker |
LockerFactory.getReadableLocker(Database dbHandle,
Transaction userTxn,
boolean readCommittedIsolation)
Get a locker for a read or cursor operation.
|
static Locker |
LockerFactory.getWritableLocker(Environment env,
Transaction userTxn,
boolean isInternalDb,
boolean dbIsTransactional,
boolean autoTxnIsReplicated)
Get a locker for a write operation, checking whether the db and
environment is transactional or not.
|
static Locker |
LockerFactory.getWritableLocker(Environment env,
Transaction userTxn,
boolean isInternalDb,
boolean dbIsTransactional,
boolean autoTxnIsReplicated,
TransactionConfig autoCommitConfig)
Get a locker for a write operation.
|
void |
Txn.setTransaction(Transaction transaction) |
void |
TxnManager.setTxnForThread(Transaction txn)
Called when txn is assoc'd with this thread.
|
Txn |
TxnManager.txnBegin(Transaction parent,
TransactionConfig txnConfig)
Create a new transaction.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
EntityIndex.contains(Transaction txn,
K key,
LockMode lockMode)
Checks for existence of a key in this index.
|
boolean |
EntityIndex.delete(Transaction txn,
K key)
Deletes all entities with a given index key.
|
OperationResult |
EntityIndex.delete(Transaction txn,
K key,
WriteOptions options)
Deletes all entities with a given index key, using a WriteOptions
parameter and returning an OperationResult.
|
EntityCursor<V> |
EntityIndex.entities(Transaction txn,
CursorConfig config)
Opens a cursor for traversing all entities in this index.
|
ForwardCursor<E> |
EntityJoin.entities(Transaction txn,
CursorConfig config)
Opens a cursor that returns the entities qualifying for the join.
|
EntityCursor<V> |
EntityIndex.entities(Transaction txn,
K fromKey,
boolean fromInclusive,
K toKey,
boolean toInclusive,
CursorConfig config)
Opens a cursor for traversing entities in a key range.
|
EntityResult<V> |
EntityIndex.get(Transaction txn,
K key,
Get getType,
ReadOptions options)
Gets an entity via a key of this index, using Get type and ReadOptions
parameters, and returning an EntityResult.
|
V |
EntityIndex.get(Transaction txn,
K key,
LockMode lockMode)
Gets an entity via a key of this index.
|
EntityResult<E> |
PrimaryIndex.get(Transaction txn,
PK key,
Get getType,
ReadOptions options) |
E |
PrimaryIndex.get(Transaction txn,
PK key,
LockMode lockMode) |
EntityResult<E> |
SecondaryIndex.get(Transaction txn,
SK key,
Get getType,
ReadOptions options) |
E |
SecondaryIndex.get(Transaction txn,
SK key,
LockMode lockMode) |
EntityCursor<K> |
EntityIndex.keys(Transaction txn,
CursorConfig config)
Opens a cursor for traversing all keys in this index.
|
ForwardCursor<PK> |
EntityJoin.keys(Transaction txn,
CursorConfig config)
Opens a cursor that returns the primary keys of entities qualifying for
the join.
|
EntityCursor<K> |
EntityIndex.keys(Transaction txn,
K fromKey,
boolean fromInclusive,
K toKey,
boolean toInclusive,
CursorConfig config)
Opens a cursor for traversing keys in a key range.
|
E |
PrimaryIndex.put(Transaction txn,
E entity)
Inserts an entity and returns null, or updates it if the primary key
already exists and returns the existing entity.
|
OperationResult |
PrimaryIndex.put(Transaction txn,
E entity,
Put putType,
WriteOptions options)
Inserts or updates an entity, using Put type and WriteOptions
parameters, and returning an OperationResult.
|
boolean |
PrimaryIndex.putNoOverwrite(Transaction txn,
E entity)
Inserts an entity and returns true, or returns false if the primary key
already exists.
|
void |
PrimaryIndex.putNoReturn(Transaction txn,
E entity)
Inserts an entity, or updates it if the primary key already exists (does
not return the existing entity).
|
void |
EntityStore.truncateClass(Transaction txn,
Class entityClass)
Deletes all instances of this entity class and its (non-entity)
subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PersistCatalog.flush(Transaction txn)
Used to write the catalog when a format has been changed, for example,
when Store.evolve has updated a Format's EvolveNeeded property.
|
void |
Store.truncateClass(Transaction txn,
Class entityClass) |
Copyright © 2024. All rights reserved.