| Package | Description |
|---|---|
| com.sleepycat.je |
Foundation for creating environments, databases and transactions; provides
cursor based data access.
|
| com.sleepycat.je.jca.ra |
Support for the Java Connector Architecture, which provides a standard
for connecting the J2EE platform to legacy enterprise information
systems (EIS), such as ERP systems, database systems, and legacy
applications not written in Java.
|
| com.sleepycat.persist |
The Direct Persistence Layer (DPL) adds a persistent object model to the
Berkeley DB transactional engine.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
SecondaryConfig |
The configuration properties of a
SecondaryDatabase extend
those of a primary Database. |
| Modifier and Type | Field | Description |
|---|---|---|
static DatabaseConfig |
DatabaseConfig.DEFAULT |
An instance created using the default constructor is initialized with
the system's default settings.
|
| Modifier and Type | Method | 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(java.lang.Class<? extends java.util.Comparator<byte[]>> btreeComparatorClass) |
By default, a byte by byte lexicographic comparison is used for btree
keys.
|
DatabaseConfig |
DatabaseConfig.setBtreeComparator(java.util.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(java.lang.Class<? extends java.util.Comparator<byte[]>> duplicateComparatorClass) |
By default, a byte by byte lexicographic comparison is used for
duplicate data items in a duplicate set.
|
DatabaseConfig |
DatabaseConfig.setDuplicateComparator(java.util.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 |
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.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 |
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 | Description |
|---|---|---|
Database |
Environment.openDatabase(Transaction txn,
java.lang.String databaseName,
DatabaseConfig dbConfig) |
Opens, and optionally creates, a
Database. |
| Modifier and Type | Method | Description |
|---|---|---|
Database |
JEConnection.openDatabase(java.lang.String name,
DatabaseConfig config) |
| Modifier and Type | Method | Description |
|---|---|---|
DatabaseConfig |
EntityStore.getPrimaryConfig(java.lang.Class entityClass) |
Returns the default primary database Berkeley DB engine API
configuration for an entity class.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
EntityStore.setPrimaryConfig(java.lang.Class entityClass,
DatabaseConfig config) |
Configures the primary database for an entity class using the Berkeley
DB engine API.
|
Copyright (c) 2002, 2018 Oracle and/or its affiliates. All rights reserved.