Getting Started with Berkeley DB
Language: C · C++ · Java (this page)
Legal Notice
This documentation is distributed under an open source license. You may review the terms of this license at: http://www.oracle.com/technetwork/database/berkeleydb/downloads/oslicense-093458.html
Oracle, Berkeley DB, and Sleepycat are trademarks or registered trademarks of Oracle. All rights to these marks are reserved. No third-party use is permitted without the express prior written consent of Oracle.
Java™ and all Java-based marks are a trademark or registered trademark of Sun Microsystems, Inc, in the United States and other countries.
Other names may be trademarks of their respective owners.
To obtain a copy of this document's original source code, please submit a request to the Oracle Technology Network forum at: http://forums.oracle.com/forums/forum.jspa?forumID=271
9/9/2013
Table of Contents
1. Introduction to Berkeley DB
Replacing and Deleting Entries
Choosing between BTree and Hash
Choosing between Queue and Recno
Database Limits and Portability
I. Programming with the Direct Persistence Layer
3. Direct Persistence Layer First Steps
Opening and Closing Environments and Stores
5. Saving and Retrieving Objects
Placing Objects in an Entity Store
Retrieving Objects from an Entity Store
II. Programming with the Base API
Managing Databases in Environments
Reading and Writing Database Records
Writing Records to the Database
Getting Records from the Database
Getting Records Using the Cursor
Working with Duplicate Records
Deleting Records Using Cursors
Replacing Records Using Cursors
Opening and Closing Secondary Databases
Deleting Secondary Database Records
Opening Secondary Databases with MyDbs
Using Secondary Databases with ExampleDatabaseRead
List of Examples
7.1. MyDbs Class
8.1. Inventory.java
8.2. Vendor.java
8.4. Stored Class Catalog Management with MyDbs
10.1. ItemNameKeyCreator.java
10.2. SecondaryDatabase Management with MyDbs
10.3. SecondaryDatabase usage with ExampleDatabaseRead
>