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

Legal Notice

This documentation is distributed under the terms of the Sleepycat public license. You may review the terms of this license at: http://www.sleepycat.com/download/oslicense.html

Sleepycat Software, Berkeley DB, Berkeley DB XML and the Sleepycat logo are trademarks or service marks of Sleepycat Software, Inc. All rights to these marks are reserved. No third-party use is permitted without the express prior written consent of Sleepycat Software, Inc.

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 write to .

5/25/2006


Table of Contents

Preface
Conventions Used in this Book
For More Information
1. Introduction
Java 1.5 Features
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