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> 7SequenceConfig (Oracle - Berkeley DB Java API) 8</TITLE> 9 10<META NAME="keywords" CONTENT="com.sleepycat.db.SequenceConfig 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="SequenceConfig (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> </TD> 38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SequenceConfig.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 <A HREF="../../../com/sleepycat/db/Sequence.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> 56 <A HREF="../../../com/sleepycat/db/SequenceStats.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/SequenceConfig.html" target="_top"><B>FRAMES</B></A> 59 <A HREF="SequenceConfig.html" target="_top"><B>NO FRAMES</B></A> 60 <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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 78DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 SequenceConfig</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.SequenceConfig</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>SequenceConfig</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> 104Specify the attributes of a sequence. 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 <A HREF="../../../com/sleepycat/db/SequenceConfig.html" title="class in com.sleepycat.db">SequenceConfig</A></CODE></FONT></TD> 122<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#DEFAULT">DEFAULT</A></B></CODE> 123 124<BR> 125 Default configuration used if null is passed to methods that create a 126 cursor.</TD> 127</TR> 128</TABLE> 129 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/SequenceConfig.html#SequenceConfig()">SequenceConfig</A></B>()</CODE> 140 141<BR> 142 An instance created using the default constructor is initialized with 143 the system's default settings.</TD> 144</TR> 145</TABLE> 146 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> boolean</CODE></FONT></TD> 158<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#getAllowCreate()">getAllowCreate</A></B>()</CODE> 159 160<BR> 161 Return true if the <A HREF="../../../com/sleepycat/db/Database.html#openSequence(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.SequenceConfig)"><CODE>Database.openSequence</CODE></A> method is configured 162 to create the sequence if it does not already exist.</TD> 163</TR> 164<TR BGCOLOR="white" CLASS="TableRowColor"> 165<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 166<CODE> boolean</CODE></FONT></TD> 167<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#getAutoCommitNoSync()">getAutoCommitNoSync</A></B>()</CODE> 168 169<BR> 170 Return true if the auto-commit operations on the sequence are configure to not 171 flush the transaction log..</TD> 172</TR> 173<TR BGCOLOR="white" CLASS="TableRowColor"> 174<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 175<CODE> int</CODE></FONT></TD> 176<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#getCacheSize()">getCacheSize</A></B>()</CODE> 177 178<BR> 179 Return the number of elements cached by a sequence handle..</TD> 180</TR> 181<TR BGCOLOR="white" CLASS="TableRowColor"> 182<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 183<CODE> boolean</CODE></FONT></TD> 184<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#getDecrement()">getDecrement</A></B>()</CODE> 185 186<BR> 187 Return true if the sequence is configured to decrement.</TD> 188</TR> 189<TR BGCOLOR="white" CLASS="TableRowColor"> 190<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 191<CODE> boolean</CODE></FONT></TD> 192<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#getExclusiveCreate()">getExclusiveCreate</A></B>()</CODE> 193 194<BR> 195 Return true if the <A HREF="../../../com/sleepycat/db/Database.html#openSequence(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.SequenceConfig)"><CODE>Database.openSequence</CODE></A> method is configured to 196 fail if the database already exists.</TD> 197</TR> 198<TR BGCOLOR="white" CLASS="TableRowColor"> 199<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 200<CODE> long</CODE></FONT></TD> 201<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#getInitialValue()">getInitialValue</A></B>()</CODE> 202 203<BR> 204 Return the initial value for a sequence..</TD> 205</TR> 206<TR BGCOLOR="white" CLASS="TableRowColor"> 207<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 208<CODE> long</CODE></FONT></TD> 209<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#getRangeMax()">getRangeMax</A></B>()</CODE> 210 211<BR> 212 Return the maximum value for the sequence.</TD> 213</TR> 214<TR BGCOLOR="white" CLASS="TableRowColor"> 215<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 216<CODE> long</CODE></FONT></TD> 217<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#getRangeMin()">getRangeMin</A></B>()</CODE> 218 219<BR> 220 Return the minimum value for the sequence.</TD> 221</TR> 222<TR BGCOLOR="white" CLASS="TableRowColor"> 223<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 224<CODE> boolean</CODE></FONT></TD> 225<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#getWrap()">getWrap</A></B>()</CODE> 226 227<BR> 228 Return true if the sequence will wrap around when it is incremented 229 (decremented) past the specified maximum (minimum) value.</TD> 230</TR> 231<TR BGCOLOR="white" CLASS="TableRowColor"> 232<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 233<CODE> void</CODE></FONT></TD> 234<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#setAllowCreate(boolean)">setAllowCreate</A></B>(boolean allowCreate)</CODE> 235 236<BR> 237 Configure the <A HREF="../../../com/sleepycat/db/Database.html#openSequence(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.SequenceConfig)"><CODE>Database.openSequence</CODE></A> method to 238 create the sequence if it does not already exist.</TD> 239</TR> 240<TR BGCOLOR="white" CLASS="TableRowColor"> 241<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 242<CODE> void</CODE></FONT></TD> 243<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#setAutoCommitNoSync(boolean)">setAutoCommitNoSync</A></B>(boolean autoCommitNoSync)</CODE> 244 245<BR> 246 Configure auto-commit operations on the sequence to not flush 247 the transaction log.</TD> 248</TR> 249<TR BGCOLOR="white" CLASS="TableRowColor"> 250<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 251<CODE> void</CODE></FONT></TD> 252<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#setCacheSize(int)">setCacheSize</A></B>(int cacheSize)</CODE> 253 254<BR> 255 Set the 256Configure the number of elements cached by a sequence handle.</TD> 257</TR> 258<TR BGCOLOR="white" CLASS="TableRowColor"> 259<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 260<CODE> void</CODE></FONT></TD> 261<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#setDecrement(boolean)">setDecrement</A></B>(boolean decrement)</CODE> 262 263<BR> 264 Specify that the sequence should be decremented.</TD> 265</TR> 266<TR BGCOLOR="white" CLASS="TableRowColor"> 267<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 268<CODE> void</CODE></FONT></TD> 269<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#setExclusiveCreate(boolean)">setExclusiveCreate</A></B>(boolean exclusiveCreate)</CODE> 270 271<BR> 272 Configure the <A HREF="../../../com/sleepycat/db/Database.html#openSequence(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.SequenceConfig)"><CODE>Database.openSequence</CODE></A> method to 273 fail if the database already exists.</TD> 274</TR> 275<TR BGCOLOR="white" CLASS="TableRowColor"> 276<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 277<CODE> void</CODE></FONT></TD> 278<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#setInitialValue(long)">setInitialValue</A></B>(long initialValue)</CODE> 279 280<BR> 281 Set the 282Set the initial value for a sequence.</TD> 283</TR> 284<TR BGCOLOR="white" CLASS="TableRowColor"> 285<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 286<CODE> void</CODE></FONT></TD> 287<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#setRange(long, long)">setRange</A></B>(long min, 288 long max)</CODE> 289 290<BR> 291 Configure a sequence range.</TD> 292</TR> 293<TR BGCOLOR="white" CLASS="TableRowColor"> 294<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 295<CODE> void</CODE></FONT></TD> 296<TD><CODE><B><A HREF="../../../com/sleepycat/db/SequenceConfig.html#setWrap(boolean)">setWrap</A></B>(boolean wrap)</CODE> 297 298<BR> 299 Specify that the sequence should wrap around when it is 300 incremented (decremented) past the specified maximum (minimum) value.</TD> 301</TR> 302</TABLE> 303 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 304<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 305<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 306<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> 307</TR> 308<TR BGCOLOR="white" CLASS="TableRowColor"> 309<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> 310</TR> 311</TABLE> 312 313<P> 314 315<!-- ============ FIELD DETAIL =========== --> 316 317<A NAME="field_detail"><!-- --></A> 318<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 319<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 320<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 321<B>Field Detail</B></FONT></TH> 322</TR> 323</TABLE> 324 325<A NAME="DEFAULT"><!-- --></A><H3> 326DEFAULT</H3> 327<PRE> 328public static final <A HREF="../../../com/sleepycat/db/SequenceConfig.html" title="class in com.sleepycat.db">SequenceConfig</A> <B>DEFAULT</B></PRE> 329<DL> 330<DD>Default configuration used if null is passed to methods that create a 331 cursor. 332<P> 333<DL> 334</DL> 335</DL> 336 337<!-- ========= CONSTRUCTOR DETAIL ======== --> 338 339<A NAME="constructor_detail"><!-- --></A> 340<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 341<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 342<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 343<B>Constructor Detail</B></FONT></TH> 344</TR> 345</TABLE> 346 347<A NAME="SequenceConfig()"><!-- --></A><H3> 348SequenceConfig</H3> 349<PRE> 350public <B>SequenceConfig</B>()</PRE> 351<DL> 352<DD>An instance created using the default constructor is initialized with 353 the system's default settings. 354<P> 355</DL> 356 357<!-- ============ METHOD DETAIL ========== --> 358 359<A NAME="method_detail"><!-- --></A> 360<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 361<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 362<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 363<B>Method Detail</B></FONT></TH> 364</TR> 365</TABLE> 366 367<A NAME="setAllowCreate(boolean)"><!-- --></A><H3> 368setAllowCreate</H3> 369<PRE> 370public void <B>setAllowCreate</B>(boolean allowCreate)</PRE> 371<DL> 372<DD>Configure the <A HREF="../../../com/sleepycat/db/Database.html#openSequence(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.SequenceConfig)"><CODE>Database.openSequence</CODE></A> method to 373 create the sequence if it does not already exist. 374<p> 375This method may be called at any time during the life of the application. 376<p> 377<P> 378<DD><DL> 379</DL> 380</DD> 381<DD><DL> 382<DT><B>Parameters:</B><DD><CODE>allowCreate</CODE> - If true, 383configure the <A HREF="../../../com/sleepycat/db/Database.html#openSequence(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.SequenceConfig)"><CODE>Database.openSequence</CODE></A> method to 384 create the sequence if it does not already exist.</DL> 385</DD> 386</DL> 387<HR> 388 389<A NAME="getAllowCreate()"><!-- --></A><H3> 390getAllowCreate</H3> 391<PRE> 392public boolean <B>getAllowCreate</B>()</PRE> 393<DL> 394<DD>Return true if the <A HREF="../../../com/sleepycat/db/Database.html#openSequence(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.SequenceConfig)"><CODE>Database.openSequence</CODE></A> method is configured 395 to create the sequence if it does not already exist. 396<p> 397This method may be called at any time during the life of the application. 398<p> 399<P> 400<DD><DL> 401</DL> 402</DD> 403<DD><DL> 404 405<DT><B>Returns:</B><DD>True if the <A HREF="../../../com/sleepycat/db/Database.html#openSequence(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.SequenceConfig)"><CODE>Database.openSequence</CODE></A> method is configured 406 to create the sequence if it does not already exist.</DL> 407</DD> 408</DL> 409<HR> 410 411<A NAME="setCacheSize(int)"><!-- --></A><H3> 412setCacheSize</H3> 413<PRE> 414public void <B>setCacheSize</B>(int cacheSize)</PRE> 415<DL> 416<DD>Set the 417Configure the number of elements cached by a sequence handle. 418<p> 419This method may be called at any time during the life of the application. 420<p> 421<P> 422<DD><DL> 423</DL> 424</DD> 425<DD><DL> 426<DT><B>Parameters:</B><DD><CODE>cacheSize</CODE> - The Configure the number of elements cached by a sequence handle.</DL> 427</DD> 428</DL> 429<HR> 430 431<A NAME="getCacheSize()"><!-- --></A><H3> 432getCacheSize</H3> 433<PRE> 434public int <B>getCacheSize</B>()</PRE> 435<DL> 436<DD>Return the number of elements cached by a sequence handle.. 437<p> 438This method may be called at any time during the life of the application. 439<p> 440<P> 441<DD><DL> 442</DL> 443</DD> 444<DD><DL> 445 446<DT><B>Returns:</B><DD>The number of elements cached by a sequence handle..</DL> 447</DD> 448</DL> 449<HR> 450 451<A NAME="setDecrement(boolean)"><!-- --></A><H3> 452setDecrement</H3> 453<PRE> 454public void <B>setDecrement</B>(boolean decrement)</PRE> 455<DL> 456<DD>Specify that the sequence should be decremented. 457<p> 458This method may be called at any time during the life of the application. 459<p> 460<P> 461<DD><DL> 462</DL> 463</DD> 464<DD><DL> 465<DT><B>Parameters:</B><DD><CODE>decrement</CODE> - If true, 466specify that the sequence should be decremented.</DL> 467</DD> 468</DL> 469<HR> 470 471<A NAME="getDecrement()"><!-- --></A><H3> 472getDecrement</H3> 473<PRE> 474public boolean <B>getDecrement</B>()</PRE> 475<DL> 476<DD>Return true if the sequence is configured to decrement. 477<p> 478This method may be called at any time during the life of the application. 479<p> 480<P> 481<DD><DL> 482</DL> 483</DD> 484<DD><DL> 485 486<DT><B>Returns:</B><DD>True if the sequence is configured to decrement.</DL> 487</DD> 488</DL> 489<HR> 490 491<A NAME="setExclusiveCreate(boolean)"><!-- --></A><H3> 492setExclusiveCreate</H3> 493<PRE> 494public void <B>setExclusiveCreate</B>(boolean exclusiveCreate)</PRE> 495<DL> 496<DD>Configure the <A HREF="../../../com/sleepycat/db/Database.html#openSequence(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.SequenceConfig)"><CODE>Database.openSequence</CODE></A> method to 497 fail if the database already exists. 498<p> 499This method may be called at any time during the life of the application. 500<p> 501<P> 502<DD><DL> 503</DL> 504</DD> 505<DD><DL> 506<DT><B>Parameters:</B><DD><CODE>exclusiveCreate</CODE> - If true, 507configure the <A HREF="../../../com/sleepycat/db/Database.html#openSequence(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.SequenceConfig)"><CODE>Database.openSequence</CODE></A> method to 508 fail if the database already exists.</DL> 509</DD> 510</DL> 511<HR> 512 513<A NAME="getExclusiveCreate()"><!-- --></A><H3> 514getExclusiveCreate</H3> 515<PRE> 516public boolean <B>getExclusiveCreate</B>()</PRE> 517<DL> 518<DD>Return true if the <A HREF="../../../com/sleepycat/db/Database.html#openSequence(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.SequenceConfig)"><CODE>Database.openSequence</CODE></A> method is configured to 519 fail if the database already exists. 520<p> 521This method may be called at any time during the life of the application. 522<p> 523<P> 524<DD><DL> 525</DL> 526</DD> 527<DD><DL> 528 529<DT><B>Returns:</B><DD>True if the <A HREF="../../../com/sleepycat/db/Database.html#openSequence(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.SequenceConfig)"><CODE>Database.openSequence</CODE></A> method is configured to 530 fail if the database already exists.</DL> 531</DD> 532</DL> 533<HR> 534 535<A NAME="setInitialValue(long)"><!-- --></A><H3> 536setInitialValue</H3> 537<PRE> 538public void <B>setInitialValue</B>(long initialValue)</PRE> 539<DL> 540<DD>Set the 541Set the initial value for a sequence. 542<p>This call is only 543 effective when the sequence is being created. 544<p> 545This method may be called at any time during the life of the application. 546<p> 547<P> 548<DD><DL> 549</DL> 550</DD> 551<DD><DL> 552<DT><B>Parameters:</B><DD><CODE>initialValue</CODE> - The Set the initial value for a sequence.</DL> 553</DD> 554</DL> 555<HR> 556 557<A NAME="getInitialValue()"><!-- --></A><H3> 558getInitialValue</H3> 559<PRE> 560public long <B>getInitialValue</B>()</PRE> 561<DL> 562<DD>Return the initial value for a sequence.. 563<p> 564This method may be called at any time during the life of the application. 565<p> 566<P> 567<DD><DL> 568</DL> 569</DD> 570<DD><DL> 571 572<DT><B>Returns:</B><DD>The initial value for a sequence..</DL> 573</DD> 574</DL> 575<HR> 576 577<A NAME="setAutoCommitNoSync(boolean)"><!-- --></A><H3> 578setAutoCommitNoSync</H3> 579<PRE> 580public void <B>setAutoCommitNoSync</B>(boolean autoCommitNoSync)</PRE> 581<DL> 582<DD>Configure auto-commit operations on the sequence to not flush 583 the transaction log. 584<p> 585This method may be called at any time during the life of the application. 586<p> 587<P> 588<DD><DL> 589</DL> 590</DD> 591<DD><DL> 592<DT><B>Parameters:</B><DD><CODE>autoCommitNoSync</CODE> - If true, 593configure auto-commit operations on the sequence to not flush 594 the transaction log.</DL> 595</DD> 596</DL> 597<HR> 598 599<A NAME="getAutoCommitNoSync()"><!-- --></A><H3> 600getAutoCommitNoSync</H3> 601<PRE> 602public boolean <B>getAutoCommitNoSync</B>()</PRE> 603<DL> 604<DD>Return true if the auto-commit operations on the sequence are configure to not 605 flush the transaction log.. 606<p> 607This method may be called at any time during the life of the application. 608<p> 609<P> 610<DD><DL> 611</DL> 612</DD> 613<DD><DL> 614 615<DT><B>Returns:</B><DD>True if the auto-commit operations on the sequence are configure to not 616 flush the transaction log..</DL> 617</DD> 618</DL> 619<HR> 620 621<A NAME="setRange(long, long)"><!-- --></A><H3> 622setRange</H3> 623<PRE> 624public void <B>setRange</B>(long min, 625 long max)</PRE> 626<DL> 627<DD>Configure a sequence range. This call is only effective when the 628 sequence is being created. 629 <p> 630<P> 631<DD><DL> 632</DL> 633</DD> 634<DD><DL> 635<DT><B>Parameters:</B><DD><CODE>min</CODE> - The minimum value for the sequence.<DD><CODE>max</CODE> - The maximum value for the sequence.</DL> 636</DD> 637</DL> 638<HR> 639 640<A NAME="getRangeMin()"><!-- --></A><H3> 641getRangeMin</H3> 642<PRE> 643public long <B>getRangeMin</B>()</PRE> 644<DL> 645<DD>Return the minimum value for the sequence. 646<p> 647This method may be called at any time during the life of the application. 648<p> 649<P> 650<DD><DL> 651</DL> 652</DD> 653<DD><DL> 654 655<DT><B>Returns:</B><DD>The minimum value for the sequence.</DL> 656</DD> 657</DL> 658<HR> 659 660<A NAME="getRangeMax()"><!-- --></A><H3> 661getRangeMax</H3> 662<PRE> 663public long <B>getRangeMax</B>()</PRE> 664<DL> 665<DD>Return the maximum value for the sequence. 666<p> 667This method may be called at any time during the life of the application. 668<p> 669<P> 670<DD><DL> 671</DL> 672</DD> 673<DD><DL> 674 675<DT><B>Returns:</B><DD>The maximum value for the sequence.</DL> 676</DD> 677</DL> 678<HR> 679 680<A NAME="setWrap(boolean)"><!-- --></A><H3> 681setWrap</H3> 682<PRE> 683public void <B>setWrap</B>(boolean wrap)</PRE> 684<DL> 685<DD>Specify that the sequence should wrap around when it is 686 incremented (decremented) past the specified maximum (minimum) value. 687<p> 688This method may be called at any time during the life of the application. 689<p> 690<P> 691<DD><DL> 692</DL> 693</DD> 694<DD><DL> 695<DT><B>Parameters:</B><DD><CODE>wrap</CODE> - If true, 696specify that the sequence should wrap around when it is 697 incremented (decremented) past the specified maximum (minimum) value.</DL> 698</DD> 699</DL> 700<HR> 701 702<A NAME="getWrap()"><!-- --></A><H3> 703getWrap</H3> 704<PRE> 705public boolean <B>getWrap</B>()</PRE> 706<DL> 707<DD>Return true if the sequence will wrap around when it is incremented 708 (decremented) past the specified maximum (minimum) value. 709<p> 710This method may be called at any time during the life of the application. 711<p> 712<P> 713<DD><DL> 714</DL> 715</DD> 716<DD><DL> 717 718<DT><B>Returns:</B><DD>True if the sequence will wrap around when it is incremented 719 (decremented) past the specified maximum (minimum) value.</DL> 720</DD> 721</DL> 722<!-- ========= END OF CLASS DATA ========= --> 723<HR> 724 725 726<!-- ======= START OF BOTTOM NAVBAR ====== --> 727<A NAME="navbar_bottom"><!-- --></A> 728<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 729<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 730<TR> 731<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 732<A NAME="navbar_bottom_firstrow"><!-- --></A> 733<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 734 <TR ALIGN="center" VALIGN="top"> 735 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 736 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 737 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 738 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SequenceConfig.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 739 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 740 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 741 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 742 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 743 </TR> 744</TABLE> 745</TD> 746<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 747<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM> 748</TD> 749</TR> 750 751<TR> 752<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 753 <A HREF="../../../com/sleepycat/db/Sequence.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> 754 <A HREF="../../../com/sleepycat/db/SequenceStats.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> 755<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 756 <A HREF="../../../index.html?com/sleepycat/db/SequenceConfig.html" target="_top"><B>FRAMES</B></A> 757 <A HREF="SequenceConfig.html" target="_top"><B>NO FRAMES</B></A> 758 <SCRIPT type="text/javascript"> 759 <!-- 760 if(window==top) { 761 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 762 } 763 //--> 764</SCRIPT> 765<NOSCRIPT> 766 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 767</NOSCRIPT> 768 769 770</FONT></TD> 771</TR> 772<TR> 773<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 774 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 775<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 776DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 777</TR> 778</TABLE> 779<A NAME="skip-navbar_bottom"></A> 780<!-- ======== END OF BOTTOM NAVBAR ======= --> 781 782<HR> 783<font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 784</BODY> 785</HTML> 786