• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/db-4.7.25.NC/docs/java/com/sleepycat/db/
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.5.0) on Thu May 15 17:17:32 EDT 2008 -->
6<TITLE>
7TransactionConfig (Oracle - Berkeley DB Java API)
8</TITLE>
9
10<META NAME="keywords" CONTENT="com.sleepycat.db.TransactionConfig class">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17    parent.document.title="TransactionConfig (Oracle - Berkeley DB Java API)";
18}
19</SCRIPT>
20<NOSCRIPT>
21</NOSCRIPT>
22
23</HEAD>
24
25<BODY BGCOLOR="white" onload="windowTitle();">
26
27
28<!-- ========= START OF TOP NAVBAR ======= -->
29<A NAME="navbar_top"><!-- --></A>
30<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
32<TR>
33<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34<A NAME="navbar_top_firstrow"><!-- --></A>
35<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36  <TR ALIGN="center" VALIGN="top">
37  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
38  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
39  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
40  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/TransactionConfig.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
45  </TR>
46</TABLE>
47</TD>
48<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
49<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM>
50</TD>
51</TR>
52
53<TR>
54<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55&nbsp;<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
56&nbsp;<A HREF="../../../com/sleepycat/db/TransactionStats.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58  <A HREF="../../../index.html?com/sleepycat/db/TransactionConfig.html" target="_top"><B>FRAMES</B></A>  &nbsp;
59&nbsp;<A HREF="TransactionConfig.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
60&nbsp;<SCRIPT type="text/javascript">
61  <!--
62  if(window==top) {
63    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
64  }
65  //-->
66</SCRIPT>
67<NOSCRIPT>
68  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
69</NOSCRIPT>
70
71
72</FONT></TD>
73</TR>
74<TR>
75<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
76  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
79</TR>
80</TABLE>
81<A NAME="skip-navbar_top"></A>
82<!-- ========= END OF TOP NAVBAR ========= -->
83
84<HR>
85<!-- ======== START OF CLASS DATA ======== -->
86<H2>
87<FONT SIZE="-1">
88com.sleepycat.db</FONT>
89<BR>
90Class TransactionConfig</H2>
91<PRE>
92<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
93  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.db.TransactionConfig</B>
94</PRE>
95<DL>
96<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Cloneable.html" title="class or interface in java.lang">Cloneable</A></DD>
97</DL>
98<HR>
99<DL>
100<DT><PRE>public class <B>TransactionConfig</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A><DT>implements <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Cloneable.html" title="class or interface in java.lang">Cloneable</A></DL>
101</PRE>
102
103<P>
104Specifies the attributes of a database environment transaction.
105<P>
106
107<P>
108<HR>
109
110<P>
111<!-- =========== FIELD SUMMARY =========== -->
112
113<A NAME="field_summary"><!-- --></A>
114<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
115<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
116<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
117<B>Field Summary</B></FONT></TH>
118</TR>
119<TR BGCOLOR="white" CLASS="TableRowColor">
120<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
121<CODE>static&nbsp;<A HREF="../../../com/sleepycat/db/TransactionConfig.html" title="class in com.sleepycat.db">TransactionConfig</A></CODE></FONT></TD>
122<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#DEFAULT">DEFAULT</A></B></CODE>
123
124<BR>
125&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default configuration used if null is passed to methods that create a
126    transaction.</TD>
127</TR>
128</TABLE>
129&nbsp;
130<!-- ======== CONSTRUCTOR SUMMARY ======== -->
131
132<A NAME="constructor_summary"><!-- --></A>
133<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
134<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
135<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
136<B>Constructor Summary</B></FONT></TH>
137</TR>
138<TR BGCOLOR="white" CLASS="TableRowColor">
139<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#TransactionConfig()">TransactionConfig</A></B>()</CODE>
140
141<BR>
142&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An instance created using the default constructor is initialized
143    with the system's default settings.</TD>
144</TR>
145</TABLE>
146&nbsp;
147<!-- ========== METHOD SUMMARY =========== -->
148
149<A NAME="method_summary"><!-- --></A>
150<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
151<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
152<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
153<B>Method Summary</B></FONT></TH>
154</TR>
155<TR BGCOLOR="white" CLASS="TableRowColor">
156<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157<CODE>&nbsp;boolean</CODE></FONT></TD>
158<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getDegree2()">getDegree2</A></B>()</CODE>
159
160<BR>
161&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>This has been replaced by <A HREF="../../../com/sleepycat/db/TransactionConfig.html#getReadCommitted()"><CODE>getReadCommitted()</CODE></A> to conform to ANSI
162    database isolation terminology.</I></TD>
163</TR>
164<TR BGCOLOR="white" CLASS="TableRowColor">
165<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
166<CODE>&nbsp;boolean</CODE></FONT></TD>
167<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getDirtyRead()">getDirtyRead</A></B>()</CODE>
168
169<BR>
170&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>This has been replaced by <A HREF="../../../com/sleepycat/db/TransactionConfig.html#getReadUncommitted()"><CODE>getReadUncommitted()</CODE></A> to conform to ANSI
171    database isolation terminology.</I></TD>
172</TR>
173<TR BGCOLOR="white" CLASS="TableRowColor">
174<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175<CODE>&nbsp;boolean</CODE></FONT></TD>
176<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getNoSync()">getNoSync</A></B>()</CODE>
177
178<BR>
179&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return if the transaction is configured to not write or synchronously
180    flush the log it when commits.</TD>
181</TR>
182<TR BGCOLOR="white" CLASS="TableRowColor">
183<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
184<CODE>&nbsp;boolean</CODE></FONT></TD>
185<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getNoWait()">getNoWait</A></B>()</CODE>
186
187<BR>
188&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return if the transaction is configured to not wait if a lock
189    request cannot be immediately granted.</TD>
190</TR>
191<TR BGCOLOR="white" CLASS="TableRowColor">
192<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
193<CODE>&nbsp;boolean</CODE></FONT></TD>
194<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getReadCommitted()">getReadCommitted</A></B>()</CODE>
195
196<BR>
197&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return if the transaction is configured for read committed isolation.</TD>
198</TR>
199<TR BGCOLOR="white" CLASS="TableRowColor">
200<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201<CODE>&nbsp;boolean</CODE></FONT></TD>
202<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getReadUncommitted()">getReadUncommitted</A></B>()</CODE>
203
204<BR>
205&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return if read operations performed by the transaction are configured to
206    return modified but not yet committed data.</TD>
207</TR>
208<TR BGCOLOR="white" CLASS="TableRowColor">
209<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210<CODE>&nbsp;boolean</CODE></FONT></TD>
211<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getSnapshot()">getSnapshot</A></B>()</CODE>
212
213<BR>
214&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the transaction is configured for Snapshot Isolation.</TD>
215</TR>
216<TR BGCOLOR="white" CLASS="TableRowColor">
217<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
218<CODE>&nbsp;boolean</CODE></FONT></TD>
219<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getSync()">getSync</A></B>()</CODE>
220
221<BR>
222&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return if the transaction is configured to write and synchronously
223    flush the log it when commits.</TD>
224</TR>
225<TR BGCOLOR="white" CLASS="TableRowColor">
226<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
227<CODE>&nbsp;boolean</CODE></FONT></TD>
228<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getWait()">getWait</A></B>()</CODE>
229
230<BR>
231&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return if the transaction is configured to wait if a lock
232    request cannot be immediately granted.</TD>
233</TR>
234<TR BGCOLOR="white" CLASS="TableRowColor">
235<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
236<CODE>&nbsp;boolean</CODE></FONT></TD>
237<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getWriteNoSync()">getWriteNoSync</A></B>()</CODE>
238
239<BR>
240&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return if the transaction is configured to write but not synchronously
241    flush the log it when commits.</TD>
242</TR>
243<TR BGCOLOR="white" CLASS="TableRowColor">
244<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
245<CODE>&nbsp;void</CODE></FONT></TD>
246<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setDegree2(boolean)">setDegree2</A></B>(boolean&nbsp;degree2)</CODE>
247
248<BR>
249&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>This has been replaced by <A HREF="../../../com/sleepycat/db/TransactionConfig.html#setReadCommitted(boolean)"><CODE>setReadCommitted(boolean)</CODE></A> to conform to ANSI
250    database isolation terminology.</I></TD>
251</TR>
252<TR BGCOLOR="white" CLASS="TableRowColor">
253<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
254<CODE>&nbsp;void</CODE></FONT></TD>
255<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setDirtyRead(boolean)">setDirtyRead</A></B>(boolean&nbsp;dirtyRead)</CODE>
256
257<BR>
258&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>This has been replaced by <A HREF="../../../com/sleepycat/db/TransactionConfig.html#setReadUncommitted(boolean)"><CODE>setReadUncommitted(boolean)</CODE></A> to conform to ANSI
259    database isolation terminology.</I></TD>
260</TR>
261<TR BGCOLOR="white" CLASS="TableRowColor">
262<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
263<CODE>&nbsp;void</CODE></FONT></TD>
264<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setNoSync(boolean)">setNoSync</A></B>(boolean&nbsp;noSync)</CODE>
265
266<BR>
267&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the transaction to not write or synchronously flush the log
268    it when commits.</TD>
269</TR>
270<TR BGCOLOR="white" CLASS="TableRowColor">
271<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272<CODE>&nbsp;void</CODE></FONT></TD>
273<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setNoWait(boolean)">setNoWait</A></B>(boolean&nbsp;noWait)</CODE>
274
275<BR>
276&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the transaction to not wait if a lock request cannot be
277    immediately granted.</TD>
278</TR>
279<TR BGCOLOR="white" CLASS="TableRowColor">
280<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
281<CODE>&nbsp;void</CODE></FONT></TD>
282<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setReadCommitted(boolean)">setReadCommitted</A></B>(boolean&nbsp;readCommitted)</CODE>
283
284<BR>
285&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the transaction for read committed isolation.</TD>
286</TR>
287<TR BGCOLOR="white" CLASS="TableRowColor">
288<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
289<CODE>&nbsp;void</CODE></FONT></TD>
290<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setReadUncommitted(boolean)">setReadUncommitted</A></B>(boolean&nbsp;readUncommitted)</CODE>
291
292<BR>
293&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure read operations performed by the transaction to return modified
294    but not yet committed data.</TD>
295</TR>
296<TR BGCOLOR="white" CLASS="TableRowColor">
297<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
298<CODE>&nbsp;void</CODE></FONT></TD>
299<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setSnapshot(boolean)">setSnapshot</A></B>(boolean&nbsp;snapshot)</CODE>
300
301<BR>
302&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This transaction will execute with snapshot isolation.</TD>
303</TR>
304<TR BGCOLOR="white" CLASS="TableRowColor">
305<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
306<CODE>&nbsp;void</CODE></FONT></TD>
307<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setSync(boolean)">setSync</A></B>(boolean&nbsp;sync)</CODE>
308
309<BR>
310&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the transaction to write and synchronously flush the log
311    it when commits.</TD>
312</TR>
313<TR BGCOLOR="white" CLASS="TableRowColor">
314<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
315<CODE>&nbsp;void</CODE></FONT></TD>
316<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setWait(boolean)">setWait</A></B>(boolean&nbsp;wait)</CODE>
317
318<BR>
319&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the transaction to wait if a lock request cannot be
320    immediately granted.</TD>
321</TR>
322<TR BGCOLOR="white" CLASS="TableRowColor">
323<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
324<CODE>&nbsp;void</CODE></FONT></TD>
325<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setWriteNoSync(boolean)">setWriteNoSync</A></B>(boolean&nbsp;writeNoSync)</CODE>
326
327<BR>
328&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the transaction to write but not synchronously flush the log
329    it when commits.</TD>
330</TR>
331</TABLE>
332&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
333<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
334<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
335<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
336</TR>
337<TR BGCOLOR="white" CLASS="TableRowColor">
338<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
339</TR>
340</TABLE>
341&nbsp;
342<P>
343
344<!-- ============ FIELD DETAIL =========== -->
345
346<A NAME="field_detail"><!-- --></A>
347<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
348<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
349<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
350<B>Field Detail</B></FONT></TH>
351</TR>
352</TABLE>
353
354<A NAME="DEFAULT"><!-- --></A><H3>
355DEFAULT</H3>
356<PRE>
357public static final <A HREF="../../../com/sleepycat/db/TransactionConfig.html" title="class in com.sleepycat.db">TransactionConfig</A> <B>DEFAULT</B></PRE>
358<DL>
359<DD>Default configuration used if null is passed to methods that create a
360    transaction.
361<P>
362<DL>
363</DL>
364</DL>
365
366<!-- ========= CONSTRUCTOR DETAIL ======== -->
367
368<A NAME="constructor_detail"><!-- --></A>
369<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
370<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
371<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
372<B>Constructor Detail</B></FONT></TH>
373</TR>
374</TABLE>
375
376<A NAME="TransactionConfig()"><!-- --></A><H3>
377TransactionConfig</H3>
378<PRE>
379public <B>TransactionConfig</B>()</PRE>
380<DL>
381<DD>An instance created using the default constructor is initialized
382    with the system's default settings.
383<P>
384</DL>
385
386<!-- ============ METHOD DETAIL ========== -->
387
388<A NAME="method_detail"><!-- --></A>
389<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
390<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
391<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
392<B>Method Detail</B></FONT></TH>
393</TR>
394</TABLE>
395
396<A NAME="setReadCommitted(boolean)"><!-- --></A><H3>
397setReadCommitted</H3>
398<PRE>
399public void <B>setReadCommitted</B>(boolean&nbsp;readCommitted)</PRE>
400<DL>
401<DD>Configure the transaction for read committed isolation.
402    <p>
403    This ensures the stability of the current data item read by the
404    cursor but permits data read by this transaction to be modified or
405    deleted prior to the commit of the transaction.
406    <p>
407<P>
408<DD><DL>
409</DL>
410</DD>
411<DD><DL>
412<DT><B>Parameters:</B><DD><CODE>readCommitted</CODE> - If true, configure the transaction for read committed isolation.</DL>
413</DD>
414</DL>
415<HR>
416
417<A NAME="getReadCommitted()"><!-- --></A><H3>
418getReadCommitted</H3>
419<PRE>
420public boolean <B>getReadCommitted</B>()</PRE>
421<DL>
422<DD>Return if the transaction is configured for read committed isolation.
423    <p>
424<P>
425<DD><DL>
426</DL>
427</DD>
428<DD><DL>
429
430<DT><B>Returns:</B><DD>If the transaction is configured for read committed isolation.</DL>
431</DD>
432</DL>
433<HR>
434
435<A NAME="setDegree2(boolean)"><!-- --></A><H3>
436setDegree2</H3>
437<PRE>
438public void <B>setDegree2</B>(boolean&nbsp;degree2)</PRE>
439<DL>
440<DD><B>Deprecated.</B>&nbsp;<I>This has been replaced by <A HREF="../../../com/sleepycat/db/TransactionConfig.html#setReadCommitted(boolean)"><CODE>setReadCommitted(boolean)</CODE></A> to conform to ANSI
441    database isolation terminology.</I>
442<P>
443<DD>Configure the transaction for read committed isolation.
444    <p>
445    This ensures the stability of the current data item read by the
446    cursor but permits data read by this transaction to be modified or
447    deleted prior to the commit of the transaction.
448    <p>
449<P>
450<DD><DL>
451</DL>
452</DD>
453<DD><DL>
454<DT><B>Parameters:</B><DD><CODE>degree2</CODE> - If true, configure the transaction for read committed isolation.
455        <p></DL>
456</DD>
457</DL>
458<HR>
459
460<A NAME="getDegree2()"><!-- --></A><H3>
461getDegree2</H3>
462<PRE>
463public boolean <B>getDegree2</B>()</PRE>
464<DL>
465<DD><B>Deprecated.</B>&nbsp;<I>This has been replaced by <A HREF="../../../com/sleepycat/db/TransactionConfig.html#getReadCommitted()"><CODE>getReadCommitted()</CODE></A> to conform to ANSI
466    database isolation terminology.</I>
467<P>
468<DD>Return if the transaction is configured for read committed isolation.
469    <p>
470<P>
471<DD><DL>
472</DL>
473</DD>
474<DD><DL>
475
476<DT><B>Returns:</B><DD>If the transaction is configured for read committed isolation.
477        <p></DL>
478</DD>
479</DL>
480<HR>
481
482<A NAME="setReadUncommitted(boolean)"><!-- --></A><H3>
483setReadUncommitted</H3>
484<PRE>
485public void <B>setReadUncommitted</B>(boolean&nbsp;readUncommitted)</PRE>
486<DL>
487<DD>Configure read operations performed by the transaction to return modified
488    but not yet committed data.
489    <p>
490<P>
491<DD><DL>
492</DL>
493</DD>
494<DD><DL>
495<DT><B>Parameters:</B><DD><CODE>readUncommitted</CODE> - If true, configure read operations performed by the transaction to return
496    modified but not yet committed data.</DL>
497</DD>
498</DL>
499<HR>
500
501<A NAME="getReadUncommitted()"><!-- --></A><H3>
502getReadUncommitted</H3>
503<PRE>
504public boolean <B>getReadUncommitted</B>()</PRE>
505<DL>
506<DD>Return if read operations performed by the transaction are configured to
507    return modified but not yet committed data.
508    <p>
509<P>
510<DD><DL>
511</DL>
512</DD>
513<DD><DL>
514
515<DT><B>Returns:</B><DD>If read operations performed by the transaction are configured to return
516    modified but not yet committed data.</DL>
517</DD>
518</DL>
519<HR>
520
521<A NAME="setDirtyRead(boolean)"><!-- --></A><H3>
522setDirtyRead</H3>
523<PRE>
524public void <B>setDirtyRead</B>(boolean&nbsp;dirtyRead)</PRE>
525<DL>
526<DD><B>Deprecated.</B>&nbsp;<I>This has been replaced by <A HREF="../../../com/sleepycat/db/TransactionConfig.html#setReadUncommitted(boolean)"><CODE>setReadUncommitted(boolean)</CODE></A> to conform to ANSI
527    database isolation terminology.</I>
528<P>
529<DD>Configure read operations performed by the transaction to return modified
530    but not yet committed data.
531    <p>
532<P>
533<DD><DL>
534</DL>
535</DD>
536<DD><DL>
537<DT><B>Parameters:</B><DD><CODE>dirtyRead</CODE> - If true, configure read operations performed by the transaction to return
538    modified but not yet committed data.
539        <p></DL>
540</DD>
541</DL>
542<HR>
543
544<A NAME="getDirtyRead()"><!-- --></A><H3>
545getDirtyRead</H3>
546<PRE>
547public boolean <B>getDirtyRead</B>()</PRE>
548<DL>
549<DD><B>Deprecated.</B>&nbsp;<I>This has been replaced by <A HREF="../../../com/sleepycat/db/TransactionConfig.html#getReadUncommitted()"><CODE>getReadUncommitted()</CODE></A> to conform to ANSI
550    database isolation terminology.</I>
551<P>
552<DD>Return if read operations performed by the transaction are configured to
553    return modified but not yet committed data.
554    <p>
555<P>
556<DD><DL>
557</DL>
558</DD>
559<DD><DL>
560
561<DT><B>Returns:</B><DD>If read operations performed by the transaction are configured to return
562    modified but not yet committed data.
563        <p></DL>
564</DD>
565</DL>
566<HR>
567
568<A NAME="setNoSync(boolean)"><!-- --></A><H3>
569setNoSync</H3>
570<PRE>
571public void <B>setNoSync</B>(boolean&nbsp;noSync)</PRE>
572<DL>
573<DD>Configure the transaction to not write or synchronously flush the log
574    it when commits.
575    <p>
576    This behavior may be set for a database environment using the
577    Environment.setMutableConfig method. Any value specified to this method
578    overrides that setting.
579    <p>
580    The default is false for this class and the database environment.
581    <p>
582<P>
583<DD><DL>
584</DL>
585</DD>
586<DD><DL>
587<DT><B>Parameters:</B><DD><CODE>noSync</CODE> - If true, transactions exhibit the ACI (atomicity, consistency, and
588    isolation) properties, but not D (durability); that is, database
589    integrity will be maintained, but if the application or system
590    fails, it is possible some number of the most recently committed
591    transactions may be undone during recovery. The number of
592    transactions at risk is governed by how many log updates can fit
593    into the log buffer, how often the operating system flushes dirty
594    buffers to disk, and how often the log is checkpointed.</DL>
595</DD>
596</DL>
597<HR>
598
599<A NAME="getNoSync()"><!-- --></A><H3>
600getNoSync</H3>
601<PRE>
602public boolean <B>getNoSync</B>()</PRE>
603<DL>
604<DD>Return if the transaction is configured to not write or synchronously
605    flush the log it when commits.
606    <p>
607<P>
608<DD><DL>
609</DL>
610</DD>
611<DD><DL>
612
613<DT><B>Returns:</B><DD>If the transaction is configured to not write or synchronously flush
614    the log it when commits.</DL>
615</DD>
616</DL>
617<HR>
618
619<A NAME="setNoWait(boolean)"><!-- --></A><H3>
620setNoWait</H3>
621<PRE>
622public void <B>setNoWait</B>(boolean&nbsp;noWait)</PRE>
623<DL>
624<DD>Configure the transaction to not wait if a lock request cannot be
625    immediately granted.
626    <p>
627    The default is false for this class and the database environment.
628    <p>
629<P>
630<DD><DL>
631</DL>
632</DD>
633<DD><DL>
634<DT><B>Parameters:</B><DD><CODE>noWait</CODE> - If true, transactions will not wait if a lock request cannot be
635    immediately granted, instead <A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db"><CODE>DeadlockException</CODE></A> will be thrown.</DL>
636</DD>
637</DL>
638<HR>
639
640<A NAME="getNoWait()"><!-- --></A><H3>
641getNoWait</H3>
642<PRE>
643public boolean <B>getNoWait</B>()</PRE>
644<DL>
645<DD>Return if the transaction is configured to not wait if a lock
646    request cannot be immediately granted.
647    <p>
648<P>
649<DD><DL>
650</DL>
651</DD>
652<DD><DL>
653
654<DT><B>Returns:</B><DD>If the transaction is configured to not wait if a lock request
655    cannot be immediately granted.</DL>
656</DD>
657</DL>
658<HR>
659
660<A NAME="setSnapshot(boolean)"><!-- --></A><H3>
661setSnapshot</H3>
662<PRE>
663public void <B>setSnapshot</B>(boolean&nbsp;snapshot)</PRE>
664<DL>
665<DD>This transaction will execute with snapshot isolation.  For databases
666    configured with <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMultiversion(boolean)"><CODE>DatabaseConfig.setMultiversion(boolean)</CODE></A>, data values
667    will be read as they are when the transaction begins, without taking
668    read locks.
669    <p>
670    Updates operations performed in the transaction will cause a
671    <A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db"><CODE>DeadlockException</CODE></A> to be thrown if data is modified
672    between reading and writing it.
673<P>
674<DD><DL>
675</DL>
676</DD>
677<DD><DL>
678</DL>
679</DD>
680</DL>
681<HR>
682
683<A NAME="getSnapshot()"><!-- --></A><H3>
684getSnapshot</H3>
685<PRE>
686public boolean <B>getSnapshot</B>()</PRE>
687<DL>
688<DD>Return true if the transaction is configured for Snapshot Isolation.
689<p>
690This method may be called at any time during the life of the application.
691<p>
692<P>
693<DD><DL>
694</DL>
695</DD>
696<DD><DL>
697
698<DT><B>Returns:</B><DD>True if the transaction is configured for Snapshot Isolation.</DL>
699</DD>
700</DL>
701<HR>
702
703<A NAME="setSync(boolean)"><!-- --></A><H3>
704setSync</H3>
705<PRE>
706public void <B>setSync</B>(boolean&nbsp;sync)</PRE>
707<DL>
708<DD>Configure the transaction to write and synchronously flush the log
709    it when commits.
710    <p>
711    This behavior may be set for a database environment using the
712    Environment.setMutableConfig method. Any value specified to this
713    method overrides that setting.
714    <p>
715    The default is false for this class and true for the database
716    environment.
717    <p>
718    If true is passed to both setSync and setNoSync, setSync will take
719    precedence.
720    <p>
721<P>
722<DD><DL>
723</DL>
724</DD>
725<DD><DL>
726<DT><B>Parameters:</B><DD><CODE>sync</CODE> - If true, transactions exhibit all the ACID (atomicity, consistency,
727    isolation, and durability) properties.</DL>
728</DD>
729</DL>
730<HR>
731
732<A NAME="getSync()"><!-- --></A><H3>
733getSync</H3>
734<PRE>
735public boolean <B>getSync</B>()</PRE>
736<DL>
737<DD>Return if the transaction is configured to write and synchronously
738    flush the log it when commits.
739    <p>
740<P>
741<DD><DL>
742</DL>
743</DD>
744<DD><DL>
745
746<DT><B>Returns:</B><DD>If the transaction is configured to write and synchronously flush
747    the log it when commits.</DL>
748</DD>
749</DL>
750<HR>
751
752<A NAME="setWait(boolean)"><!-- --></A><H3>
753setWait</H3>
754<PRE>
755public void <B>setWait</B>(boolean&nbsp;wait)</PRE>
756<DL>
757<DD>Configure the transaction to wait if a lock request cannot be
758    immediately granted.
759    <p>
760    The default is true unless <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTxnNoWait(boolean)"><CODE>EnvironmentConfig.setTxnNoWait(boolean)</CODE></A> is called.
761    <p>
762<P>
763<DD><DL>
764</DL>
765</DD>
766<DD><DL>
767<DT><B>Parameters:</B><DD><CODE>wait</CODE> - If true, transactions will wait if a lock request cannot be
768    immediately granted, instead <A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db"><CODE>DeadlockException</CODE></A> will be thrown.</DL>
769</DD>
770</DL>
771<HR>
772
773<A NAME="getWait()"><!-- --></A><H3>
774getWait</H3>
775<PRE>
776public boolean <B>getWait</B>()</PRE>
777<DL>
778<DD>Return if the transaction is configured to wait if a lock
779    request cannot be immediately granted.
780    <p>
781<P>
782<DD><DL>
783</DL>
784</DD>
785<DD><DL>
786
787<DT><B>Returns:</B><DD>If the transaction is configured to wait if a lock request
788    cannot be immediately granted.</DL>
789</DD>
790</DL>
791<HR>
792
793<A NAME="setWriteNoSync(boolean)"><!-- --></A><H3>
794setWriteNoSync</H3>
795<PRE>
796public void <B>setWriteNoSync</B>(boolean&nbsp;writeNoSync)</PRE>
797<DL>
798<DD>Configure the transaction to write but not synchronously flush the log
799    it when commits.
800    <p>
801    This behavior may be set for a database environment using the
802    Environment.setMutableConfig method. Any value specified to this method
803    overrides that setting.
804    <p>
805    The default is false for this class and the database environment.
806    <p>
807<P>
808<DD><DL>
809</DL>
810</DD>
811<DD><DL>
812<DT><B>Parameters:</B><DD><CODE>writeNoSync</CODE> - If true, transactions exhibit the ACI (atomicity, consistency, and
813    isolation) properties, but not D (durability); that is, database
814    integrity will be maintained, but if the operating system
815    fails, it is possible some number of the most recently committed
816    transactions may be undone during recovery. The number of
817    transactions at risk is governed by how often the operating system
818    flushes dirty buffers to disk, and how often the log is
819    checkpointed.</DL>
820</DD>
821</DL>
822<HR>
823
824<A NAME="getWriteNoSync()"><!-- --></A><H3>
825getWriteNoSync</H3>
826<PRE>
827public boolean <B>getWriteNoSync</B>()</PRE>
828<DL>
829<DD>Return if the transaction is configured to write but not synchronously
830    flush the log it when commits.
831    <p>
832<P>
833<DD><DL>
834</DL>
835</DD>
836<DD><DL>
837
838<DT><B>Returns:</B><DD>If the transaction is configured to not write or synchronously flush
839    the log it when commits.</DL>
840</DD>
841</DL>
842<!-- ========= END OF CLASS DATA ========= -->
843<HR>
844
845
846<!-- ======= START OF BOTTOM NAVBAR ====== -->
847<A NAME="navbar_bottom"><!-- --></A>
848<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
849<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
850<TR>
851<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
852<A NAME="navbar_bottom_firstrow"><!-- --></A>
853<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
854  <TR ALIGN="center" VALIGN="top">
855  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
856  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
857  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
858  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/TransactionConfig.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
859  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
860  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
861  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
862  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
863  </TR>
864</TABLE>
865</TD>
866<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
867<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM>
868</TD>
869</TR>
870
871<TR>
872<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
873&nbsp;<A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
874&nbsp;<A HREF="../../../com/sleepycat/db/TransactionStats.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
875<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
876  <A HREF="../../../index.html?com/sleepycat/db/TransactionConfig.html" target="_top"><B>FRAMES</B></A>  &nbsp;
877&nbsp;<A HREF="TransactionConfig.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
878&nbsp;<SCRIPT type="text/javascript">
879  <!--
880  if(window==top) {
881    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
882  }
883  //-->
884</SCRIPT>
885<NOSCRIPT>
886  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
887</NOSCRIPT>
888
889
890</FONT></TD>
891</TR>
892<TR>
893<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
894  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
895<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
896DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
897</TR>
898</TABLE>
899<A NAME="skip-navbar_bottom"></A>
900<!-- ======== END OF BOTTOM NAVBAR ======= -->
901
902<HR>
903<font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
904</BODY>
905</HTML>
906