1<!--$Id: txn_id.so,v 10.21 2004/08/13 03:39:03 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: DbTxn::id</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>
13<b>DbTxn::id</b>
14</td>
15<td align=right>
16<a href="/api_cxx/api_core.html"><img src="/images/api.gif" alt="API"></a>
17<a href="/ref/toc.html"><img src="/images/ref.gif" alt="Ref"></a></td>
18</tr></table>
19<hr size=1 noshade>
20<tt>
21<b><pre>
22#include &lt;db_cxx.h&gt;
23<p>
24u_int32_t
25DbTxn::id();
26</pre></b>
27<hr size=1 noshade>
28<b>Description: DbTxn::id</b>
29<p>The DbTxn::id method returns the unique transaction id associated with the
30specified transaction.  Locking calls made on behalf of this transaction
31should use the value returned from DbTxn::id as the locker parameter
32to the <a href="/api_cxx/lock_get.html">DbEnv::lock_get</a> or <a href="/api_cxx/lock_vec.html">DbEnv::lock_vec</a> calls.</p>
33<hr size=1 noshade>
34<br><b>Class</b>
35<a href="/api_cxx/env_class.html">DbEnv</a>, <a href="/api_cxx/txn_class.html">DbTxn</a>
36<br><b>See Also</b>
37<a href="/api_cxx/txn_list.html">Transaction Subsystem and Related Methods</a>
38</tt>
39<table width="100%"><tr><td><br></td><td align=right>
40<a href="/api_cxx/api_core.html"><img src="/images/api.gif" alt="API"></a><a href="/ref/toc.html"><img src="/images/ref.gif" alt="Ref"></a>
41</td></tr></table>
42<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
43</body>
44</html>
45