~ubuntu-branches/ubuntu/natty/evolution-data-server/natty

« back to all changes in this revision

Viewing changes to libdb/docs/api_java/env_class.html

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!--$Id$-->
2
 
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
 
<!--All rights reserved.-->
4
 
<!--See the file LICENSE for redistribution information.-->
5
 
<html>
6
 
<head>
7
 
<title>Berkeley DB: DbEnv</title>
8
 
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
 
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
10
 
</head>
11
 
<body bgcolor=white>
12
 
<a name="2"><!--meow--></a>
13
 
<table width="100%"><tr valign=top>
14
 
<td>
15
 
<h1>DbEnv</h1>
16
 
</td>
17
 
<td align=right>
18
 
<a href="../api_java/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
19
 
</td></tr></table>
20
 
<hr size=1 noshade>
21
 
<tt>
22
 
<h3><pre>
23
 
import com.sleepycat.db.*;
24
 
<p>
25
 
public class DbEnv extends Object
26
 
{
27
 
        public DbEnv(int flags) throws DbException;
28
 
        ...
29
 
}
30
 
</pre></h3>
31
 
<h1>Description</h1>
32
 
<p>The DbEnv object is the handle for a Berkeley DB environment -- a
33
 
collection including support for some or all of caching, locking,
34
 
logging and transaction subsystems, as well as databases and log files.
35
 
Methods off the DbEnv handle are used to configure the
36
 
environment as well as to operate on subsystems and databases in the
37
 
environment.
38
 
<p>DbEnv handles are free-threaded if the <a href="../api_java/env_open.html#DB_THREAD">Db.DB_THREAD</a> flag
39
 
is specified to the <a href="../api_java/env_open.html">DbEnv.open</a> method when the environment is opened.
40
 
The DbEnv handle should not be closed while any other handle
41
 
remains open that is using it as a reference (for example, <a href="../api_java/db_class.html">Db</a>
42
 
or <a href="../api_java/txn_class.html">DbTxn</a>).  Once either the <a href="../api_java/env_close.html">DbEnv.close</a> or
43
 
<a href="../api_java/env_remove.html">DbEnv.remove</a> methods are called, the handle may not be accessed again,
44
 
regardless of the method's return.
45
 
<p>The constructor creates the DbEnv object.  The constructor
46
 
allocates memory internally; calling the <a href="../api_java/env_close.html">DbEnv.close</a> or
47
 
<a href="../api_java/env_remove.html">DbEnv.remove</a> methods will free that memory.
48
 
<p>The following <b>flags</b> value may be specified:
49
 
<p><dl compact>
50
 
<p><dt><a name="Db.DB_CLIENT">Db.DB_CLIENT</a><dd>Create a client environment to connect to a server.
51
 
<p>The Db.DB_CLIENT flag indicates to the system that this environment
52
 
is remote on a server.  The use of this flag causes the environment
53
 
methods to use functions that call a server instead of local functions.
54
 
Prior to making any environment or database method calls, the
55
 
application must call the <a href="../api_java/env_set_rpc_server.html">DbEnv.set_rpc_server</a> method to
56
 
establish the connection to the server.
57
 
</dl>
58
 
<h1>Class</h1>
59
 
DbEnv
60
 
<h1>See Also</h1>
61
 
<a href="../api_java/env_list.html">Database Environments and Related Methods</a>
62
 
</tt>
63
 
<table width="100%"><tr><td><br></td><td align=right>
64
 
<a href="../api_java/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
65
 
</td></tr></table>
66
 
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
67
 
</body>
68
 
</html>