Specifies the attributes of a database.
There are two groups of database attributes: per-database handle attributes, and database-wide attributes. An attribute may be persistent/transient or mutable/immutable:
Scope | Mutable | Persistent | Attribute |
Database-wide attribute | True | True | {@link DatabaseConfig#getBtreeComparator() btree comparator} {@link DatabaseConfig#getDuplicateComparator() duplicate comparator} {@link DatabaseConfig#getKeyPrefixing() key prefixing} {@link DatabaseConfig#getNodeMaxEntries() nodeMaxEntries} |
True | False | {@link DatabaseConfig#getDeferredWrite() deferred write} {@link DatabaseConfig#getTransactional() transactional} | |
False | True | {@link DatabaseConfig#getSortedDuplicates() sorted duplicates} | |
False | False | {@link DatabaseConfig#getTemporary() temporary} | |
Per-database handle attributes | False | False | {@link DatabaseConfig#getAllowCreate() allow create} {@link DatabaseConfig#getExclusiveCreate() exclusive create} {@link DatabaseConfig#getReadOnly() read only} {@link DatabaseConfig#getUseExistingConfig() use existing config} |
Persistent attributes will be saved in the log and remain in effect every time the environment is reopened. Transient attributes only remain in effect until:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|