Debian Codegraph @

docs/upgrading/upgrade_4_3_java.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>Java</title>
7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB Upgrade Guide" />
10 <link rel="up" href="upgrade_4_3_toc.html" title="Chapter 7. Upgrading Berkeley DB 4.2 applications to Berkeley DB 4.3" />
11 <link rel="prev" href="upgrade_4_3_toc.html" title="Chapter 7. Upgrading Berkeley DB 4.2 applications to Berkeley DB 4.3" />
12 <link rel="next" href="upgrade_4_3_err.html" title="DB_ENV-&gt;set_errcall, DB-&gt;set_errcall" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">Java</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="upgrade_4_3_toc.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 7. Upgrading Berkeley DB 4.2 applications to Berkeley DB 4.3</th>
26 <td width="20%" align="right"> <a accesskey="n" href="upgrade_4_3_err.html">Next</a></td>
27 </tr>
28 </table>
29 <hr />
30 </div>
31 <div class="sect1" lang="en" xml:lang="en">
32 <div class="titlepage">
33 <div>
34 <div>
35 <h2 class="title" style="clear: both"><a id="upgrade_4_3_java"></a>Java</h2>
36 </div>
37 </div>
38 </div>
39 <p>The Berkeley DB Java API has changed significantly in the 4.3 release, in ways
40 incompatible with previous releases. This has been done to provide a
41 consistent Java-like API for Berkeley DB as well as to make the Berkeley DB Java API
42 match the API in Berkeley DB Java Edition, to ease application-porting between
43 the two libraries.</p>
44 <p>Here is a summary of the major changes:</p>
45 <div class="orderedlist">
46 <div class="itemizedlist">
47 <ul type="disc">
48 <li>Db -&gt; Database</li>
49 <li>Dbc -&gt; Cursor</li>
50 <li>Dbt -&gt; DatabaseEntry</li>
51 <li>DbEnv -&gt; Environment</li>
52 <li>DbTxn -&gt; Transaction</li>
53 <li>Db.cursor -&gt; Database.openCursor</li>
54 <li>Dbc.get(..., DbConstants.DB_CURRENT) -&gt; Cursor.getCurrent(...)</li>
55 </ul>
56 </div>
57 <ol type="1">
58 <li>The low-level wrapper around the C API has been moved into a package
59 called com.sleepycat.db.internal.</li>
60 <li>There is a new public API in the package com.sleepycat.db.</li>
61 <li>All flags and error numbers have been eliminated from the public API.
62 All configuration is done through method calls on configuration objects.</li>
63 <li>All classes and methods are named to Java standards, matching Berkeley DB Java
64 Edition. For example:</li>
65 <li>The statistics classes have "getter" methods for all fields.</li>
66 <li>In transactional applications, the Java API infers whether to
67 auto-commit operations: if an update is performed on a transactional
68 database without supplying a transaction, it is implicitly
69 auto-committed.</li>
70 <li>The com.sleepycat.bdb.* packages have been reorganized so that the binding
71 classes can be used with the base API in the com.sleepycat.db package. The
72 bind and collection classes are now essentially the same in Berkeley DB and Berkeley DB
73 Java Edition. The former com.sleepycat.bdb.bind.* packages are now the
74 com.sleepycat.bind.* packages. The former com.sleepycat.bdb,
75 com.sleepycat.bdb.collections, and com.sleepycat.bdb.factory packages are now
76 combined in the new com.sleepycat.collections package.</li>
77 <li>A layer of the former collections API has been removed to simplify the API and
78 to remove the redundant implementation of secondary indices. The former
79 DataStore, DataIndex, and ForeignKeyIndex classes have been removed. Instead
80 of wrapping a Database in a DataStore or DataIndex, the Database object is now
81 passed directly to the constructor of a StoredMap, StoredList, etc.</li>
82 </ol>
83 </div>
84 </div>
85 <div class="navfooter">
86 <hr />
87 <table width="100%" summary="Navigation footer">
88 <tr>
89 <td width="40%" align="left"><a accesskey="p" href="upgrade_4_3_toc.html">Prev</a> </td>
90 <td width="20%" align="center">
91 <a accesskey="u" href="upgrade_4_3_toc.html">Up</a>
92 </td>
93 <td width="40%" align="right"> <a accesskey="n" href="upgrade_4_3_err.html">Next</a></td>
94 </tr>
95 <tr>
96 <td width="40%" align="left" valign="top">Chapter 7. Upgrading Berkeley DB 4.2 applications to Berkeley DB 4.3 </td>
97 <td width="20%" align="center">
98 <a accesskey="h" href="index.html">Home</a>
99 </td>
100 <td width="40%" align="right" valign="top"> DB_ENV-&gt;set_errcall, DB-&gt;set_errcall</td>
101 </tr>
102 </table>
103 </div>
104 </body>
105 </html>