1
<!--$Id: txn_class.so,v 10.15 2001/04/18 13:44:48 bostic Exp $-->
2
<!--Copyright 1997-2001 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
6
<title>Berkeley DB: DbTxn</title>
7
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
8
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
11
<a name="2"><!--meow--></a>
12
<table width="100%"><tr valign=top>
17
<a href="../api_java/java_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
22
import com.sleepycat.db.*;
24
public class DbTxn extends Object { ... }
27
<p>This manual page describes the specific details of the DbTxn class.
28
<p>The <a href="../api_java/dbenv_class.html">DbEnv</a> transaction methods and the DbTxn class provide
29
transaction semantics. Full transaction support is provided by a
30
collection of modules that provide interfaces to the services required
31
for transaction processing. These services are recovery, concurrency
32
control, and the management of shared data.
33
<p>Transaction semantics can be applied to the access methods described in
34
Db through method call parameters.
35
<p>The model intended for transactional use (and the one that is used by
36
the access methods) is write-ahead logging to record both before- and
37
after-images. Locking follows a two-phase protocol with all locks being
38
released at transaction commit.
40
<a href="../api_java/dbenv_class.html">DbEnv</a>, <a href="../api_java/txn_class.html">DbTxn</a>
42
<a href="../api_java/env_set_tx_max.html">DbEnv.set_tx_max</a>,
43
<a href="../api_java/env_set_tx_timestamp.html">DbEnv.set_tx_timestamp</a>,
44
<a href="../api_java/txn_abort.html">DbTxn.abort</a>,
45
<a href="../api_java/txn_begin.html">DbEnv.txn_begin</a>,
46
<a href="../api_java/txn_checkpoint.html">DbEnv.txn_checkpoint</a>,
47
<a href="../api_java/txn_commit.html">DbTxn.commit</a>,
48
<a href="../api_java/txn_discard.html">DbTxn.discard</a>,
49
<a href="../api_java/txn_id.html">DbTxn.id</a>,
50
<a href="../api_java/txn_prepare.html">DbTxn.prepare</a>,
51
<a href="../api_java/txn_recover.html">DbEnv.txn_recover</a>,
53
<a href="../api_java/txn_stat.html">DbEnv.txn_stat</a>.
55
<table width="100%"><tr><td><br></td><td align=right>
56
<a href="../api_java/java_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
58
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>