txn_class.html   [plain text]


<!--$Id: txn_class.html,v 1.1 2003/02/15 04:55:55 zarzycki Exp $-->
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
<!--All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<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,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
</head>
<body bgcolor=white>
<a name="2"><!--meow--></a>
<table width="100%"><tr valign=top>
<td>
<h1>DbTxn</h1>
</td>
<td align=right>
<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>
</td></tr></table>
<hr size=1 noshade>
<tt>
<h3><pre>
import com.sleepycat.db.*;
<p>
public class DbTxn extends Object { ... }
</pre></h3>
<h1>Description</h1>
<p>The DbTxn object is the handle for a transaction.  Methods off
the DbTxn handle are used to configure, abort and commit the
transaction.  DbTxn handles are provided to <a href="../api_java/db_class.html">Db</a> methods
in order to transactionally protect those database operations.
<p>DbTxn handles are not free-threaded; transactions handles may
be used by multiple threads, but only serially, that is, the application
must serialize access to the DbTxn handle.  Once the
<a href="../api_java/txn_abort.html">DbTxn.abort</a> or <a href="../api_java/txn_commit.html">DbTxn.commit</a> methods are called, the handle may
not be accessed again, regardless of the method's return. In addition,
parent transactions may not issue any Berkeley DB operations while they have
active child transactions (child transactions that have not yet been
committed or aborted) except for <a href="../api_java/txn_begin.html">DbEnv.txn_begin</a>, <a href="../api_java/txn_abort.html">DbTxn.abort</a>
and <a href="../api_java/txn_commit.html">DbTxn.commit</a>.
<h1>Class</h1>
<a href="../api_java/env_class.html">DbEnv</a>, DbTxn
<h1>See Also</h1>
<a href="../api_java/txn_list.html">Transaction Subsystem and Related Methods</a>
</tt>
<table width="100%"><tr><td><br></td><td align=right>
<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>
</td></tr></table>
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
</body>
</html>