1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.6.0_23) on Fri May 11 14:10:06 EDT 2012 -->
7 TransactionConfig (Oracle - Berkeley DB Java API)
10 <META NAME="date" CONTENT="2012-05-11">
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style">
14 <SCRIPT type="text/javascript">
15 function windowTitle()
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="TransactionConfig (Oracle - Berkeley DB Java API)";
27 <BODY BGCOLOR="white" onload="windowTitle();">
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="">
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>
51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52 <b>Berkeley DB</b><br><font size="-1"> version 5.3.21</font></EM>
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">
66 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
71 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
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">
81 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
84 <A NAME="skip-navbar_top"></A>
85 <!-- ========= END OF TOP NAVBAR ========= -->
88 <!-- ======== START OF CLASS DATA ======== -->
91 com.sleepycat.db</FONT>
93 Class TransactionConfig</H2>
95 <A HREF="http://download.oracle.com/javase/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>
99 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</A></DD>
103 <DT><PRE>public class <B>TransactionConfig</B><DT>extends <A HREF="http://download.oracle.com/javase/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://download.oracle.com/javase/1.5.0/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</A></DL>
107 Specifies the attributes of a database environment transaction.
114 <!-- =========== FIELD SUMMARY =========== -->
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>
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>
128 Default configuration used if null is passed to methods that create a
133 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
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>
141 <TR BGCOLOR="white" CLASS="TableRowColor">
142 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#TransactionConfig()">TransactionConfig</A></B>()</CODE>
145 An instance created using the default constructor is initialized
146 with the system's default settings.</TD>
150 <!-- ========== METHOD SUMMARY =========== -->
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>
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#getBulk()">getBulk</A></B>()</CODE>
164 Return true if the Bulk attribute is set.</TD>
166 <TR BGCOLOR="white" CLASS="TableRowColor">
167 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168 <CODE> boolean</CODE></FONT></TD>
169 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getDegree2()">getDegree2</A></B>()</CODE>
172 <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
173 database isolation terminology.</I></TD>
175 <TR BGCOLOR="white" CLASS="TableRowColor">
176 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
177 <CODE> boolean</CODE></FONT></TD>
178 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getDirtyRead()">getDirtyRead</A></B>()</CODE>
181 <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
182 database isolation terminology.</I></TD>
184 <TR BGCOLOR="white" CLASS="TableRowColor">
185 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186 <CODE> boolean</CODE></FONT></TD>
187 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getNoSync()">getNoSync</A></B>()</CODE>
190 Return if the transaction is configured to not write or synchronously
191 flush the log it when commits.</TD>
193 <TR BGCOLOR="white" CLASS="TableRowColor">
194 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
195 <CODE> boolean</CODE></FONT></TD>
196 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getNoWait()">getNoWait</A></B>()</CODE>
199 Return if the transaction is configured to not wait if a lock
200 request cannot be immediately granted.</TD>
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#getReadCommitted()">getReadCommitted</A></B>()</CODE>
208 Return if the transaction is configured for read committed isolation.</TD>
210 <TR BGCOLOR="white" CLASS="TableRowColor">
211 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
212 <CODE> boolean</CODE></FONT></TD>
213 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getReadUncommitted()">getReadUncommitted</A></B>()</CODE>
216 Return if read operations performed by the transaction are configured to
217 return modified but not yet committed data.</TD>
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#getSnapshot()">getSnapshot</A></B>()</CODE>
225 Return true if the transaction is configured for Snapshot Isolation.</TD>
227 <TR BGCOLOR="white" CLASS="TableRowColor">
228 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
229 <CODE> boolean</CODE></FONT></TD>
230 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getSync()">getSync</A></B>()</CODE>
233 Return if the transaction is configured to write and synchronously
234 flush the log it when commits.</TD>
236 <TR BGCOLOR="white" CLASS="TableRowColor">
237 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
238 <CODE> boolean</CODE></FONT></TD>
239 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getWait()">getWait</A></B>()</CODE>
242 Return if the transaction is configured to wait if a lock
243 request cannot be immediately granted.</TD>
245 <TR BGCOLOR="white" CLASS="TableRowColor">
246 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
247 <CODE> boolean</CODE></FONT></TD>
248 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#getWriteNoSync()">getWriteNoSync</A></B>()</CODE>
251 Return if the transaction is configured to write but not synchronously
252 flush the log it when commits.</TD>
254 <TR BGCOLOR="white" CLASS="TableRowColor">
255 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
256 <CODE> void</CODE></FONT></TD>
257 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setBulk(boolean)">setBulk</A></B>(boolean bulk)</CODE>
260 Configures the transaction to enable the transactional bulk insert
263 <TR BGCOLOR="white" CLASS="TableRowColor">
264 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
265 <CODE> void</CODE></FONT></TD>
266 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setDegree2(boolean)">setDegree2</A></B>(boolean degree2)</CODE>
269 <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
270 database isolation terminology.</I></TD>
272 <TR BGCOLOR="white" CLASS="TableRowColor">
273 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
274 <CODE> void</CODE></FONT></TD>
275 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setDirtyRead(boolean)">setDirtyRead</A></B>(boolean dirtyRead)</CODE>
278 <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
279 database isolation terminology.</I></TD>
281 <TR BGCOLOR="white" CLASS="TableRowColor">
282 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
283 <CODE> void</CODE></FONT></TD>
284 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setNoSync(boolean)">setNoSync</A></B>(boolean noSync)</CODE>
287 Configure the transaction to not write or synchronously flush the log
288 it when commits.</TD>
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#setNoWait(boolean)">setNoWait</A></B>(boolean noWait)</CODE>
296 Configure the transaction to not wait if a lock request cannot be
297 immediately granted.</TD>
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#setReadCommitted(boolean)">setReadCommitted</A></B>(boolean readCommitted)</CODE>
305 Configure the transaction for read committed isolation.</TD>
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#setReadUncommitted(boolean)">setReadUncommitted</A></B>(boolean readUncommitted)</CODE>
313 Configure read operations performed by the transaction to return modified
314 but not yet committed data.</TD>
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#setSnapshot(boolean)">setSnapshot</A></B>(boolean snapshot)</CODE>
322 This transaction will execute with snapshot isolation.</TD>
324 <TR BGCOLOR="white" CLASS="TableRowColor">
325 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
326 <CODE> void</CODE></FONT></TD>
327 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setSync(boolean)">setSync</A></B>(boolean sync)</CODE>
330 Configure the transaction to write and synchronously flush the log
331 it when commits.</TD>
333 <TR BGCOLOR="white" CLASS="TableRowColor">
334 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
335 <CODE> void</CODE></FONT></TD>
336 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setWait(boolean)">setWait</A></B>(boolean wait)</CODE>
339 Configure the transaction to wait if a lock request cannot be
340 immediately granted.</TD>
342 <TR BGCOLOR="white" CLASS="TableRowColor">
343 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
344 <CODE> void</CODE></FONT></TD>
345 <TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionConfig.html#setWriteNoSync(boolean)">setWriteNoSync</A></B>(boolean writeNoSync)</CODE>
348 Configure the transaction to write but not synchronously flush the log
349 it when commits.</TD>
352 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
353 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
354 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
355 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
357 <TR BGCOLOR="white" CLASS="TableRowColor">
358 <TD><CODE><A HREF="http://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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://download.oracle.com/javase/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>
364 <!-- ============ FIELD DETAIL =========== -->
366 <A NAME="field_detail"><!-- --></A>
367 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
368 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
369 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
370 <B>Field Detail</B></FONT></TH>
374 <A NAME="DEFAULT"><!-- --></A><H3>
377 public static final <A HREF="../../../com/sleepycat/db/TransactionConfig.html" title="class in com.sleepycat.db">TransactionConfig</A> <B>DEFAULT</B></PRE>
379 <DD>Default configuration used if null is passed to methods that create a
386 <!-- ========= CONSTRUCTOR DETAIL ======== -->
388 <A NAME="constructor_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>Constructor Detail</B></FONT></TH>
396 <A NAME="TransactionConfig()"><!-- --></A><H3>
397 TransactionConfig</H3>
399 public <B>TransactionConfig</B>()</PRE>
401 <DD>An instance created using the default constructor is initialized
402 with the system's default settings.
406 <!-- ============ METHOD DETAIL ========== -->
408 <A NAME="method_detail"><!-- --></A>
409 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
410 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
411 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
412 <B>Method Detail</B></FONT></TH>
416 <A NAME="setReadCommitted(boolean)"><!-- --></A><H3>
417 setReadCommitted</H3>
419 public void <B>setReadCommitted</B>(boolean readCommitted)</PRE>
421 <DD>Configure the transaction for read committed isolation.
423 This ensures the stability of the current data item read by the
424 cursor but permits data read by this transaction to be modified or
425 deleted prior to the commit of the transaction.
432 <DT><B>Parameters:</B><DD><CODE>readCommitted</CODE> - If true, configure the transaction for read committed isolation.</DL>
437 <A NAME="getReadCommitted()"><!-- --></A><H3>
438 getReadCommitted</H3>
440 public boolean <B>getReadCommitted</B>()</PRE>
442 <DD>Return if the transaction is configured for read committed isolation.
450 <DT><B>Returns:</B><DD>If the transaction is configured for read committed isolation.</DL>
455 <A NAME="setDegree2(boolean)"><!-- --></A><H3>
458 public void <B>setDegree2</B>(boolean degree2)</PRE>
460 <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
461 database isolation terminology.</I>
463 <DD>Configure the transaction for read committed isolation.
465 This ensures the stability of the current data item read by the
466 cursor but permits data read by this transaction to be modified or
467 deleted prior to the commit of the transaction.
474 <DT><B>Parameters:</B><DD><CODE>degree2</CODE> - If true, configure the transaction for read committed isolation.
480 <A NAME="getDegree2()"><!-- --></A><H3>
483 public boolean <B>getDegree2</B>()</PRE>
485 <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
486 database isolation terminology.</I>
488 <DD>Return if the transaction is configured for read committed isolation.
496 <DT><B>Returns:</B><DD>If the transaction is configured for read committed isolation.
502 <A NAME="setReadUncommitted(boolean)"><!-- --></A><H3>
503 setReadUncommitted</H3>
505 public void <B>setReadUncommitted</B>(boolean readUncommitted)</PRE>
507 <DD>Configure read operations performed by the transaction to return modified
508 but not yet committed data.
515 <DT><B>Parameters:</B><DD><CODE>readUncommitted</CODE> - If true, configure read operations performed by the transaction to return
516 modified but not yet committed data.</DL>
521 <A NAME="getReadUncommitted()"><!-- --></A><H3>
522 getReadUncommitted</H3>
524 public boolean <B>getReadUncommitted</B>()</PRE>
526 <DD>Return if read operations performed by the transaction are configured to
527 return modified but not yet committed data.
535 <DT><B>Returns:</B><DD>If read operations performed by the transaction are configured to return
536 modified but not yet committed data.</DL>
541 <A NAME="setDirtyRead(boolean)"><!-- --></A><H3>
544 public void <B>setDirtyRead</B>(boolean dirtyRead)</PRE>
546 <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
547 database isolation terminology.</I>
549 <DD>Configure read operations performed by the transaction to return modified
550 but not yet committed data.
557 <DT><B>Parameters:</B><DD><CODE>dirtyRead</CODE> - If true, configure read operations performed by the transaction to return
558 modified but not yet committed data.
564 <A NAME="getDirtyRead()"><!-- --></A><H3>
567 public boolean <B>getDirtyRead</B>()</PRE>
569 <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
570 database isolation terminology.</I>
572 <DD>Return if read operations performed by the transaction are configured to
573 return modified but not yet committed data.
581 <DT><B>Returns:</B><DD>If read operations performed by the transaction are configured to return
582 modified but not yet committed data.
588 <A NAME="setNoSync(boolean)"><!-- --></A><H3>
591 public void <B>setNoSync</B>(boolean noSync)</PRE>
593 <DD>Configure the transaction to not write or synchronously flush the log
596 This behavior may be set for a database environment using the
597 Environment.setMutableConfig method. Any value specified to this method
598 overrides that setting.
600 The default is false for this class and the database environment.
607 <DT><B>Parameters:</B><DD><CODE>noSync</CODE> - If true, transactions exhibit the ACI (atomicity, consistency, and
608 isolation) properties, but not D (durability); that is, database
609 integrity will be maintained, but if the application or system
610 fails, it is possible some number of the most recently committed
611 transactions may be undone during recovery. The number of
612 transactions at risk is governed by how many log updates can fit
613 into the log buffer, how often the operating system flushes dirty
614 buffers to disk, and how often the log is checkpointed.</DL>
619 <A NAME="getNoSync()"><!-- --></A><H3>
622 public boolean <B>getNoSync</B>()</PRE>
624 <DD>Return if the transaction is configured to not write or synchronously
625 flush the log it when commits.
633 <DT><B>Returns:</B><DD>If the transaction is configured to not write or synchronously flush
634 the log it when commits.</DL>
639 <A NAME="setNoWait(boolean)"><!-- --></A><H3>
642 public void <B>setNoWait</B>(boolean noWait)</PRE>
644 <DD>Configure the transaction to not wait if a lock request cannot be
647 The default is false for this class and the database environment.
654 <DT><B>Parameters:</B><DD><CODE>noWait</CODE> - If true, transactions will not wait if a lock request cannot be
655 immediately granted, instead <A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db"><CODE>DeadlockException</CODE></A> will be thrown.</DL>
660 <A NAME="getNoWait()"><!-- --></A><H3>
663 public boolean <B>getNoWait</B>()</PRE>
665 <DD>Return if the transaction is configured to not wait if a lock
666 request cannot be immediately granted.
674 <DT><B>Returns:</B><DD>If the transaction is configured to not wait if a lock request
675 cannot be immediately granted.</DL>
680 <A NAME="setSnapshot(boolean)"><!-- --></A><H3>
683 public void <B>setSnapshot</B>(boolean snapshot)</PRE>
685 <DD>This transaction will execute with snapshot isolation. For databases
686 configured with <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMultiversion(boolean)"><CODE>DatabaseConfig.setMultiversion(boolean)</CODE></A>, data values
687 will be read as they are when the transaction begins, without taking
690 Updates operations performed in the transaction will cause a
691 <A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db"><CODE>DeadlockException</CODE></A> to be thrown if data is modified
692 between reading and writing it.
703 <A NAME="getSnapshot()"><!-- --></A><H3>
706 public boolean <B>getSnapshot</B>()</PRE>
708 <DD>Return true if the transaction is configured for Snapshot Isolation.
710 This method may be called at any time during the life of the application.
718 <DT><B>Returns:</B><DD>True if the transaction is configured for Snapshot Isolation.</DL>
723 <A NAME="setSync(boolean)"><!-- --></A><H3>
726 public void <B>setSync</B>(boolean sync)</PRE>
728 <DD>Configure the transaction to write and synchronously flush the log
731 This behavior may be set for a database environment using the
732 Environment.setMutableConfig method. Any value specified to this
733 method overrides that setting.
735 The default is false for this class and true for the database
738 If true is passed to both setSync and setNoSync, setSync will take
746 <DT><B>Parameters:</B><DD><CODE>sync</CODE> - If true, transactions exhibit all the ACID (atomicity, consistency,
747 isolation, and durability) properties.</DL>
752 <A NAME="getSync()"><!-- --></A><H3>
755 public boolean <B>getSync</B>()</PRE>
757 <DD>Return if the transaction is configured to write and synchronously
758 flush the log it when commits.
766 <DT><B>Returns:</B><DD>If the transaction is configured to write and synchronously flush
767 the log it when commits.</DL>
772 <A NAME="setWait(boolean)"><!-- --></A><H3>
775 public void <B>setWait</B>(boolean wait)</PRE>
777 <DD>Configure the transaction to wait if a lock request cannot be
780 The default is true unless <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setTxnNoWait(boolean)"><CODE>EnvironmentConfig.setTxnNoWait(boolean)</CODE></A> is called.
787 <DT><B>Parameters:</B><DD><CODE>wait</CODE> - If true, transactions will wait if a lock request cannot be
788 immediately granted, instead <A HREF="../../../com/sleepycat/db/DeadlockException.html" title="class in com.sleepycat.db"><CODE>DeadlockException</CODE></A> will be thrown.</DL>
793 <A NAME="getWait()"><!-- --></A><H3>
796 public boolean <B>getWait</B>()</PRE>
798 <DD>Return if the transaction is configured to wait if a lock
799 request cannot be immediately granted.
807 <DT><B>Returns:</B><DD>If the transaction is configured to wait if a lock request
808 cannot be immediately granted.</DL>
813 <A NAME="setWriteNoSync(boolean)"><!-- --></A><H3>
816 public void <B>setWriteNoSync</B>(boolean writeNoSync)</PRE>
818 <DD>Configure the transaction to write but not synchronously flush the log
821 This behavior may be set for a database environment using the
822 Environment.setMutableConfig method. Any value specified to this method
823 overrides that setting.
825 The default is false for this class and the database environment.
832 <DT><B>Parameters:</B><DD><CODE>writeNoSync</CODE> - If true, transactions exhibit the ACI (atomicity, consistency, and
833 isolation) properties, but not D (durability); that is, database
834 integrity will be maintained, but if the operating system
835 fails, it is possible some number of the most recently committed
836 transactions may be undone during recovery. The number of
837 transactions at risk is governed by how often the operating system
838 flushes dirty buffers to disk, and how often the log is
844 <A NAME="getWriteNoSync()"><!-- --></A><H3>
847 public boolean <B>getWriteNoSync</B>()</PRE>
849 <DD>Return if the transaction is configured to write but not synchronously
850 flush the log it when commits.
858 <DT><B>Returns:</B><DD>If the transaction is configured to not write or synchronously flush
859 the log it when commits.</DL>
864 <A NAME="setBulk(boolean)"><!-- --></A><H3>
867 public void <B>setBulk</B>(boolean bulk)</PRE>
869 <DD>Configures the transaction to enable the transactional bulk insert
870 optimization. When this attribute is set, the transaction will avoid
871 logging the contents of insertions on newly allocated database pages.
872 In a transaction that inserts a large number of new records, the I/O
873 savings of choosing this option can be significant. Users of this
874 option should be aware of several issues. When the optimization is in
875 effect, page allocations that extend the database file are logged as
876 usual; this allows transaction aborts to work correctly, both online
877 and during recovery. At commit time, the database's pages are flushed
878 to disk, eliminating the need to roll-forward the transaction during
879 normal recovery. However, there are other recovery operations that
880 depend on roll-forward, and care must be taken when Bulk-enabled
881 transactions interact with them. In particular, Bulk is
882 incompatible with replication, and is simply ignored when replication
883 is enabled. Also, hot backup procedures must follow a particular
884 protocol, introduced in 11gr2.5.1, to set a flag in the environment
885 before starting to copy files. It is especially important to note
886 that incremental hot backups can be invalidated by use of the bulk
887 insert optimization. Please see the hot backup description in the
888 <i>Getting Started with Transactions Guide</i>, and the description of the
889 HotbackupInProgress attribute in
890 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html" title="class in com.sleepycat.db"><CODE>EnvironmentConfig</CODE></A>
891 for further information.
893 The bulk insert optimization is effective only for
894 top-level transactions.
901 <DT><B>Parameters:</B><DD><CODE>bulk</CODE> - If true, configure the transaction to enable the bulk optimization.</DL>
906 <A NAME="getBulk()"><!-- --></A><H3>
909 public boolean <B>getBulk</B>()</PRE>
911 <DD>Return true if the Bulk attribute is set.
919 <DT><B>Returns:</B><DD>The current setting of the Bulk attribute.</DL>
922 <!-- ========= END OF CLASS DATA ========= -->
926 <!-- ======= START OF BOTTOM NAVBAR ====== -->
927 <A NAME="navbar_bottom"><!-- --></A>
928 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
929 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
931 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
932 <A NAME="navbar_bottom_firstrow"><!-- --></A>
933 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
934 <TR ALIGN="center" VALIGN="top">
935 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
936 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
937 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
938 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TransactionConfig.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
939 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
940 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
941 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
942 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
946 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
947 <b>Berkeley DB</b><br><font size="-1"> version 5.3.21</font></EM>
952 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
953 <A HREF="../../../com/sleepycat/db/Transaction.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>
954 <A HREF="../../../com/sleepycat/db/TransactionStats.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
955 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
956 <A HREF="../../../index.html?com/sleepycat/db/TransactionConfig.html" target="_top"><B>FRAMES</B></A>
957 <A HREF="TransactionConfig.html" target="_top"><B>NO FRAMES</B></A>
958 <SCRIPT type="text/javascript">
961 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
966 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
973 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
974 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
975 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
976 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
979 <A NAME="skip-navbar_bottom"></A>
980 <!-- ======== END OF BOTTOM NAVBAR ======= -->
983 <font size=1>Copyright (c) 1996, 2012 Oracle and/or its affiliates. All rights reserved.</font>