Oracle Berkeley DB Java Collections Tutorial

June 30, 2007 … Foreword. Welcome to the Berkeley DB (DB) Collections API. This document contains a tutorial that shows the Collections API. ….

More PDF Content

Berkeley DB Collections Tutorial
Conventions Used in this Book … iv
For More Information … v
1. Introduction … 1
Features … 1
Developing a DB Collections Application … 2
Tutorial Introduction … 3
2. The Basic Program … 6
Defining Serialized Key and Value Classes … 6
Opening and Closing the Database Environment … 11
Opening and Closing the Class Catalog … 13
Opening and Closing Databases … 15
Creating Bindings and Collections … 17
Implementing the Main Program … 20
Using Transactions … 24
Adding Database Items … 26
Retrieving Database Items … 29
Handling Exceptions … 31
3. Using Secondary Indices … 33
Opening Secondary Key Indices … 33
More Secondary Key Indices … 37
Creating Indexed Collections … 40
Retrieving Items by Index Key … 42
4. Using Entity Classes … 46
Defining Entity Classes … 46
Creating Entity Bindings … 50
Creating Collections with Entity Bindings … 53
Using Entities with Collections … 54
5. Using Tuples … 59
Using the Tuple Format … 59
Using Tuples with Key Creators … 60
Creating Tuple Key Bindings … 62
Creating Tuple-Serial Entity Bindings … 64
Using Sorted Collections … 67
6. Using Serializable Entities … 69
Using Transient Fields in an Entity Class … 69
Using Transient Fields in an Entity Binding … 73
Removing the Redundant Value Classes … 75
7. Summary … 77
A. API Notes and Details … 78
Using Data Bindings … 78
Selecting Binding Formats … 79
Record Number Bindings … 80
Selecting Data Bindings … 80
Implementing Bindings … 81
Using Bindings … 81
Secondary Key Creators … 81
Using the DB Java Collections API … 82
Using Transactions … 82
Transaction Rollback … 83
Selecting Access Methods … 84
Access Method Restrictions … 84
Using Stored Collections … 85
Stored Collection and Access Methods … 85
Stored Collections Versus Standard Java Collections … 86
Other Stored Collection Characteristics … 87
Why Java Collections for Berkeley DB … 89
Serialized Object Storage … 90

Download Oracle Berkeley DB Java Collections Tutorial pdf from sepp.oetiker.ch, 97 pages, 437.41KB.