Getting Started with the Berkeley DB, Java Edition Direct Persistence Layer

Legal Notice

This documentation is distributed under an open source license. You may review the terms of this license at:

Oracle, Berkeley DB, Berkeley DB Java Edition 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.

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=273

12/5/2006


Table of Contents

Preface
Conventions Used in this Book
For More Information
1. Introduction
Java 1.5 Features
Bytecode Enhancement
Library Dependencies
2. Database Environments
Opening Database Environments
Closing Database Environments
Environment Properties
The EnvironmentConfig Class
EnvironmentMutableConfig
Environment Statistics
3. Getting Going with the Direct Persistence Layer
Persistent Objects
Entity versus Persistent
Vendor.class
Inventory.class
Entity Stores
MyDbEnv
Accessing Indices
Accessing Primary Indices
Accessing Secondary Indices
DataAccessor.class
4. Writing to Entity Stores
ExampleDatabasePut.class
5. Reading Data From Entity Stores
Retrieving a Single Object
Retrieving Multiple Objects
ExampleInventoryRead.class
6. Other Operations
Deleting Entity Objects
Replacing Entity Objects