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