Uses of Class com.sleepycat.je.Database (Oracle - Berkeley DB Java Edition API)
Date: 2014-12-16

## Uses of Class
com.sleepycat.je.Database

- Packages that use Database
  Package | Description
  --- | ---
  com.sleepycat.bind.serial | Bindings that use Java serialization.
  com.sleepycat.collections | Data access based on the standard Java collections API.
  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.je.rep | Berkeley DB Java Edition High Availability (JE HA) enables replication of JE environments.
  com.sleepycat.persist | The Direct Persistence Layer (DPL) adds a persistent object model to the Berkeley DB transactional engine.

- - ### Uses of Database in com.sleepycat.bind.serial

    Constructors in com.sleepycat.bind.serial with parameters of type Database
    Constructor and Description
    `StoredClassCatalog(Database database)` Creates a catalog based on a given database.

  - ### Uses of Database in com.sleepycat.collections

    Methods in com.sleepycat.collections with parameters of type Database
    Modifier and Type | Method and Description
    --- | ---
    `<K,V extends MarshalledTupleKeyEntity> StoredMap<K,V>` | TupleSerialFactory.`newMap(Database db, Class<K> keyClass, Class<V> valueBaseClass, boolean writeAllowed)` Creates a map from a previously opened Database object.
    `<K,V extends MarshalledTupleKeyEntity> StoredSortedMap<K,V>` | TupleSerialFactory.`newSortedMap(Database db, Class<K> keyClass, Class<V> valueBaseClass, boolean writeAllowed)` Creates a sorted map from a previously opened Database object.

    Constructors in com.sleepycat.collections with parameters of type Database
    Constructor and Description
    `StoredKeySet(Database database, EntryBinding<K> keyBinding, boolean writeAllowed)` Creates a key set view of a `Database`.
    `StoredMap(Database database, EntryBinding<K> keyBinding, EntityBinding<V> valueEntityBinding, boolean writeAllowed)` Creates a map entity view of a `Database`.
    `StoredMap(Database database, EntryBinding<K> keyBinding, EntityBinding<V> valueEntityBinding, PrimaryKeyAssigner keyAssigner)` Creates a map entity view of a `Database` with a `PrimaryKeyAssigner`.
    `StoredMap(Database database, EntryBinding<K> keyBinding, EntryBinding<V> valueBinding, boolean writeAllowed)` Creates a map view of a `Database`.
    `StoredMap(Database database, EntryBinding<K> keyBinding, EntryBinding<V> valueBinding, PrimaryKeyAssigner keyAssigner)` Creates a map view of a `Database` with a `PrimaryKeyAssigner`.
    `StoredSortedKeySet(Database database, EntryBinding<K> keyBinding, boolean writeAllowed)` Creates a sorted key set view of a `Database`.
    `StoredSortedMap(Database database, EntryBinding<K> keyBinding, EntityBinding<V> valueEntityBinding, boolean writeAllowed)` Creates a sorted map entity view of a `Database`.
    `StoredSortedMap(Database database, EntryBinding<K> keyBinding, EntityBinding<V> valueEntityBinding, PrimaryKeyAssigner keyAssigner)` Creates a sorted map entity view of a `Database` with a `PrimaryKeyAssigner`.
    `StoredSortedMap(Database database, EntryBinding<K> keyBinding, EntryBinding<V> valueBinding, boolean writeAllowed)` Creates a sorted map view of a `Database`.
    `StoredSortedMap(Database database, EntryBinding<K> keyBinding, EntryBinding<V> valueBinding, PrimaryKeyAssigner keyAssigner)` Creates a sorted map view of a `Database` with a `PrimaryKeyAssigner`.
    `StoredSortedValueSet(Database database, EntityBinding<E> valueEntityBinding, boolean writeAllowed)` Creates a sorted value set entity view of a `Database`.
    `StoredValueSet(Database database, EntityBinding<E> valueEntityBinding, boolean writeAllowed)` Creates a value set entity view of a `Database`.
    `StoredValueSet(Database database, EntryBinding<E> valueBinding, boolean writeAllowed)` Creates a value set view of a `Database`.

  - ### Uses of Database in com.sleepycat.je

    Subclasses of Database in com.sleepycat.je
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SecondaryDatabase` A secondary database handle.

    Methods in com.sleepycat.je that return Database
    Modifier and Type | Method and Description
    --- | ---
    `Database` | Sequence.`getDatabase()` Returns the Database handle associated with this sequence.
    `Database` | Cursor.`getDatabase()` Returns the Database handle associated with this Cursor.
    `Database` | JoinCursor.`getDatabase()` Returns the primary database handle associated with this cursor.
    `Database` | DiskOrderedCursor.`getDatabase()` Returns the Database handle associated with this Cursor.
    `Database` | ForwardCursor.`getDatabase()` Returns the Database handle associated with this ForwardCursor.
    `Database` | SecondaryConfig.`getForeignKeyDatabase()` Returns the database used to check the foreign key integrity constraint, or null if no foreign key constraint will be checked.
    `Database` | SecondaryDatabase.`getPrimaryDatabase()` Returns the primary database associated with this secondary database.
    `Database` | SecondaryCursor.`getPrimaryDatabase()` Returns the primary `Database` associated with this cursor.
    `Database` | Environment.`openDatabase(Transaction txn, String databaseName, DatabaseConfig dbConfig)` Opens, and optionally creates, a `Database`.

    Methods in com.sleepycat.je with parameters of type Database
    Modifier and Type | Method and Description
    --- | ---
    `SecondaryDatabase` | Environment.`openSecondaryDatabase(Transaction txn, String databaseName, Database primaryDatabase, SecondaryConfig dbConfig)` Opens and optionally creates a `SecondaryDatabase`.
    `PreloadStats` | Environment.`preload(Database[] databases, PreloadConfig config)` Preloads the cache with multiple databases.
    `SecondaryConfig` | SecondaryConfig.`setForeignKeyDatabase(Database foreignKeyDatabase)` Defines a foreign key integrity constraint for a given foreign key database.

  - ### Uses of Database in com.sleepycat.je.jca.ra

    Methods in com.sleepycat.je.jca.ra that return Database
    Modifier and Type | Method and Description
    --- | ---
    `Database` | JEConnection.`openDatabase(String name, DatabaseConfig config)`

    Methods in com.sleepycat.je.jca.ra with parameters of type Database
    Modifier and Type | Method and Description
    --- | ---
    `SecondaryDatabase` | JEConnection.`openSecondaryDatabase(String name, Database primaryDatabase, SecondaryConfig config)`

  - ### Uses of Database in com.sleepycat.je.rep

    Methods in com.sleepycat.je.rep that return Database
    Modifier and Type | Method and Description
    --- | ---
    `Database` | DatabasePreemptedException.`getDatabase()` Returns the database handle that was forcibly closed.

  - ### Uses of Database in com.sleepycat.persist

    Methods in com.sleepycat.persist that return Database
    Modifier and Type | Method and Description
    --- | ---
    `Database` | EntityIndex.`getDatabase()` Returns the underlying database for this index.
    `Database` | SecondaryIndex.`getKeysDatabase()` Returns the underlying secondary database that is not associated with the primary database and is used for the `SecondaryIndex.keysIndex`.

    Constructors in com.sleepycat.persist with parameters of type Database
    Constructor and Description
    `PrimaryIndex(Database database, Class<PK> keyClass, EntryBinding<PK> keyBinding, Class<E> entityClass, EntityBinding<E> entityBinding)` Creates a primary index without using an `EntityStore`.
    `SecondaryIndex(SecondaryDatabase database, Database keysDatabase, PrimaryIndex<PK,E> primaryIndex, Class<SK> secondaryKeyClass, EntryBinding<SK> secondaryKeyBinding)` Creates a secondary index without using an `EntityStore`.

Copyright (c) 2004, 2014 Oracle and/or its affiliates. All rights reserved.