Debian Codegraph @

docs/java/com/sleepycat/db/SequenceConfig.html

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