| Package | Description |
|---|---|
| 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.
|
| Modifier and Type | Method | Description |
|---|---|---|
WriteOptions |
WriteOptions.clone() |
|
WriteOptions |
WriteOptions.setCacheMode(CacheMode cacheMode) |
Sets the
CacheMode to be used for the operation. |
WriteOptions |
WriteOptions.setExpirationTime(long expirationTime,
java.util.concurrent.TimeUnit timeUnit) |
A convenience method to set the TTL based on a given expiration time
and the current system time.
|
WriteOptions |
WriteOptions.setTTL(int ttl) |
Sets the Time-To-Live property for a 'put' operation, using
TimeUnit.Days as the TTL unit. |
WriteOptions |
WriteOptions.setTTL(int ttl,
java.util.concurrent.TimeUnit timeUnit) |
Sets the Time-To-Live property for a 'put' operation, using the given
TimeUnit. |
WriteOptions |
WriteOptions.setUpdateTTL(boolean updateTtl) |
Sets the update-TTL property for a 'put' operation.
|
| Modifier and Type | Method | Description |
|---|---|---|
OperationResult |
Cursor.delete(WriteOptions options) |
Deletes the record to which the cursor refers.
|
OperationResult |
Database.delete(Transaction txn,
DatabaseEntry key,
WriteOptions options) |
Removes records with a given key from the database.
|
OperationResult |
SecondaryCursor.delete(WriteOptions options) |
Delete the record to which the cursor refers from the primary database
and all secondary indices.
|
OperationResult |
SecondaryDatabase.delete(Transaction txn,
DatabaseEntry key,
WriteOptions options) |
Deletes the record associated with the given secondary key.
|
OperationResult |
Cursor.put(DatabaseEntry key,
DatabaseEntry data,
Put putType,
WriteOptions options) |
Inserts or updates a record according to the specified
Put
type. |
OperationResult |
Database.put(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
Put putType,
WriteOptions options) |
Inserts or updates a record according to the specified
Put
type. |
OperationResult |
SecondaryCursor.put(DatabaseEntry key,
DatabaseEntry data,
Put putType,
WriteOptions options) |
This operation is not allowed on a secondary cursor.
|
OperationResult |
SecondaryDatabase.put(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
Put putType,
WriteOptions options) |
This operation is not allowed on a secondary database.
|
| Modifier and Type | Method | Description |
|---|---|---|
OperationResult |
EntityCursor.delete(WriteOptions options) |
Deletes the entity at the cursor position, using a WriteOptions
parameter and returning an OperationResult.
|
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.
|
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.
|
OperationResult |
EntityCursor.update(V entity,
WriteOptions options) |
Replaces the entity at the cursor position with the given entity,
using a WriteOptions parameter and returning an OperationResult.
|
Copyright (c) 2002, 2018 Oracle and/or its affiliates. All rights reserved.