• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/db-4.7.25.NC/docs/ref/upgrade.3.0/
1<!--$Id: cxx.so,v 11.5 2000/03/18 21:43:20 bostic Exp $-->
2<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
3<!--See the file LICENSE for redistribution information.-->
4<html>
5<head>
6<title>Berkeley DB Reference Guide: Release 3.0: additional C++ changes</title>
7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
9</head>
10<body bgcolor=white>
11<table width="100%"><tr valign=top>
12<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></b></td>
13<td align=right><a href="../upgrade.3.0/db_cxx.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.3.0/java.html"><img src="../../images/next.gif" alt="Next"></a>
14</td></tr></table>
15<p align=center><b>Release 3.0: additional C++ changes</b></p>
16<p>The Db::set_error_model method is gone.  The way to change the C++ API to
17return errors rather than throw exceptions is via a flag on the DbEnv or
18Db constructor.  For example:</p>
19<blockquote><pre>int dberr;
20DbEnv *dbenv = new DbEnv(DB_CXX_NO_EXCEPTIONS);</pre></blockquote>
21<p>creates an environment that will never throw exceptions, and method
22returns should be checked instead.</p>
23<p>There are a number of smaller changes to the API that bring the C, C++
24and Java APIs much closer in terms of functionality and usage.  Please
25refer to the pages for upgrading C applications for further details.</p>
26<table width="100%"><tr><td><br></td><td align=right><a href="../upgrade.3.0/db_cxx.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.3.0/java.html"><img src="../../images/next.gif" alt="Next"></a>
27</td></tr></table>
28<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
29</body>
30</html>
31