Part II. Programming with the Base API
This section discusses application that are built using the DB base API. Note that most DB applications can probably be written using the DPL (see Programming with the Direct Persistence Layer for more information). However, if you want to use Java 1.4 for your DB application, or if you are porting an application from the Berkeley DB API, then the base API is right for you.
Table of Contents
7. Databases
Opening Databases
Closing Databases
Database Properties
Administrative Methods
Error Reporting Functions
Managing Databases in Environments
Database Example
8. Database Records
Using Database Records
Reading and Writing Database Records
Writing Records to the Database
Getting Records from the Database
Deleting Records
Data Persistence
Using the BIND APIs
Numerical and String Objects
Serializable Complex Objects
Custom Tuple Bindings
Database Usage Example
9. Using Cursors
Opening and Closing Cursors
Getting Records Using the Cursor
Searching for Records
Working with Duplicate Records
Putting Records Using Cursors
Deleting Records Using Cursors
Replacing Records Using Cursors
Cursor Example
10. Secondary Databases
Opening and Closing Secondary Databases
Implementing Key Creators
Working with Multiple Keys
Secondary Database Properties
Reading Secondary Databases
Deleting Secondary Database Records
Using Secondary Cursors
Database Joins
Using Join Cursors
JoinCursor Properties
Secondary Database Example
Opening Secondary Databases with MyDbs
Using Secondary Databases with ExampleDatabaseRead
11. Database Configuration
Setting the Page Size
Overflow Pages
Locking
IO Efficiency
Page Sizing Advice
Selecting the Cache Size
BTree Configuration
Allowing Duplicate Records
Setting Comparison Functions