June 2001
Intermediate to advanced
688 pages
19h 18m
English
The Java API closely parallels the Berkeley DB C++ and C interfaces. If you are currently using either of those APIs, there will be very little to surprise you in the Java API. We have even taken care to make the names of classes, constants, methods and arguments identical where possible, across all three APIs.
The Java runtime does not automatically close Berkeley DB objects on finalization. There are several reasons for this. One is that finalization is generally run only when garbage collection occurs, and there is no guarantee that this occurs at all, even on exit. Allowing specific Berkeley DB actions to occur in ways that cannot be replicated seems wrong. Second, finalization of objects may happen in an arbitrary ...