Imported Upstream version 5.3.21
[platform/upstream/libdb.git] / docs / gsg_txn / JAVA / abortresults.html
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4   <head>
5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6     <title>Aborting a Transaction</title>
7     <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8     <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9     <link rel="start" href="index.html" title="Getting Started with Berkeley DB Transaction Processing" />
10     <link rel="up" href="usingtxns.html" title="Chapter 3. Transaction Basics" />
11     <link rel="prev" href="nodurabletxn.html" title="Non-Durable Transactions" />
12     <link rel="next" href="autocommit.html" title="Auto Commit" />
13   </head>
14   <body>
15     <div xmlns="" class="navheader">
16       <div class="libver">
17         <p>Library Version 11.2.5.3</p>
18       </div>
19       <table width="100%" summary="Navigation header">
20         <tr>
21           <th colspan="3" align="center">Aborting a Transaction</th>
22         </tr>
23         <tr>
24           <td width="20%" align="left"><a accesskey="p" href="nodurabletxn.html">Prev</a> </td>
25           <th width="60%" align="center">Chapter 3. Transaction Basics</th>
26           <td width="20%" align="right"> <a accesskey="n" href="autocommit.html">Next</a></td>
27         </tr>
28       </table>
29       <hr />
30     </div>
31     <div class="sect1" lang="en" xml:lang="en">
32       <div class="titlepage">
33         <div>
34           <div>
35             <h2 class="title" style="clear: both"><a id="abortresults"></a>Aborting a Transaction</h2>
36           </div>
37         </div>
38       </div>
39       <p>
40                 When you abort a transaction, all database 
41                 <span>
42                         or store
43                 </span>
44                 modifications performed
45             under the protection of the transaction are discarded, and all
46             locks currently held by the transaction are released. In this event,
47             your data is simply left in the
48             state that it was in before the transaction began performing data
49             modifications.
50         </p>
51       <p>
52                 Once you have aborted a transaction, the transaction
53                 handle that you used for the transaction is no longer valid. To
54                 perform database activities under the control of a new
55                 transaction, you must obtain a fresh transactional handle.
56               </p>
57       <p>
58             To abort a transaction, call
59             
60             
61             <span><code class="methodname">Transaction.abort()</code>.</span>
62             
63             
64         </p>
65     </div>
66     <div class="navfooter">
67       <hr />
68       <table width="100%" summary="Navigation footer">
69         <tr>
70           <td width="40%" align="left"><a accesskey="p" href="nodurabletxn.html">Prev</a> </td>
71           <td width="20%" align="center">
72             <a accesskey="u" href="usingtxns.html">Up</a>
73           </td>
74           <td width="40%" align="right"> <a accesskey="n" href="autocommit.html">Next</a></td>
75         </tr>
76         <tr>
77           <td width="40%" align="left" valign="top">Non-Durable Transactions </td>
78           <td width="20%" align="center">
79             <a accesskey="h" href="index.html">Home</a>
80           </td>
81           <td width="40%" align="right" valign="top"> Auto Commit</td>
82         </tr>
83       </table>
84     </div>
85   </body>
86 </html>