1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
<! "@(#)class.so 10.6 (Sleepycat) 10/2/98">
<!Copyright 1997, 1998 by Sleepycat Software, Inc. All rights reserved.>
<html>
<body bgcolor=white>
<head>
<title>Berkeley DB: DbTxn</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btr
ee,hash,hashing,transaction,transactions,locking,logging,access method,access me
thods,java,C,C++">
</head>
<h1>DbTxn</h1>
<hr size=1 noshade>
<tt>
<h3>
<pre>
#include <db_cxx.h>
<p>
</pre>
</h3>
<h1>Description</h1>
<p>
This manual page describes the specific details of the DbTxn class.
<p>
The DbTxn class is used in conjunction with <a href="../../api_cxx/DbTxnMgr/class.html">DbTxnMgr</a> to
provide transaction semantics.
Full transaction support is provided by a collection of modules that
provide interfaces to the services required for transaction processing.
These services are recovery (see <a href="../../api_cxx/DbLog/class.html">DbLog</a>),
concurrency control (see <a href="../../api_cxx/DbLock/class.html">DbLock</a> and <a href="../../api_cxx/DbLockTab/class.html">DbLockTab</a>) and the
management of shared data (see <a href="../../api_cxx/DbMpool/class.html">DbMpool</a> and <a href="../../api_cxx/DbMpoolFile/class.html">DbMpoolFile</a>).
<p>
Transaction semantics can be applied to the access methods described in
<a href="../../api_cxx/Db/class.html">Db</a> through method call parameters.
<p>
The model intended for transactional use (and the one that is used by
the access methods) is write-ahead logging provided by <a href="../../api_cxx/DbLog/class.html">DbLog</a>
to record both before- and after-images.
Locking follows a two-phase protocol, with all locks being released
at transaction commit.
<p>
See the <a href="../../ref/toc.html#txn">Reference Guide</a> for
more information.
<p>
<h1>Class</h1>
DbTxn
<p>
<h1>See Also</h1>
<a href="../../api_cxx/DbTxn/abort.html">DbTxn::abort</a>,
<a href="../../api_cxx/DbTxn/commit.html">DbTxn::commit</a>,
<a href="../../api_cxx/DbTxn/id.html">DbTxn::id</a>
and
<a href="../../api_cxx/DbTxn/prepare.html">DbTxn::prepare</a>.
</tt>
</body>
</html>
|