Debian Codegraph @

docs/java/com/sleepycat/db/DatabaseConfig.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:04 EDT 2013 -->
6 <TITLE>
7 DatabaseConfig (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="DatabaseConfig (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/DatabaseConfig.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/Database.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
59 &nbsp;<A HREF="../../../com/sleepycat/db/DatabaseEntry.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/DatabaseConfig.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="DatabaseConfig.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 DatabaseConfig</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.DatabaseConfig</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 <DL>
102 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../com/sleepycat/db/SecondaryConfig.html" title="class in com.sleepycat.db">SecondaryConfig</A></DD>
103 </DL>
104 <HR>
105 <DL>
106 <DT><PRE>public class <B>DatabaseConfig</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 </PRE>
108
109 <P>
110 Specify the attributes of a database.
111 <P>
112
113 <P>
114 <HR>
115
116 <P>
117 <!-- =========== FIELD SUMMARY =========== -->
118
119 <A NAME="field_summary"><!-- --></A>
120 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
121 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
122 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
123 <B>Field Summary</B></FONT></TH>
124 </TR>
125 <TR BGCOLOR="white" CLASS="TableRowColor">
126 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
127 <CODE>static&nbsp;<A HREF="../../../com/sleepycat/db/DatabaseConfig.html" title="class in com.sleepycat.db">DatabaseConfig</A></CODE></FONT></TD>
128 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#DEFAULT">DEFAULT</A></B></CODE>
129
130 <BR>
131 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An instance created using the default constructor is initialized
132 with the system's default settings.</TD>
133 </TR>
134 </TABLE>
135 &nbsp;
136 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
137
138 <A NAME="constructor_summary"><!-- --></A>
139 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
140 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
141 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
142 <B>Constructor Summary</B></FONT></TH>
143 </TR>
144 <TR BGCOLOR="white" CLASS="TableRowColor">
145 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#DatabaseConfig()">DatabaseConfig</A></B>()</CODE>
146
147 <BR>
148 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An instance created using the default constructor is initialized with
149 the system's default settings.</TD>
150 </TR>
151 </TABLE>
152 &nbsp;
153 <!-- ========== METHOD SUMMARY =========== -->
154
155 <A NAME="method_summary"><!-- --></A>
156 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
157 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
158 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
159 <B>Method Summary</B></FONT></TH>
160 </TR>
161 <TR BGCOLOR="white" CLASS="TableRowColor">
162 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
163 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/DatabaseConfig.html" title="class in com.sleepycat.db">DatabaseConfig</A></CODE></FONT></TD>
164 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#cloneConfig()">cloneConfig</A></B>()</CODE>
165
166 <BR>
167 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of this configuration object.</TD>
168 </TR>
169 <TR BGCOLOR="white" CLASS="TableRowColor">
170 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171 <CODE>&nbsp;boolean</CODE></FONT></TD>
172 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getAllowCreate()">getAllowCreate</A></B>()</CODE>
173
174 <BR>
175 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the <A HREF="../../../com/sleepycat/db/Environment.html#openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)"><CODE>Environment.openDatabase</CODE></A> method is configured
176 to create the database if it does not already exist.</TD>
177 </TR>
178 <TR BGCOLOR="white" CLASS="TableRowColor">
179 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A></CODE></FONT></TD>
181 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getBtreeComparator()">getBtreeComparator</A></B>()</CODE>
182
183 <BR>
184 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the custom Comparator used for btree keys.</TD>
185 </TR>
186 <TR BGCOLOR="white" CLASS="TableRowColor">
187 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
188 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/BtreeCompressor.html" title="interface in com.sleepycat.db">BtreeCompressor</A></CODE></FONT></TD>
189 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getBtreeCompressor()">getBtreeCompressor</A></B>()</CODE>
190
191 <BR>
192 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the Btree compression callbacks.</TD>
193 </TR>
194 <TR BGCOLOR="white" CLASS="TableRowColor">
195 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
196 <CODE>&nbsp;int</CODE></FONT></TD>
197 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getBtreeMinKey()">getBtreeMinKey</A></B>()</CODE>
198
199 <BR>
200 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the minimum number of key/data pairs intended to be stored
201 on any single Btree leaf page.</TD>
202 </TR>
203 <TR BGCOLOR="white" CLASS="TableRowColor">
204 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/BtreePrefixCalculator.html" title="interface in com.sleepycat.db">BtreePrefixCalculator</A></CODE></FONT></TD>
206 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getBtreePrefixCalculator()">getBtreePrefixCalculator</A></B>()</CODE>
207
208 <BR>
209 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the Btree prefix callback.</TD>
210 </TR>
211 <TR BGCOLOR="white" CLASS="TableRowColor">
212 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
213 <CODE>&nbsp;boolean</CODE></FONT></TD>
214 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getBtreeRecordNumbers()">getBtreeRecordNumbers</A></B>()</CODE>
215
216 <BR>
217 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the Btree is configured to support retrieval by record number.</TD>
218 </TR>
219 <TR BGCOLOR="white" CLASS="TableRowColor">
220 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
221 <CODE>&nbsp;int</CODE></FONT></TD>
222 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getByteOrder()">getByteOrder</A></B>()</CODE>
223
224 <BR>
225 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the database byte order; a byte order of 4,321 indicates a
226 big endian order, and a byte order of 1,234 indicates a little
227 endian order.</TD>
228 </TR>
229 <TR BGCOLOR="white" CLASS="TableRowColor">
230 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
231 <CODE>&nbsp;boolean</CODE></FONT></TD>
232 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getByteSwapped()">getByteSwapped</A></B>()</CODE>
233
234 <BR>
235 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return if the underlying database files were created on an architecture
236 of the same byte order as the current one.</TD>
237 </TR>
238 <TR BGCOLOR="white" CLASS="TableRowColor">
239 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240 <CODE>&nbsp;int</CODE></FONT></TD>
241 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getCacheCount()">getCacheCount</A></B>()</CODE>
242
243 <BR>
244 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of shared memory buffer pools, that is, the number
245 of caches.</TD>
246 </TR>
247 <TR BGCOLOR="white" CLASS="TableRowColor">
248 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249 <CODE>&nbsp;long</CODE></FONT></TD>
250 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getCacheSize()">getCacheSize</A></B>()</CODE>
251
252 <BR>
253 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the size of the shared memory buffer pool, that is, the cache.</TD>
254 </TR>
255 <TR BGCOLOR="white" CLASS="TableRowColor">
256 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
257 <CODE>&nbsp;boolean</CODE></FONT></TD>
258 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getChecksum()">getChecksum</A></B>()</CODE>
259
260 <BR>
261 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured to do checksum
262 verification of pages read into the cache from the backing
263 filestore.</TD>
264 </TR>
265 <TR BGCOLOR="white" CLASS="TableRowColor">
266 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
267 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD>
268 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getCreateDir()">getCreateDir</A></B>()</CODE>
269
270 <BR>
271 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the directory a database will/has been created in or looked for.</TD>
272 </TR>
273 <TR BGCOLOR="white" CLASS="TableRowColor">
274 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
275 <CODE>&nbsp;boolean</CODE></FONT></TD>
276 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getDirtyRead()">getDirtyRead</A></B>()</CODE>
277
278 <BR>
279 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>This has been replaced by <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getReadUncommitted()"><CODE>getReadUncommitted()</CODE></A> to conform to ANSI
280 database isolation terminology.</I></TD>
281 </TR>
282 <TR BGCOLOR="white" CLASS="TableRowColor">
283 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
284 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A></CODE></FONT></TD>
285 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getDuplicateComparator()">getDuplicateComparator</A></B>()</CODE>
286
287 <BR>
288 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the duplicate data item comparison callback.</TD>
289 </TR>
290 <TR BGCOLOR="white" CLASS="TableRowColor">
291 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
292 <CODE>&nbsp;boolean</CODE></FONT></TD>
293 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getEncrypted()">getEncrypted</A></B>()</CODE>
294
295 <BR>
296 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database has been configured to perform encryption.</TD>
297 </TR>
298 <TR BGCOLOR="white" CLASS="TableRowColor">
299 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
300 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/ErrorHandler.html" title="interface in com.sleepycat.db">ErrorHandler</A></CODE></FONT></TD>
301 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getErrorHandler()">getErrorHandler</A></B>()</CODE>
302
303 <BR>
304 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the function to be called if an error occurs.</TD>
305 </TR>
306 <TR BGCOLOR="white" CLASS="TableRowColor">
307 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
308 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
309 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getErrorPrefix()">getErrorPrefix</A></B>()</CODE>
310
311 <BR>
312 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the prefix string that appears before error messages.</TD>
313 </TR>
314 <TR BGCOLOR="white" CLASS="TableRowColor">
315 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
316 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></CODE></FONT></TD>
317 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getErrorStream()">getErrorStream</A></B>()</CODE>
318
319 <BR>
320 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the an OutputStream for displaying error messages.</TD>
321 </TR>
322 <TR BGCOLOR="white" CLASS="TableRowColor">
323 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
324 <CODE>&nbsp;boolean</CODE></FONT></TD>
325 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getExclusiveCreate()">getExclusiveCreate</A></B>()</CODE>
326
327 <BR>
328 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the <A HREF="../../../com/sleepycat/db/Environment.html#openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)"><CODE>Environment.openDatabase</CODE></A> method is configured
329 to fail if the database already exists.</TD>
330 </TR>
331 <TR BGCOLOR="white" CLASS="TableRowColor">
332 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
333 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/FeedbackHandler.html" title="interface in com.sleepycat.db">FeedbackHandler</A></CODE></FONT></TD>
334 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getFeedbackHandler()">getFeedbackHandler</A></B>()</CODE>
335
336 <BR>
337 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the object's methods to be called to provide feedback.</TD>
338 </TR>
339 <TR BGCOLOR="white" CLASS="TableRowColor">
340 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
341 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A></CODE></FONT></TD>
342 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getHashComparator()">getHashComparator</A></B>()</CODE>
343
344 <BR>
345 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the Comparator used to compare keys in a Hash database.</TD>
346 </TR>
347 <TR BGCOLOR="white" CLASS="TableRowColor">
348 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
349 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/Hasher.html" title="interface in com.sleepycat.db">Hasher</A></CODE></FONT></TD>
350 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getHasher()">getHasher</A></B>()</CODE>
351
352 <BR>
353 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the database-specific hash function.</TD>
354 </TR>
355 <TR BGCOLOR="white" CLASS="TableRowColor">
356 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
357 <CODE>&nbsp;int</CODE></FONT></TD>
358 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getHashFillFactor()">getHashFillFactor</A></B>()</CODE>
359
360 <BR>
361 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the hash table density.</TD>
362 </TR>
363 <TR BGCOLOR="white" CLASS="TableRowColor">
364 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
365 <CODE>&nbsp;int</CODE></FONT></TD>
366 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getHashNumElements()">getHashNumElements</A></B>()</CODE>
367
368 <BR>
369 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the estimate of the final size of the hash table.</TD>
370 </TR>
371 <TR BGCOLOR="white" CLASS="TableRowColor">
372 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
373 <CODE>&nbsp;long</CODE></FONT></TD>
374 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getHeapRegionSize()">getHeapRegionSize</A></B>()</CODE>
375
376 <BR>
377 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of pages in a region of the database.</TD>
378 </TR>
379 <TR BGCOLOR="white" CLASS="TableRowColor">
380 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
381 <CODE>&nbsp;long</CODE></FONT></TD>
382 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getHeapsize()">getHeapsize</A></B>()</CODE>
383
384 <BR>
385 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the maximum on-disk database file size.</TD>
386 </TR>
387 <TR BGCOLOR="white" CLASS="TableRowColor">
388 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
389 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/MessageHandler.html" title="interface in com.sleepycat.db">MessageHandler</A></CODE></FONT></TD>
390 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getMessageHandler()">getMessageHandler</A></B>()</CODE>
391
392 <BR>
393 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the function to be called with an informational message.</TD>
394 </TR>
395 <TR BGCOLOR="white" CLASS="TableRowColor">
396 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
397 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></CODE></FONT></TD>
398 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getMessageStream()">getMessageStream</A></B>()</CODE>
399
400 <BR>
401 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the an OutputStream for displaying informational messages.</TD>
402 </TR>
403 <TR BGCOLOR="white" CLASS="TableRowColor">
404 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
405 <CODE>&nbsp;long</CODE></FONT></TD>
406 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getMode()">getMode</A></B>()</CODE>
407
408 <BR>
409 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the mode used to create files.</TD>
410 </TR>
411 <TR BGCOLOR="white" CLASS="TableRowColor">
412 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
413 <CODE>&nbsp;boolean</CODE></FONT></TD>
414 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getMultiversion()">getMultiversion</A></B>()</CODE>
415
416 <BR>
417 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database is configured for multiversion concurrency control.</TD>
418 </TR>
419 <TR BGCOLOR="white" CLASS="TableRowColor">
420 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
421 <CODE>&nbsp;boolean</CODE></FONT></TD>
422 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getNoMMap()">getNoMMap</A></B>()</CODE>
423
424 <BR>
425 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the library is configured to not map this database into
426 memory.</TD>
427 </TR>
428 <TR BGCOLOR="white" CLASS="TableRowColor">
429 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
430 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A></CODE></FONT></TD>
431 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getNoWaitDbExclusiveLock()">getNoWaitDbExclusiveLock</A></B>()</CODE>
432
433 <BR>
434 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return whether the <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle is
435 configured to obtain a write lock on the entire database.</TD>
436 </TR>
437 <TR BGCOLOR="white" CLASS="TableRowColor">
438 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
439 <CODE>&nbsp;int</CODE></FONT></TD>
440 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getPageSize()">getPageSize</A></B>()</CODE>
441
442 <BR>
443 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the size of the pages used to hold items in the database, in bytes.</TD>
444 </TR>
445 <TR BGCOLOR="white" CLASS="TableRowColor">
446 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
447 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/PanicHandler.html" title="interface in com.sleepycat.db">PanicHandler</A></CODE></FONT></TD>
448 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getPanicHandler()">getPanicHandler</A></B>()</CODE>
449
450 <BR>
451 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the function to be called if the database environment panics.</TD>
452 </TR>
453 <TR BGCOLOR="white" CLASS="TableRowColor">
454 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
455 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>[]</CODE></FONT></TD>
456 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getPartitionDirs()">getPartitionDirs</A></B>()</CODE>
457
458 <BR>
459 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the array of directories the database extents should be created in or
460 looked for.</TD>
461 </TR>
462 <TR BGCOLOR="white" CLASS="TableRowColor">
463 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
464 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/PartitionHandler.html" title="interface in com.sleepycat.db">PartitionHandler</A></CODE></FONT></TD>
465 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getPartitionHandler()">getPartitionHandler</A></B>()</CODE>
466
467 <BR>
468 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the function to be called to determine which partition a key resides in.</TD>
469 </TR>
470 <TR BGCOLOR="white" CLASS="TableRowColor">
471 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
472 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A></CODE></FONT></TD>
473 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getPartitionKeys()">getPartitionKeys</A></B>()</CODE>
474
475 <BR>
476 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the array of keys the database is configured to partition with.</TD>
477 </TR>
478 <TR BGCOLOR="white" CLASS="TableRowColor">
479 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
480 <CODE>&nbsp;int</CODE></FONT></TD>
481 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getPartitionParts()">getPartitionParts</A></B>()</CODE>
482
483 <BR>
484 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of partitions the database is configured for.</TD>
485 </TR>
486 <TR BGCOLOR="white" CLASS="TableRowColor">
487 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
488 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/CacheFilePriority.html" title="class in com.sleepycat.db">CacheFilePriority</A></CODE></FONT></TD>
489 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getPriority()">getPriority</A></B>()</CODE>
490
491 <BR>
492 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the the cache priority for pages referenced by this handle.</TD>
493 </TR>
494 <TR BGCOLOR="white" CLASS="TableRowColor">
495 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
496 <CODE>&nbsp;int</CODE></FONT></TD>
497 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getQueueExtentSize()">getQueueExtentSize</A></B>()</CODE>
498
499 <BR>
500 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the size of the extents used to hold pages in a Queue database,
501 specified as a number of pages.</TD>
502 </TR>
503 <TR BGCOLOR="white" CLASS="TableRowColor">
504 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
505 <CODE>&nbsp;boolean</CODE></FONT></TD>
506 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getQueueInOrder()">getQueueInOrder</A></B>()</CODE>
507
508 <BR>
509 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the <A HREF="../../../com/sleepycat/db/Database.html#consume(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, boolean)"><CODE>Database.consume</CODE></A> method is configured to return
510 key/data pairs in order, always returning the key/data item from the
511 head of the queue.</TD>
512 </TR>
513 <TR BGCOLOR="white" CLASS="TableRowColor">
514 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
515 <CODE>&nbsp;boolean</CODE></FONT></TD>
516 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getReadOnly()">getReadOnly</A></B>()</CODE>
517
518 <BR>
519 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database is configured in read-only mode.</TD>
520 </TR>
521 <TR BGCOLOR="white" CLASS="TableRowColor">
522 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
523 <CODE>&nbsp;boolean</CODE></FONT></TD>
524 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getReadUncommitted()">getReadUncommitted</A></B>()</CODE>
525
526 <BR>
527 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database is configured to support read uncommitted.</TD>
528 </TR>
529 <TR BGCOLOR="white" CLASS="TableRowColor">
530 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
531 <CODE>&nbsp;int</CODE></FONT></TD>
532 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getRecordDelimiter()">getRecordDelimiter</A></B>()</CODE>
533
534 <BR>
535 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the delimiting byte used to mark the end of a record in the
536 backing source file for the Recno access method.</TD>
537 </TR>
538 <TR BGCOLOR="white" CLASS="TableRowColor">
539 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
540 <CODE>&nbsp;int</CODE></FONT></TD>
541 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getRecordLength()">getRecordLength</A></B>()</CODE>
542
543 <BR>
544 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the database record length, in bytes.</TD>
545 </TR>
546 <TR BGCOLOR="white" CLASS="TableRowColor">
547 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
548 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/RecordNumberAppender.html" title="interface in com.sleepycat.db">RecordNumberAppender</A></CODE></FONT></TD>
549 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getRecordNumberAppender()">getRecordNumberAppender</A></B>()</CODE>
550
551 <BR>
552 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the function to call after the record number has been
553 selected but before the data has been stored into the database.</TD>
554 </TR>
555 <TR BGCOLOR="white" CLASS="TableRowColor">
556 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
557 <CODE>&nbsp;int</CODE></FONT></TD>
558 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getRecordPad()">getRecordPad</A></B>()</CODE>
559
560 <BR>
561 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the padding character for short, fixed-length records for the
562 Queue and Recno access methods.</TD>
563 </TR>
564 <TR BGCOLOR="white" CLASS="TableRowColor">
565 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
566 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD>
567 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getRecordSource()">getRecordSource</A></B>()</CODE>
568
569 <BR>
570 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the name of an underlying flat text database file that is
571 read to initialize a transient record number index.</TD>
572 </TR>
573 <TR BGCOLOR="white" CLASS="TableRowColor">
574 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
575 <CODE>&nbsp;boolean</CODE></FONT></TD>
576 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getRenumbering()">getRenumbering</A></B>()</CODE>
577
578 <BR>
579 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the logical record numbers are mutable, and change as
580 records are added to and deleted from the database.</TD>
581 </TR>
582 <TR BGCOLOR="white" CLASS="TableRowColor">
583 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
584 <CODE>&nbsp;boolean</CODE></FONT></TD>
585 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getReverseSplitOff()">getReverseSplitOff</A></B>()</CODE>
586
587 <BR>
588 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the Btree has been configured to not do reverse splits.</TD>
589 </TR>
590 <TR BGCOLOR="white" CLASS="TableRowColor">
591 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
592 <CODE>&nbsp;boolean</CODE></FONT></TD>
593 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getSnapshot()">getSnapshot</A></B>()</CODE>
594
595 <BR>
596 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the any specified backing source file will be read in its
597 entirety when the database is opened.</TD>
598 </TR>
599 <TR BGCOLOR="white" CLASS="TableRowColor">
600 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
601 <CODE>&nbsp;boolean</CODE></FONT></TD>
602 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getSortedDuplicates()">getSortedDuplicates</A></B>()</CODE>
603
604 <BR>
605 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database is configured to support sorted duplicate data
606 items.</TD>
607 </TR>
608 <TR BGCOLOR="white" CLASS="TableRowColor">
609 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
610 <CODE>&nbsp;boolean</CODE></FONT></TD>
611 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getTransactional()">getTransactional</A></B>()</CODE>
612
613 <BR>
614 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database open is enclosed within a transaction.</TD>
615 </TR>
616 <TR BGCOLOR="white" CLASS="TableRowColor">
617 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
618 <CODE>&nbsp;boolean</CODE></FONT></TD>
619 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getTransactionNotDurable()">getTransactionNotDurable</A></B>()</CODE>
620
621 <BR>
622 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database environment is configured to not write log
623 records for this database.</TD>
624 </TR>
625 <TR BGCOLOR="white" CLASS="TableRowColor">
626 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
627 <CODE>&nbsp;boolean</CODE></FONT></TD>
628 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getTruncate()">getTruncate</A></B>()</CODE>
629
630 <BR>
631 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database has been configured to be physically truncated
632 by truncating the underlying file, discarding all previous databases
633 it might have held.</TD>
634 </TR>
635 <TR BGCOLOR="white" CLASS="TableRowColor">
636 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
637 <CODE>&nbsp;<A HREF="../../../com/sleepycat/db/DatabaseType.html" title="class in com.sleepycat.db">DatabaseType</A></CODE></FONT></TD>
638 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getType()">getType</A></B>()</CODE>
639
640 <BR>
641 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the type of the database.</TD>
642 </TR>
643 <TR BGCOLOR="white" CLASS="TableRowColor">
644 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
645 <CODE>&nbsp;boolean</CODE></FONT></TD>
646 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getUnsortedDuplicates()">getUnsortedDuplicates</A></B>()</CODE>
647
648 <BR>
649 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return true if the database is configured to support duplicate data items.</TD>
650 </TR>
651 <TR BGCOLOR="white" CLASS="TableRowColor">
652 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
653 <CODE>&nbsp;void</CODE></FONT></TD>
654 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setAllowCreate(boolean)">setAllowCreate</A></B>(boolean&nbsp;allowCreate)</CODE>
655
656 <BR>
657 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the <A HREF="../../../com/sleepycat/db/Environment.html#openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)"><CODE>Environment.openDatabase</CODE></A> method to create
658 the database if it does not already exist.</TD>
659 </TR>
660 <TR BGCOLOR="white" CLASS="TableRowColor">
661 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
662 <CODE>&nbsp;void</CODE></FONT></TD>
663 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setBtreeComparator(java.util.Comparator)">setBtreeComparator</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A>&nbsp;btreeComparator)</CODE>
664
665 <BR>
666 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;By default, a byte by byte lexicographic comparison is used for
667 btree keys.</TD>
668 </TR>
669 <TR BGCOLOR="white" CLASS="TableRowColor">
670 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
671 <CODE>&nbsp;void</CODE></FONT></TD>
672 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setBtreeCompressor(com.sleepycat.db.BtreeCompressor)">setBtreeCompressor</A></B>(<A HREF="../../../com/sleepycat/db/BtreeCompressor.html" title="interface in com.sleepycat.db">BtreeCompressor</A>&nbsp;btreeCompressor)</CODE>
673
674 <BR>
675 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the Btree compression callbacks.</TD>
676 </TR>
677 <TR BGCOLOR="white" CLASS="TableRowColor">
678 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
679 <CODE>&nbsp;void</CODE></FONT></TD>
680 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setBtreeMinKey(int)">setBtreeMinKey</A></B>(int&nbsp;btMinKey)</CODE>
681
682 <BR>
683 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the minimum number of key/data pairs intended to be stored on any
684 single Btree leaf page.</TD>
685 </TR>
686 <TR BGCOLOR="white" CLASS="TableRowColor">
687 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
688 <CODE>&nbsp;void</CODE></FONT></TD>
689 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setBtreePrefixCalculator(com.sleepycat.db.BtreePrefixCalculator)">setBtreePrefixCalculator</A></B>(<A HREF="../../../com/sleepycat/db/BtreePrefixCalculator.html" title="interface in com.sleepycat.db">BtreePrefixCalculator</A>&nbsp;btreePrefixCalculator)</CODE>
690
691 <BR>
692 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the Btree prefix callback.</TD>
693 </TR>
694 <TR BGCOLOR="white" CLASS="TableRowColor">
695 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
696 <CODE>&nbsp;void</CODE></FONT></TD>
697 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setBtreeRecordNumbers(boolean)">setBtreeRecordNumbers</A></B>(boolean&nbsp;btreeRecordNumbers)</CODE>
698
699 <BR>
700 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the Btree to support retrieval by record number.</TD>
701 </TR>
702 <TR BGCOLOR="white" CLASS="TableRowColor">
703 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
704 <CODE>&nbsp;void</CODE></FONT></TD>
705 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setByteOrder(int)">setByteOrder</A></B>(int&nbsp;byteOrder)</CODE>
706
707 <BR>
708 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the byte order for integers in the stored database metadata.</TD>
709 </TR>
710 <TR BGCOLOR="white" CLASS="TableRowColor">
711 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
712 <CODE>&nbsp;void</CODE></FONT></TD>
713 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setCacheCount(int)">setCacheCount</A></B>(int&nbsp;cacheCount)</CODE>
714
715 <BR>
716 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the number of shared memory buffer pools, that is, the number of
717 caches.</TD>
718 </TR>
719 <TR BGCOLOR="white" CLASS="TableRowColor">
720 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
721 <CODE>&nbsp;void</CODE></FONT></TD>
722 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setCacheSize(long)">setCacheSize</A></B>(long&nbsp;cacheSize)</CODE>
723
724 <BR>
725 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the size of the shared memory buffer pool, that is, the size of the
726 cache.</TD>
727 </TR>
728 <TR BGCOLOR="white" CLASS="TableRowColor">
729 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
730 <CODE>&nbsp;void</CODE></FONT></TD>
731 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setChecksum(boolean)">setChecksum</A></B>(boolean&nbsp;checksum)</CODE>
732
733 <BR>
734 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to do checksum verification of
735 pages read into the cache from the backing filestore.</TD>
736 </TR>
737 <TR BGCOLOR="white" CLASS="TableRowColor">
738 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
739 <CODE>&nbsp;void</CODE></FONT></TD>
740 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setCreateDir(java.io.File)">setCreateDir</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;createDir)</CODE>
741
742 <BR>
743 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specify which directory a database should be created in or looked for.</TD>
744 </TR>
745 <TR BGCOLOR="white" CLASS="TableRowColor">
746 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
747 <CODE>&nbsp;void</CODE></FONT></TD>
748 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setDirtyRead(boolean)">setDirtyRead</A></B>(boolean&nbsp;dirtyRead)</CODE>
749
750 <BR>
751 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>This has been replaced by <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setReadUncommitted(boolean)"><CODE>setReadUncommitted(boolean)</CODE></A> to conform to ANSI
752 database isolation terminology.</I></TD>
753 </TR>
754 <TR BGCOLOR="white" CLASS="TableRowColor">
755 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
756 <CODE>&nbsp;void</CODE></FONT></TD>
757 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setDuplicateComparator(java.util.Comparator)">setDuplicateComparator</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A>&nbsp;duplicateComparator)</CODE>
758
759 <BR>
760 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the duplicate data item comparison callback.</TD>
761 </TR>
762 <TR BGCOLOR="white" CLASS="TableRowColor">
763 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
764 <CODE>&nbsp;void</CODE></FONT></TD>
765 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setEncrypted(java.lang.String)">setEncrypted</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;password)</CODE>
766
767 <BR>
768 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the password used to perform encryption and decryption.</TD>
769 </TR>
770 <TR BGCOLOR="white" CLASS="TableRowColor">
771 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
772 <CODE>&nbsp;void</CODE></FONT></TD>
773 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setErrorHandler(com.sleepycat.db.ErrorHandler)">setErrorHandler</A></B>(<A HREF="../../../com/sleepycat/db/ErrorHandler.html" title="interface in com.sleepycat.db">ErrorHandler</A>&nbsp;errorHandler)</CODE>
774
775 <BR>
776 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the function to be called if an error occurs.</TD>
777 </TR>
778 <TR BGCOLOR="white" CLASS="TableRowColor">
779 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
780 <CODE>&nbsp;void</CODE></FONT></TD>
781 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setErrorPrefix(java.lang.String)">setErrorPrefix</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;errorPrefix)</CODE>
782
783 <BR>
784 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the prefix string that appears before error messages.</TD>
785 </TR>
786 <TR BGCOLOR="white" CLASS="TableRowColor">
787 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
788 <CODE>&nbsp;void</CODE></FONT></TD>
789 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setErrorStream(java.io.OutputStream)">setErrorStream</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;errorStream)</CODE>
790
791 <BR>
792 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set an OutputStream for displaying error messages.</TD>
793 </TR>
794 <TR BGCOLOR="white" CLASS="TableRowColor">
795 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
796 <CODE>&nbsp;void</CODE></FONT></TD>
797 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setExclusiveCreate(boolean)">setExclusiveCreate</A></B>(boolean&nbsp;exclusiveCreate)</CODE>
798
799 <BR>
800 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the <A HREF="../../../com/sleepycat/db/Environment.html#openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)"><CODE>Environment.openDatabase</CODE></A> method to fail if
801 the database already exists.</TD>
802 </TR>
803 <TR BGCOLOR="white" CLASS="TableRowColor">
804 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
805 <CODE>&nbsp;void</CODE></FONT></TD>
806 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setFeedbackHandler(com.sleepycat.db.FeedbackHandler)">setFeedbackHandler</A></B>(<A HREF="../../../com/sleepycat/db/FeedbackHandler.html" title="interface in com.sleepycat.db">FeedbackHandler</A>&nbsp;feedbackHandler)</CODE>
807
808 <BR>
809 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set an object whose methods are called to provide feedback.</TD>
810 </TR>
811 <TR BGCOLOR="white" CLASS="TableRowColor">
812 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
813 <CODE>&nbsp;void</CODE></FONT></TD>
814 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setHashComparator(java.util.Comparator)">setHashComparator</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A>&nbsp;hashComparator)</CODE>
815
816 <BR>
817 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the Hash key comparison function.</TD>
818 </TR>
819 <TR BGCOLOR="white" CLASS="TableRowColor">
820 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
821 <CODE>&nbsp;void</CODE></FONT></TD>
822 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setHasher(com.sleepycat.db.Hasher)">setHasher</A></B>(<A HREF="../../../com/sleepycat/db/Hasher.html" title="interface in com.sleepycat.db">Hasher</A>&nbsp;hasher)</CODE>
823
824 <BR>
825 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a database-specific hash function.</TD>
826 </TR>
827 <TR BGCOLOR="white" CLASS="TableRowColor">
828 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
829 <CODE>&nbsp;void</CODE></FONT></TD>
830 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setHashFillFactor(int)">setHashFillFactor</A></B>(int&nbsp;hashFillFactor)</CODE>
831
832 <BR>
833 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the desired density within the hash table.</TD>
834 </TR>
835 <TR BGCOLOR="white" CLASS="TableRowColor">
836 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
837 <CODE>&nbsp;void</CODE></FONT></TD>
838 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setHashNumElements(int)">setHashNumElements</A></B>(int&nbsp;hashNumElements)</CODE>
839
840 <BR>
841 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set an estimate of the final size of the hash table.</TD>
842 </TR>
843 <TR BGCOLOR="white" CLASS="TableRowColor">
844 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
845 <CODE>&nbsp;void</CODE></FONT></TD>
846 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setHeapRegionSize(int)">setHeapRegionSize</A></B>(int&nbsp;npages)</CODE>
847
848 <BR>
849 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the number of pages in a region of a database configured to use
850 the Heap access method.</TD>
851 </TR>
852 <TR BGCOLOR="white" CLASS="TableRowColor">
853 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
854 <CODE>&nbsp;void</CODE></FONT></TD>
855 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setHeapsize(long)">setHeapsize</A></B>(long&nbsp;bytes)</CODE>
856
857 <BR>
858 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the maximum on-disk database file size used by a database configured to
859 use the Heap access method.</TD>
860 </TR>
861 <TR BGCOLOR="white" CLASS="TableRowColor">
862 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
863 <CODE>&nbsp;void</CODE></FONT></TD>
864 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMessageHandler(com.sleepycat.db.MessageHandler)">setMessageHandler</A></B>(<A HREF="../../../com/sleepycat/db/MessageHandler.html" title="interface in com.sleepycat.db">MessageHandler</A>&nbsp;messageHandler)</CODE>
865
866 <BR>
867 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a function to be called with an informational message.</TD>
868 </TR>
869 <TR BGCOLOR="white" CLASS="TableRowColor">
870 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
871 <CODE>&nbsp;void</CODE></FONT></TD>
872 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMessageStream(java.io.OutputStream)">setMessageStream</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;messageStream)</CODE>
873
874 <BR>
875 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set an OutputStream for displaying informational messages.</TD>
876 </TR>
877 <TR BGCOLOR="white" CLASS="TableRowColor">
878 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
879 <CODE>&nbsp;void</CODE></FONT></TD>
880 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMode(int)">setMode</A></B>(int&nbsp;mode)</CODE>
881
882 <BR>
883 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;On UNIX systems or in IEEE/ANSI Std 1003.1 (POSIX) environments, files
884 created by the database open are created with mode <code>mode</code>
885 (as described in the <code>chmod</code>(2) manual page) and modified
886 by the process' umask value at the time of creation (see the
887 <code>umask</code>(2) manual page).</TD>
888 </TR>
889 <TR BGCOLOR="white" CLASS="TableRowColor">
890 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
891 <CODE>&nbsp;void</CODE></FONT></TD>
892 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMultiversion(boolean)">setMultiversion</A></B>(boolean&nbsp;multiversion)</CODE>
893
894 <BR>
895 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configured the database with support for multiversion concurrency control.</TD>
896 </TR>
897 <TR BGCOLOR="white" CLASS="TableRowColor">
898 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
899 <CODE>&nbsp;void</CODE></FONT></TD>
900 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setNoMMap(boolean)">setNoMMap</A></B>(boolean&nbsp;noMMap)</CODE>
901
902 <BR>
903 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the library to not map this database into memory.</TD>
904 </TR>
905 <TR BGCOLOR="white" CLASS="TableRowColor">
906 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
907 <CODE>&nbsp;void</CODE></FONT></TD>
908 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setNoWaitDbExclusiveLock(java.lang.Boolean)">setNoWaitDbExclusiveLock</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A>&nbsp;noWaitDbExclLock)</CODE>
909
910 <BR>
911 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle to obtain a
912 write lock on the entire database.</TD>
913 </TR>
914 <TR BGCOLOR="white" CLASS="TableRowColor">
915 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
916 <CODE>&nbsp;void</CODE></FONT></TD>
917 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setPageSize(int)">setPageSize</A></B>(int&nbsp;pageSize)</CODE>
918
919 <BR>
920 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the size of the pages used to hold items in the database, in bytes.</TD>
921 </TR>
922 <TR BGCOLOR="white" CLASS="TableRowColor">
923 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
924 <CODE>&nbsp;void</CODE></FONT></TD>
925 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setPanicHandler(com.sleepycat.db.PanicHandler)">setPanicHandler</A></B>(<A HREF="../../../com/sleepycat/db/PanicHandler.html" title="interface in com.sleepycat.db">PanicHandler</A>&nbsp;panicHandler)</CODE>
926
927 <BR>
928 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the function to be called if the database environment panics.</TD>
929 </TR>
930 <TR BGCOLOR="white" CLASS="TableRowColor">
931 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
932 <CODE>&nbsp;void</CODE></FONT></TD>
933 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setPartitionByCallback(int, com.sleepycat.db.PartitionHandler)">setPartitionByCallback</A></B>(int&nbsp;parts,
934 <A HREF="../../../com/sleepycat/db/PartitionHandler.html" title="interface in com.sleepycat.db">PartitionHandler</A>&nbsp;partitionHandler)</CODE>
935
936 <BR>
937 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enable or disable database partitioning, and set the callback that will
938 be used for the partitioning.</TD>
939 </TR>
940 <TR BGCOLOR="white" CLASS="TableRowColor">
941 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
942 <CODE>&nbsp;void</CODE></FONT></TD>
943 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setPartitionByRange(int, com.sleepycat.db.MultipleDataEntry)">setPartitionByRange</A></B>(int&nbsp;parts,
944 <A HREF="../../../com/sleepycat/db/MultipleDataEntry.html" title="class in com.sleepycat.db">MultipleDataEntry</A>&nbsp;keys)</CODE>
945
946 <BR>
947 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enable or disable database partitioning, and set key ranges that will be
948 used for the partitioning.</TD>
949 </TR>
950 <TR BGCOLOR="white" CLASS="TableRowColor">
951 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
952 <CODE>&nbsp;void</CODE></FONT></TD>
953 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setPartitionDirs(java.io.File[])">setPartitionDirs</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>[]&nbsp;dirs)</CODE>
954
955 <BR>
956 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specify the array of directories the database extents should be created in or
957 looked for.</TD>
958 </TR>
959 <TR BGCOLOR="white" CLASS="TableRowColor">
960 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
961 <CODE>&nbsp;void</CODE></FONT></TD>
962 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setPriority(com.sleepycat.db.CacheFilePriority)">setPriority</A></B>(<A HREF="../../../com/sleepycat/db/CacheFilePriority.html" title="class in com.sleepycat.db">CacheFilePriority</A>&nbsp;priority)</CODE>
963
964 <BR>
965 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the cache priority for pages referenced by the DB handle.</TD>
966 </TR>
967 <TR BGCOLOR="white" CLASS="TableRowColor">
968 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
969 <CODE>&nbsp;void</CODE></FONT></TD>
970 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setQueueExtentSize(int)">setQueueExtentSize</A></B>(int&nbsp;queueExtentSize)</CODE>
971
972 <BR>
973 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the size of the extents used to hold pages in a Queue database,
974 specified as a number of pages.</TD>
975 </TR>
976 <TR BGCOLOR="white" CLASS="TableRowColor">
977 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
978 <CODE>&nbsp;void</CODE></FONT></TD>
979 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setQueueInOrder(boolean)">setQueueInOrder</A></B>(boolean&nbsp;queueInOrder)</CODE>
980
981 <BR>
982 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure <A HREF="../../../com/sleepycat/db/Database.html#consume(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, boolean)"><CODE>Database.consume</CODE></A> to return key/data pairs in
983 order, always returning the key/data item from the head of the
984 queue.</TD>
985 </TR>
986 <TR BGCOLOR="white" CLASS="TableRowColor">
987 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
988 <CODE>&nbsp;void</CODE></FONT></TD>
989 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setReadOnly(boolean)">setReadOnly</A></B>(boolean&nbsp;readOnly)</CODE>
990
991 <BR>
992 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database in read-only mode.</TD>
993 </TR>
994 <TR BGCOLOR="white" CLASS="TableRowColor">
995 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
996 <CODE>&nbsp;void</CODE></FONT></TD>
997 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setReadUncommitted(boolean)">setReadUncommitted</A></B>(boolean&nbsp;readUncommitted)</CODE>
998
999 <BR>
1000 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database to support read uncommitted.</TD>
1001 </TR>
1002 <TR BGCOLOR="white" CLASS="TableRowColor">
1003 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1004 <CODE>&nbsp;void</CODE></FONT></TD>
1005 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setRecordDelimiter(int)">setRecordDelimiter</A></B>(int&nbsp;recordDelimiter)</CODE>
1006
1007 <BR>
1008 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the delimiting byte used to mark the end of a record in the backing
1009 source file for the Recno access method.</TD>
1010 </TR>
1011 <TR BGCOLOR="white" CLASS="TableRowColor">
1012 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1013 <CODE>&nbsp;void</CODE></FONT></TD>
1014 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setRecordLength(int)">setRecordLength</A></B>(int&nbsp;recordLength)</CODE>
1015
1016 <BR>
1017 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specify the database record length, in bytes.</TD>
1018 </TR>
1019 <TR BGCOLOR="white" CLASS="TableRowColor">
1020 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1021 <CODE>&nbsp;void</CODE></FONT></TD>
1022 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setRecordNumberAppender(com.sleepycat.db.RecordNumberAppender)">setRecordNumberAppender</A></B>(<A HREF="../../../com/sleepycat/db/RecordNumberAppender.html" title="interface in com.sleepycat.db">RecordNumberAppender</A>&nbsp;recnoAppender)</CODE>
1023
1024 <BR>
1025 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure <A HREF="../../../com/sleepycat/db/Database.html#append(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)"><CODE>Database.append</CODE></A> to call the function after the
1026 record number has been selected but before the data has been stored
1027 into the database.</TD>
1028 </TR>
1029 <TR BGCOLOR="white" CLASS="TableRowColor">
1030 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1031 <CODE>&nbsp;void</CODE></FONT></TD>
1032 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setRecordPad(int)">setRecordPad</A></B>(int&nbsp;recordPad)</CODE>
1033
1034 <BR>
1035 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the padding character for short, fixed-length records for the Queue
1036 and Recno access methods.</TD>
1037 </TR>
1038 <TR BGCOLOR="white" CLASS="TableRowColor">
1039 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1040 <CODE>&nbsp;void</CODE></FONT></TD>
1041 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setRecordSource(java.io.File)">setRecordSource</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;recordSource)</CODE>
1042
1043 <BR>
1044 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the underlying source file for the Recno access method.</TD>
1045 </TR>
1046 <TR BGCOLOR="white" CLASS="TableRowColor">
1047 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1048 <CODE>&nbsp;void</CODE></FONT></TD>
1049 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setRenumbering(boolean)">setRenumbering</A></B>(boolean&nbsp;renumbering)</CODE>
1050
1051 <BR>
1052 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the logical record numbers to be mutable, and change as
1053 records are added to and deleted from the database.</TD>
1054 </TR>
1055 <TR BGCOLOR="white" CLASS="TableRowColor">
1056 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1057 <CODE>&nbsp;void</CODE></FONT></TD>
1058 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setReverseSplitOff(boolean)">setReverseSplitOff</A></B>(boolean&nbsp;reverseSplitOff)</CODE>
1059
1060 <BR>
1061 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the Btree to not do reverse splits.</TD>
1062 </TR>
1063 <TR BGCOLOR="white" CLASS="TableRowColor">
1064 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1065 <CODE>&nbsp;void</CODE></FONT></TD>
1066 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setSnapshot(boolean)">setSnapshot</A></B>(boolean&nbsp;snapshot)</CODE>
1067
1068 <BR>
1069 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specify that any specified backing source file be read in its entirety
1070 when the database is opened.</TD>
1071 </TR>
1072 <TR BGCOLOR="white" CLASS="TableRowColor">
1073 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1074 <CODE>&nbsp;void</CODE></FONT></TD>
1075 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setSortedDuplicates(boolean)">setSortedDuplicates</A></B>(boolean&nbsp;sortedDuplicates)</CODE>
1076
1077 <BR>
1078 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database to support sorted, duplicate data items.</TD>
1079 </TR>
1080 <TR BGCOLOR="white" CLASS="TableRowColor">
1081 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1082 <CODE>&nbsp;void</CODE></FONT></TD>
1083 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setTransactional(boolean)">setTransactional</A></B>(boolean&nbsp;transactional)</CODE>
1084
1085 <BR>
1086 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enclose the database open within a transaction.</TD>
1087 </TR>
1088 <TR BGCOLOR="white" CLASS="TableRowColor">
1089 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1090 <CODE>&nbsp;void</CODE></FONT></TD>
1091 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setTransactionNotDurable(boolean)">setTransactionNotDurable</A></B>(boolean&nbsp;transactionNotDurable)</CODE>
1092
1093 <BR>
1094 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database environment to not write log records for this
1095 database.</TD>
1096 </TR>
1097 <TR BGCOLOR="white" CLASS="TableRowColor">
1098 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1099 <CODE>&nbsp;void</CODE></FONT></TD>
1100 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setTruncate(boolean)">setTruncate</A></B>(boolean&nbsp;truncate)</CODE>
1101
1102 <BR>
1103 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database to be physically truncated by truncating the
1104 underlying file, discarding all previous databases it might have
1105 held.</TD>
1106 </TR>
1107 <TR BGCOLOR="white" CLASS="TableRowColor">
1108 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1109 <CODE>&nbsp;void</CODE></FONT></TD>
1110 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setType(com.sleepycat.db.DatabaseType)">setType</A></B>(<A HREF="../../../com/sleepycat/db/DatabaseType.html" title="class in com.sleepycat.db">DatabaseType</A>&nbsp;type)</CODE>
1111
1112 <BR>
1113 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the type of the database.</TD>
1114 </TR>
1115 <TR BGCOLOR="white" CLASS="TableRowColor">
1116 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1117 <CODE>&nbsp;void</CODE></FONT></TD>
1118 <TD><CODE><B><A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setUnsortedDuplicates(boolean)">setUnsortedDuplicates</A></B>(boolean&nbsp;unsortedDuplicates)</CODE>
1119
1120 <BR>
1121 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Configure the database to support unsorted duplicate data items.</TD>
1122 </TR>
1123 </TABLE>
1124 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
1125 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1126 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
1127 <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>
1128 </TR>
1129 <TR BGCOLOR="white" CLASS="TableRowColor">
1130 <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>
1131 </TR>
1132 </TABLE>
1133 &nbsp;
1134 <P>
1135
1136 <!-- ============ FIELD DETAIL =========== -->
1137
1138 <A NAME="field_detail"><!-- --></A>
1139 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1140 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1141 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1142 <B>Field Detail</B></FONT></TH>
1143 </TR>
1144 </TABLE>
1145
1146 <A NAME="DEFAULT"><!-- --></A><H3>
1147 DEFAULT</H3>
1148 <PRE>
1149 public static final <A HREF="../../../com/sleepycat/db/DatabaseConfig.html" title="class in com.sleepycat.db">DatabaseConfig</A> <B>DEFAULT</B></PRE>
1150 <DL>
1151 <DD>An instance created using the default constructor is initialized
1152 with the system's default settings.
1153 <P>
1154 <DL>
1155 </DL>
1156 </DL>
1157
1158 <!-- ========= CONSTRUCTOR DETAIL ======== -->
1159
1160 <A NAME="constructor_detail"><!-- --></A>
1161 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1162 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1163 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1164 <B>Constructor Detail</B></FONT></TH>
1165 </TR>
1166 </TABLE>
1167
1168 <A NAME="DatabaseConfig()"><!-- --></A><H3>
1169 DatabaseConfig</H3>
1170 <PRE>
1171 public <B>DatabaseConfig</B>()</PRE>
1172 <DL>
1173 <DD>An instance created using the default constructor is initialized with
1174 the system's default settings.
1175 <P>
1176 </DL>
1177
1178 <!-- ============ METHOD DETAIL ========== -->
1179
1180 <A NAME="method_detail"><!-- --></A>
1181 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1182 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1183 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1184 <B>Method Detail</B></FONT></TH>
1185 </TR>
1186 </TABLE>
1187
1188 <A NAME="cloneConfig()"><!-- --></A><H3>
1189 cloneConfig</H3>
1190 <PRE>
1191 public <A HREF="../../../com/sleepycat/db/DatabaseConfig.html" title="class in com.sleepycat.db">DatabaseConfig</A> <B>cloneConfig</B>()</PRE>
1192 <DL>
1193 <DD>Returns a copy of this configuration object.
1194 <P>
1195 <DD><DL>
1196 </DL>
1197 </DD>
1198 <DD><DL>
1199 </DL>
1200 </DD>
1201 </DL>
1202 <HR>
1203
1204 <A NAME="setAllowCreate(boolean)"><!-- --></A><H3>
1205 setAllowCreate</H3>
1206 <PRE>
1207 public void <B>setAllowCreate</B>(boolean&nbsp;allowCreate)</PRE>
1208 <DL>
1209 <DD>Configure the <A HREF="../../../com/sleepycat/db/Environment.html#openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)"><CODE>Environment.openDatabase</CODE></A> method to create
1210 the database if it does not already exist.
1211 <p>
1212 <P>
1213 <DD><DL>
1214 </DL>
1215 </DD>
1216 <DD><DL>
1217 <DT><B>Parameters:</B><DD><CODE>allowCreate</CODE> - If true, configure the <A HREF="../../../com/sleepycat/db/Environment.html#openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)"><CODE>Environment.openDatabase</CODE></A> method to
1218 create the database if it does not already exist.</DL>
1219 </DD>
1220 </DL>
1221 <HR>
1222
1223 <A NAME="getAllowCreate()"><!-- --></A><H3>
1224 getAllowCreate</H3>
1225 <PRE>
1226 public boolean <B>getAllowCreate</B>()</PRE>
1227 <DL>
1228 <DD>Return true if the <A HREF="../../../com/sleepycat/db/Environment.html#openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)"><CODE>Environment.openDatabase</CODE></A> method is configured
1229 to create the database if it does not already exist.
1230 <p>
1231 This method may be called at any time during the life of the application.
1232 <p>
1233 <P>
1234 <DD><DL>
1235 </DL>
1236 </DD>
1237 <DD><DL>
1238
1239 <DT><B>Returns:</B><DD>True if the <A HREF="../../../com/sleepycat/db/Environment.html#openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)"><CODE>Environment.openDatabase</CODE></A> method is configured
1240 to create the database if it does not already exist.</DL>
1241 </DD>
1242 </DL>
1243 <HR>
1244
1245 <A NAME="setBtreeComparator(java.util.Comparator)"><!-- --></A><H3>
1246 setBtreeComparator</H3>
1247 <PRE>
1248 public void <B>setBtreeComparator</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A>&nbsp;btreeComparator)</PRE>
1249 <DL>
1250 <DD>By default, a byte by byte lexicographic comparison is used for
1251 btree keys. To customize the comparison, supply a different
1252 Comparator.
1253 <p>
1254 The <code>compare</code> method is passed the byte arrays representing
1255 keys that are stored in the database. If you know how your data is
1256 organized in the byte array, then you can write a comparison routine that
1257 directly examines the contents of the arrays. Otherwise, you have to
1258 reconstruct your original objects, and then perform the comparison.
1259 <P>
1260 <DD><DL>
1261 </DL>
1262 </DD>
1263 <DD><DL>
1264 </DL>
1265 </DD>
1266 </DL>
1267 <HR>
1268
1269 <A NAME="getBtreeComparator()"><!-- --></A><H3>
1270 getBtreeComparator</H3>
1271 <PRE>
1272 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A> <B>getBtreeComparator</B>()</PRE>
1273 <DL>
1274 <DD>Return the custom Comparator used for btree keys.
1275 <p>
1276 <P>
1277 <DD><DL>
1278 </DL>
1279 </DD>
1280 <DD><DL>
1281
1282 <DT><B>Returns:</B><DD>the custom Comparator used for btree keys, or null if the default
1283 comparison function will be used.</DL>
1284 </DD>
1285 </DL>
1286 <HR>
1287
1288 <A NAME="setBtreeMinKey(int)"><!-- --></A><H3>
1289 setBtreeMinKey</H3>
1290 <PRE>
1291 public void <B>setBtreeMinKey</B>(int&nbsp;btMinKey)</PRE>
1292 <DL>
1293 <DD>Set the minimum number of key/data pairs intended to be stored on any
1294 single Btree leaf page.
1295 <p>
1296 This value is used to determine if key or data items will be stored
1297 on overflow pages instead of Btree leaf pages. The value must be
1298 at least 2; if the value is not explicitly set, a value of 2 is used.
1299 <p>
1300 This method configures a database, not only operations performed using
1301 the specified <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle.
1302 <p>
1303 This method may not be called after the database is opened.
1304 If the database already exists when it is opened,
1305 the information specified to this method will be ignored.
1306 <p>
1307 <P>
1308 <DD><DL>
1309 </DL>
1310 </DD>
1311 <DD><DL>
1312 <DT><B>Parameters:</B><DD><CODE>btMinKey</CODE> - The minimum number of key/data pairs intended to be stored on any
1313 single Btree leaf page.</DL>
1314 </DD>
1315 </DL>
1316 <HR>
1317
1318 <A NAME="getBtreeMinKey()"><!-- --></A><H3>
1319 getBtreeMinKey</H3>
1320 <PRE>
1321 public int <B>getBtreeMinKey</B>()</PRE>
1322 <DL>
1323 <DD>Return the minimum number of key/data pairs intended to be stored
1324 on any single Btree leaf page.
1325 <p>
1326 This method may be called at any time during the life of the application.
1327 <p>
1328 <P>
1329 <DD><DL>
1330 </DL>
1331 </DD>
1332 <DD><DL>
1333
1334 <DT><B>Returns:</B><DD>The minimum number of key/data pairs intended to be stored
1335 on any single Btree leaf page.</DL>
1336 </DD>
1337 </DL>
1338 <HR>
1339
1340 <A NAME="setByteOrder(int)"><!-- --></A><H3>
1341 setByteOrder</H3>
1342 <PRE>
1343 public void <B>setByteOrder</B>(int&nbsp;byteOrder)</PRE>
1344 <DL>
1345 <DD>Set the byte order for integers in the stored database metadata.
1346 <p>
1347 The host byte order of the machine where the process is running will
1348 be used if no byte order is set.
1349 <p>
1350 <b>
1351 The access methods provide no guarantees about the byte ordering of the
1352 application data stored in the database, and applications are
1353 responsible for maintaining any necessary ordering.
1354 </b>
1355 <p>
1356 This method configures a database, not only operations performed using
1357 the specified <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle.
1358 <p>
1359 This method may not be called after the database is opened.
1360 If the database already exists when it is opened,
1361 the information specified to this method will be ignored.
1362 If creating additional databases in a single physical file, information
1363 specified to this method will be ignored and the byte order of the
1364 existing databases will be used.
1365 <p>
1366 <P>
1367 <DD><DL>
1368 </DL>
1369 </DD>
1370 <DD><DL>
1371 <DT><B>Parameters:</B><DD><CODE>byteOrder</CODE> - The byte order as an integer; for example, big endian order is the
1372 number 4,321, and little endian order is the number 1,234.</DL>
1373 </DD>
1374 </DL>
1375 <HR>
1376
1377 <A NAME="getByteOrder()"><!-- --></A><H3>
1378 getByteOrder</H3>
1379 <PRE>
1380 public int <B>getByteOrder</B>()</PRE>
1381 <DL>
1382 <DD>Return the database byte order; a byte order of 4,321 indicates a
1383 big endian order, and a byte order of 1,234 indicates a little
1384 endian order.
1385 <p>
1386 This method may be called at any time during the life of the application.
1387 <p>
1388 <P>
1389 <DD><DL>
1390 </DL>
1391 </DD>
1392 <DD><DL>
1393
1394 <DT><B>Returns:</B><DD>The database byte order; a byte order of 4,321 indicates a
1395 big endian order, and a byte order of 1,234 indicates a little
1396 endian order.</DL>
1397 </DD>
1398 </DL>
1399 <HR>
1400
1401 <A NAME="getByteSwapped()"><!-- --></A><H3>
1402 getByteSwapped</H3>
1403 <PRE>
1404 public boolean <B>getByteSwapped</B>()</PRE>
1405 <DL>
1406 <DD>Return if the underlying database files were created on an architecture
1407 of the same byte order as the current one.
1408 <p>
1409 This information may be used to determine whether application data
1410 needs to be adjusted for this architecture or not.
1411 <p>
1412 This method may not be called before the
1413 database has been opened.
1414 <p>
1415 <P>
1416 <DD><DL>
1417 </DL>
1418 </DD>
1419 <DD><DL>
1420
1421 <DT><B>Returns:</B><DD>Return false if the underlying database files were created on an
1422 architecture of the same byte order as the current one, and true if
1423 they were not (that is, big-endian on a little-endian machine, or
1424 vice versa).</DL>
1425 </DD>
1426 </DL>
1427 <HR>
1428
1429 <A NAME="setBtreeCompressor(com.sleepycat.db.BtreeCompressor)"><!-- --></A><H3>
1430 setBtreeCompressor</H3>
1431 <PRE>
1432 public void <B>setBtreeCompressor</B>(<A HREF="../../../com/sleepycat/db/BtreeCompressor.html" title="interface in com.sleepycat.db">BtreeCompressor</A>&nbsp;btreeCompressor)</PRE>
1433 <DL>
1434 <DD>Set the Btree compression callbacks.
1435 <P>
1436 <DD><DL>
1437 </DL>
1438 </DD>
1439 <DD><DL>
1440 </DL>
1441 </DD>
1442 </DL>
1443 <HR>
1444
1445 <A NAME="getBtreeCompressor()"><!-- --></A><H3>
1446 getBtreeCompressor</H3>
1447 <PRE>
1448 public <A HREF="../../../com/sleepycat/db/BtreeCompressor.html" title="interface in com.sleepycat.db">BtreeCompressor</A> <B>getBtreeCompressor</B>()</PRE>
1449 <DL>
1450 <DD>Get the Btree compression callbacks.
1451 <P>
1452 <DD><DL>
1453 </DL>
1454 </DD>
1455 <DD><DL>
1456 </DL>
1457 </DD>
1458 </DL>
1459 <HR>
1460
1461 <A NAME="setBtreePrefixCalculator(com.sleepycat.db.BtreePrefixCalculator)"><!-- --></A><H3>
1462 setBtreePrefixCalculator</H3>
1463 <PRE>
1464 public void <B>setBtreePrefixCalculator</B>(<A HREF="../../../com/sleepycat/db/BtreePrefixCalculator.html" title="interface in com.sleepycat.db">BtreePrefixCalculator</A>&nbsp;btreePrefixCalculator)</PRE>
1465 <DL>
1466 <DD>Set the Btree prefix callback. The prefix callback is used to determine
1467 the amount by which keys stored on the Btree internal pages can be
1468 safely truncated without losing their uniqueness. See the
1469 <a href="../../../../programmer_reference/bt_conf.html#am_conf_bt_prefix" target="_top">Btree prefix
1470 comparison</a> section of the Berkeley DB Reference Guide for more
1471 details about how this works. The usefulness of this is data-dependent,
1472 but can produce significantly reduced tree sizes and search times in
1473 some data sets.
1474 <p>
1475 If no prefix callback or key comparison callback is specified by the
1476 application, a default lexical comparison function is used to calculate
1477 prefixes. If no prefix callback is specified and a key comparison
1478 callback is specified, no prefix function is used. It is an error to
1479 specify a prefix function without also specifying a Btree key comparison
1480 function.
1481 <P>
1482 <DD><DL>
1483 </DL>
1484 </DD>
1485 <DD><DL>
1486 </DL>
1487 </DD>
1488 </DL>
1489 <HR>
1490
1491 <A NAME="getBtreePrefixCalculator()"><!-- --></A><H3>
1492 getBtreePrefixCalculator</H3>
1493 <PRE>
1494 public <A HREF="../../../com/sleepycat/db/BtreePrefixCalculator.html" title="interface in com.sleepycat.db">BtreePrefixCalculator</A> <B>getBtreePrefixCalculator</B>()</PRE>
1495 <DL>
1496 <DD>Return the Btree prefix callback.
1497 <p>
1498 This method may be called at any time during the life of the application.
1499 <p>
1500 <P>
1501 <DD><DL>
1502 </DL>
1503 </DD>
1504 <DD><DL>
1505
1506 <DT><B>Returns:</B><DD>The Btree prefix callback.</DL>
1507 </DD>
1508 </DL>
1509 <HR>
1510
1511 <A NAME="setCacheSize(long)"><!-- --></A><H3>
1512 setCacheSize</H3>
1513 <PRE>
1514 public void <B>setCacheSize</B>(long&nbsp;cacheSize)</PRE>
1515 <DL>
1516 <DD>Set the size of the shared memory buffer pool, that is, the size of the
1517 cache.
1518 <p>
1519 The cache should be the size of the normal working data set of the
1520 application, with some small amount of additional memory for unusual
1521 situations. (Note: the working set is not the same as the number of
1522 pages accessed simultaneously, and is usually much larger.)
1523 <p>
1524 The default cache size is 256KB, and may not be specified as less than
1525 20KB. Any cache size less than 500MB is automatically increased by 25%
1526 to account for buffer pool overhead; cache sizes larger than 500MB are
1527 used as specified. The current maximum size of a single cache is 4GB.
1528 (All sizes are in powers-of-two, that is, 256KB is 2^18 not 256,000.)
1529 <p>
1530 Because databases opened within database environments use the cache
1531 specified to the environment, it is an error to attempt to configure a
1532 cache size in a database created within an environment.
1533 <p>
1534 This method may not be called after the database is opened.
1535 <p>
1536 This method may be called at any time during the life of the application.
1537 <p>
1538 <P>
1539 <DD><DL>
1540 </DL>
1541 </DD>
1542 <DD><DL>
1543 <DT><B>Parameters:</B><DD><CODE>cacheSize</CODE> - The size of the shared memory buffer pool, that is, the size of the
1544 cache.
1545 <p>
1546 <p>
1547 <DT><B>Throws:</B>
1548 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1549 </DD>
1550 </DL>
1551 <HR>
1552
1553 <A NAME="getCacheSize()"><!-- --></A><H3>
1554 getCacheSize</H3>
1555 <PRE>
1556 public long <B>getCacheSize</B>()</PRE>
1557 <DL>
1558 <DD>Return the size of the shared memory buffer pool, that is, the cache.
1559 <p>
1560 This method may be called at any time during the life of the application.
1561 <p>
1562 <P>
1563 <DD><DL>
1564 </DL>
1565 </DD>
1566 <DD><DL>
1567
1568 <DT><B>Returns:</B><DD>The size of the shared memory buffer pool, that is, the cache.</DL>
1569 </DD>
1570 </DL>
1571 <HR>
1572
1573 <A NAME="setCreateDir(java.io.File)"><!-- --></A><H3>
1574 setCreateDir</H3>
1575 <PRE>
1576 public void <B>setCreateDir</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;createDir)</PRE>
1577 <DL>
1578 <DD>Specify which directory a database should be created in or looked for.
1579 <p>
1580 <P>
1581 <DD><DL>
1582 </DL>
1583 </DD>
1584 <DD><DL>
1585 <DT><B>Parameters:</B><DD><CODE>createDir</CODE> - The directory will be used to create or locate the database file specified in
1586 the openDatabase method call. The directory must be one of the directories
1587 in the environment list specified by EnvironmentConfig.addDataDirectory.
1588 <p>
1589 <p>
1590 <DT><B>Throws:</B>
1591 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1592 </DD>
1593 </DL>
1594 <HR>
1595
1596 <A NAME="getCreateDir()"><!-- --></A><H3>
1597 getCreateDir</H3>
1598 <PRE>
1599 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>getCreateDir</B>()</PRE>
1600 <DL>
1601 <DD>Return the directory a database will/has been created in or looked for.
1602 <p>
1603 This method may be called at any time during the life of the application.
1604 <p>
1605 <P>
1606 <DD><DL>
1607 </DL>
1608 </DD>
1609 <DD><DL>
1610
1611 <DT><B>Returns:</B><DD>The directory a database will/has been created in or looked for.</DL>
1612 </DD>
1613 </DL>
1614 <HR>
1615
1616 <A NAME="setCacheCount(int)"><!-- --></A><H3>
1617 setCacheCount</H3>
1618 <PRE>
1619 public void <B>setCacheCount</B>(int&nbsp;cacheCount)</PRE>
1620 <DL>
1621 <DD>Set the number of shared memory buffer pools, that is, the number of
1622 caches.
1623 <p>
1624 It is possible to specify caches larger than 4GB and/or large enough
1625 they cannot be allocated contiguously on some architectures. For
1626 example, some releases of Solaris limit the amount of memory that may
1627 be allocated contiguously by a process. This method allows applications
1628 to break the cache broken up into a number of equally sized, separate
1629 pieces of memory.
1630 <p>
1631 <p>
1632 Because databases opened within database environments use the cache
1633 specified to the environment, it is an error to attempt to configure
1634 multiple caches in a database created within an environment.
1635 <p>
1636 This method may not be called after the database is opened.
1637 <p>
1638 This method may be called at any time during the life of the application.
1639 <p>
1640 <P>
1641 <DD><DL>
1642 </DL>
1643 </DD>
1644 <DD><DL>
1645 <DT><B>Parameters:</B><DD><CODE>cacheCount</CODE> - The number of shared memory buffer pools, that is, the number of caches.
1646 <p>
1647 <p>
1648 <DT><B>Throws:</B>
1649 <DD><CODE><A HREF="../../../com/sleepycat/db/DatabaseException.html" title="class in com.sleepycat.db">DatabaseException</A></CODE> - if a failure occurs.</DL>
1650 </DD>
1651 </DL>
1652 <HR>
1653
1654 <A NAME="getCacheCount()"><!-- --></A><H3>
1655 getCacheCount</H3>
1656 <PRE>
1657 public int <B>getCacheCount</B>()</PRE>
1658 <DL>
1659 <DD>Return the number of shared memory buffer pools, that is, the number
1660 of caches.
1661 <p>
1662 This method may be called at any time during the life of the application.
1663 <p>
1664 <P>
1665 <DD><DL>
1666 </DL>
1667 </DD>
1668 <DD><DL>
1669
1670 <DT><B>Returns:</B><DD>The number of shared memory buffer pools, that is, the number
1671 of caches.</DL>
1672 </DD>
1673 </DL>
1674 <HR>
1675
1676 <A NAME="setChecksum(boolean)"><!-- --></A><H3>
1677 setChecksum</H3>
1678 <PRE>
1679 public void <B>setChecksum</B>(boolean&nbsp;checksum)</PRE>
1680 <DL>
1681 <DD>Configure the database environment to do checksum verification of
1682 pages read into the cache from the backing filestore.
1683 <p>
1684 Berkeley DB uses the SHA1 Secure Hash Algorithm if encryption is
1685 also configured for this database, and a general hash algorithm if
1686 it is not.
1687 <p>
1688 Calling this method only affects the specified <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle
1689 (and any other library handles opened within the scope of that handle).
1690 <p>
1691 If the database already exists when the database is opened, any database
1692 configuration specified by this method
1693 will be ignored.
1694 If creating additional databases in a file, the checksum behavior
1695 specified must be consistent with the existing databases in the file or
1696 an error will be returned.
1697 <p>
1698 <P>
1699 <DD><DL>
1700 </DL>
1701 </DD>
1702 <DD><DL>
1703 <DT><B>Parameters:</B><DD><CODE>checksum</CODE> - If true, configure the database environment to do checksum verification
1704 of pages read into the cache from the backing filestore.
1705 A value of false is illegal to this method, that is, once set, the
1706 configuration cannot be cleared.</DL>
1707 </DD>
1708 </DL>
1709 <HR>
1710
1711 <A NAME="getChecksum()"><!-- --></A><H3>
1712 getChecksum</H3>
1713 <PRE>
1714 public boolean <B>getChecksum</B>()</PRE>
1715 <DL>
1716 <DD>Return true if the database environment is configured to do checksum
1717 verification of pages read into the cache from the backing
1718 filestore.
1719 <p>
1720 This method may be called at any time during the life of the application.
1721 <p>
1722 <P>
1723 <DD><DL>
1724 </DL>
1725 </DD>
1726 <DD><DL>
1727
1728 <DT><B>Returns:</B><DD>True if the database environment is configured to do checksum
1729 verification of pages read into the cache from the backing
1730 filestore.</DL>
1731 </DD>
1732 </DL>
1733 <HR>
1734
1735 <A NAME="setReadUncommitted(boolean)"><!-- --></A><H3>
1736 setReadUncommitted</H3>
1737 <PRE>
1738 public void <B>setReadUncommitted</B>(boolean&nbsp;readUncommitted)</PRE>
1739 <DL>
1740 <DD>Configure the database to support read uncommitted.
1741 <p>
1742 Read operations on the database may request the return of modified
1743 but not yet committed data. This flag must be specified on all
1744 <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handles used to perform read uncommitted or database
1745 updates, otherwise requests for read uncommitted may not be honored and
1746 the read may block.
1747 <p>
1748 <P>
1749 <DD><DL>
1750 </DL>
1751 </DD>
1752 <DD><DL>
1753 <DT><B>Parameters:</B><DD><CODE>readUncommitted</CODE> - If true, configure the database to support read uncommitted.</DL>
1754 </DD>
1755 </DL>
1756 <HR>
1757
1758 <A NAME="getReadUncommitted()"><!-- --></A><H3>
1759 getReadUncommitted</H3>
1760 <PRE>
1761 public boolean <B>getReadUncommitted</B>()</PRE>
1762 <DL>
1763 <DD>Return true if the database is configured to support read uncommitted.
1764 <p>
1765 This method may be called at any time during the life of the application.
1766 <p>
1767 <P>
1768 <DD><DL>
1769 </DL>
1770 </DD>
1771 <DD><DL>
1772
1773 <DT><B>Returns:</B><DD>True if the database is configured to support read uncommitted.</DL>
1774 </DD>
1775 </DL>
1776 <HR>
1777
1778 <A NAME="setDirtyRead(boolean)"><!-- --></A><H3>
1779 setDirtyRead</H3>
1780 <PRE>
1781 public void <B>setDirtyRead</B>(boolean&nbsp;dirtyRead)</PRE>
1782 <DL>
1783 <DD><B>Deprecated.</B>&nbsp;<I>This has been replaced by <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setReadUncommitted(boolean)"><CODE>setReadUncommitted(boolean)</CODE></A> to conform to ANSI
1784 database isolation terminology.</I>
1785 <P>
1786 <DD>Configure the database to support read uncommitted.
1787 <p>
1788 Read operations on the database may request the return of modified
1789 but not yet committed data. This flag must be specified on all
1790 <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handles used to perform read uncommitted or database
1791 updates, otherwise requests for read uncommitted may not be honored and
1792 the read may block.
1793 <p>
1794 <P>
1795 <DD><DL>
1796 </DL>
1797 </DD>
1798 <DD><DL>
1799 <DT><B>Parameters:</B><DD><CODE>dirtyRead</CODE> - If true, configure the database to support read uncommitted.
1800 <p></DL>
1801 </DD>
1802 </DL>
1803 <HR>
1804
1805 <A NAME="getDirtyRead()"><!-- --></A><H3>
1806 getDirtyRead</H3>
1807 <PRE>
1808 public boolean <B>getDirtyRead</B>()</PRE>
1809 <DL>
1810 <DD><B>Deprecated.</B>&nbsp;<I>This has been replaced by <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#getReadUncommitted()"><CODE>getReadUncommitted()</CODE></A> to conform to ANSI
1811 database isolation terminology.</I>
1812 <P>
1813 <DD>Return true if the database is configured to support read uncommitted.
1814 <p>
1815 This method may be called at any time during the life of the application.
1816 <p>
1817 <P>
1818 <DD><DL>
1819 </DL>
1820 </DD>
1821 <DD><DL>
1822
1823 <DT><B>Returns:</B><DD>True if the database is configured to support read uncommitted.
1824 <p></DL>
1825 </DD>
1826 </DL>
1827 <HR>
1828
1829 <A NAME="setDuplicateComparator(java.util.Comparator)"><!-- --></A><H3>
1830 setDuplicateComparator</H3>
1831 <PRE>
1832 public void <B>setDuplicateComparator</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A>&nbsp;duplicateComparator)</PRE>
1833 <DL>
1834 <DD>Set the duplicate data item comparison callback. The comparison
1835 function is called whenever it is necessary to compare a data item
1836 specified by the application with a data item currently stored in the
1837 database. This comparator is only used if
1838 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setSortedDuplicates(boolean)"><CODE>DatabaseConfig.setSortedDuplicates</CODE></A> is also configured.
1839 <p>
1840 If no comparison function is specified, the data items are compared
1841 lexically, with shorter data items collating before longer data items.
1842 <p>
1843 The <code>compare</code> method is passed the byte arrays representing
1844 data items in the database. If you know how your data is organized in
1845 the byte array, then you can write a comparison routine that directly
1846 examines the contents of the arrays. Otherwise, you have to
1847 reconstruct your original objects, and then perform the comparison.
1848 <p>
1849 <P>
1850 <DD><DL>
1851 </DL>
1852 </DD>
1853 <DD><DL>
1854 <DT><B>Parameters:</B><DD><CODE>duplicateComparator</CODE> - the comparison callback for duplicate data items.</DL>
1855 </DD>
1856 </DL>
1857 <HR>
1858
1859 <A NAME="getDuplicateComparator()"><!-- --></A><H3>
1860 getDuplicateComparator</H3>
1861 <PRE>
1862 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A> <B>getDuplicateComparator</B>()</PRE>
1863 <DL>
1864 <DD>Return the duplicate data item comparison callback.
1865 <p>
1866 <P>
1867 <DD><DL>
1868 </DL>
1869 </DD>
1870 <DD><DL>
1871
1872 <DT><B>Returns:</B><DD>the duplicate data item Comparator, or null if the default Comparator
1873 will be used.</DL>
1874 </DD>
1875 </DL>
1876 <HR>
1877
1878 <A NAME="setEncrypted(java.lang.String)"><!-- --></A><H3>
1879 setEncrypted</H3>
1880 <PRE>
1881 public void <B>setEncrypted</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;password)</PRE>
1882 <DL>
1883 <DD>Set the password used to perform encryption and decryption.
1884 <p>
1885 Because databases opened within environments use the password
1886 specified to the environment, it is an error to attempt to set a
1887 password in a database created within an environment.
1888 <p>
1889 Berkeley DB uses the Rijndael/AES (also known as the Advanced
1890 Encryption Standard and Federal Information Processing
1891 Standard (FIPS) 197) algorithm for encryption or decryption.
1892 <P>
1893 <DD><DL>
1894 </DL>
1895 </DD>
1896 <DD><DL>
1897 </DL>
1898 </DD>
1899 </DL>
1900 <HR>
1901
1902 <A NAME="getEncrypted()"><!-- --></A><H3>
1903 getEncrypted</H3>
1904 <PRE>
1905 public boolean <B>getEncrypted</B>()</PRE>
1906 <DL>
1907 <DD>Return true if the database has been configured to perform encryption.
1908 <p>
1909 This method may be called at any time during the life of the application.
1910 <p>
1911 <P>
1912 <DD><DL>
1913 </DL>
1914 </DD>
1915 <DD><DL>
1916
1917 <DT><B>Returns:</B><DD>True if the database has been configured to perform encryption.</DL>
1918 </DD>
1919 </DL>
1920 <HR>
1921
1922 <A NAME="setErrorHandler(com.sleepycat.db.ErrorHandler)"><!-- --></A><H3>
1923 setErrorHandler</H3>
1924 <PRE>
1925 public void <B>setErrorHandler</B>(<A HREF="../../../com/sleepycat/db/ErrorHandler.html" title="interface in com.sleepycat.db">ErrorHandler</A>&nbsp;errorHandler)</PRE>
1926 <DL>
1927 <DD>Set the function to be called if an error occurs.
1928 <p>
1929 When an error occurs in the Berkeley DB library, an exception is thrown.
1930 In some cases, however, the error information returned to the
1931 application may be insufficient to completely describe the cause of the
1932 error, especially during initial application debugging.
1933 <p>
1934 The <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorHandler(com.sleepycat.db.ErrorHandler)"><CODE>EnvironmentConfig.setErrorHandler</CODE></A> and <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setErrorHandler(com.sleepycat.db.ErrorHandler)"><CODE>DatabaseConfig.setErrorHandler</CODE></A> methods are used to enhance the mechanism for reporting
1935 error messages to the application. In some cases, when an error occurs,
1936 Berkeley DB will invoke the ErrorHandler's object error method. It is
1937 up to this method to display the error message in an appropriate manner.
1938 <p>
1939 Alternatively, applications can use <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorStream(java.io.OutputStream)"><CODE>EnvironmentConfig.setErrorStream</CODE></A> and <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setErrorStream(java.io.OutputStream)"><CODE>DatabaseConfig.setErrorStream</CODE></A> to
1940 display the additional information via an output stream. Applications
1941 should not mix these approaches.
1942 <p>
1943 This error-logging enhancement does not slow performance or significantly
1944 increase application size, and may be run during normal operation as well
1945 as during application debugging.
1946 <p>
1947 For <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handles opened inside of database environments,
1948 calling this method affects the entire environment and is equivalent to
1949 calling <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorHandler(com.sleepycat.db.ErrorHandler)"><CODE>EnvironmentConfig.setErrorHandler</CODE></A>.
1950 <p>
1951 This method may be called at any time during the life of the application.
1952 <p>
1953 <P>
1954 <DD><DL>
1955 </DL>
1956 </DD>
1957 <DD><DL>
1958 <DT><B>Parameters:</B><DD><CODE>errorHandler</CODE> - The function to be called if an error occurs.</DL>
1959 </DD>
1960 </DL>
1961 <HR>
1962
1963 <A NAME="getErrorHandler()"><!-- --></A><H3>
1964 getErrorHandler</H3>
1965 <PRE>
1966 public <A HREF="../../../com/sleepycat/db/ErrorHandler.html" title="interface in com.sleepycat.db">ErrorHandler</A> <B>getErrorHandler</B>()</PRE>
1967 <DL>
1968 <DD>Return the function to be called if an error occurs.
1969 <p>
1970 This method may be called at any time during the life of the application.
1971 <p>
1972 <P>
1973 <DD><DL>
1974 </DL>
1975 </DD>
1976 <DD><DL>
1977
1978 <DT><B>Returns:</B><DD>The function to be called if an error occurs.</DL>
1979 </DD>
1980 </DL>
1981 <HR>
1982
1983 <A NAME="setErrorPrefix(java.lang.String)"><!-- --></A><H3>
1984 setErrorPrefix</H3>
1985 <PRE>
1986 public void <B>setErrorPrefix</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;errorPrefix)</PRE>
1987 <DL>
1988 <DD>Set the prefix string that appears before error messages.
1989 <p>
1990 For <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handles opened inside of database environments,
1991 calling this method affects the entire environment and is equivalent to
1992 calling <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorPrefix(java.lang.String)"><CODE>EnvironmentConfig.setErrorPrefix</CODE></A>.
1993 <p>
1994 This method may be called at any time during the life of the application.
1995 <p>
1996 <P>
1997 <DD><DL>
1998 </DL>
1999 </DD>
2000 <DD><DL>
2001 <DT><B>Parameters:</B><DD><CODE>errorPrefix</CODE> - The prefix string that appears before error messages.</DL>
2002 </DD>
2003 </DL>
2004 <HR>
2005
2006 <A NAME="getErrorPrefix()"><!-- --></A><H3>
2007 getErrorPrefix</H3>
2008 <PRE>
2009 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getErrorPrefix</B>()</PRE>
2010 <DL>
2011 <DD>Return the prefix string that appears before error messages.
2012 <p>
2013 This method may be called at any time during the life of the application.
2014 <p>
2015 <P>
2016 <DD><DL>
2017 </DL>
2018 </DD>
2019 <DD><DL>
2020
2021 <DT><B>Returns:</B><DD>The prefix string that appears before error messages.</DL>
2022 </DD>
2023 </DL>
2024 <HR>
2025
2026 <A NAME="setErrorStream(java.io.OutputStream)"><!-- --></A><H3>
2027 setErrorStream</H3>
2028 <PRE>
2029 public void <B>setErrorStream</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;errorStream)</PRE>
2030 <DL>
2031 <DD>Set an OutputStream for displaying error messages.
2032 <p>
2033 When an error occurs in the Berkeley DB library, an exception is thrown.
2034 In some cases, however, the error information returned to the
2035 application may be insufficient to completely describe the cause of the
2036 error, especially during initial application debugging.
2037 <p>
2038 The <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorStream(java.io.OutputStream)"><CODE>EnvironmentConfig.setErrorStream</CODE></A> and
2039 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setErrorStream(java.io.OutputStream)"><CODE>DatabaseConfig.setErrorStream</CODE></A> methods are used to enhance
2040 the mechanism for reporting error messages to the application by setting
2041 a OutputStream to be used for displaying additional Berkeley DB error
2042 messages. In some cases, when an error occurs, Berkeley DB will output
2043 an additional error message to the specified stream.
2044 <p>
2045 The error message will consist of the prefix string and a colon
2046 ("<b>:</b>") (if a prefix string was previously specified using
2047 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorPrefix(java.lang.String)"><CODE>EnvironmentConfig.setErrorPrefix</CODE></A> or <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setErrorPrefix(java.lang.String)"><CODE>DatabaseConfig.setErrorPrefix</CODE></A>), an error string, and a trailing newline character.
2048 <p>
2049 Setting errorStream to null unconfigures the interface.
2050 <p>
2051 Alternatively, applications can use <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setErrorHandler(com.sleepycat.db.ErrorHandler)"><CODE>EnvironmentConfig.setErrorHandler</CODE></A> and <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setErrorHandler(com.sleepycat.db.ErrorHandler)"><CODE>DatabaseConfig.setErrorHandler</CODE></A> to capture
2052 the additional error information in a way that does not use output
2053 streams. Applications should not mix these approaches.
2054 <p>
2055 This error-logging enhancement does not slow performance or significantly
2056 increase application size, and may be run during normal operation as well
2057 as during application debugging.
2058 <p>
2059 This method may be called at any time during the life of the application.
2060 <p>
2061 <P>
2062 <DD><DL>
2063 </DL>
2064 </DD>
2065 <DD><DL>
2066 <DT><B>Parameters:</B><DD><CODE>errorStream</CODE> - The application-specified OutputStream for error messages.</DL>
2067 </DD>
2068 </DL>
2069 <HR>
2070
2071 <A NAME="getErrorStream()"><!-- --></A><H3>
2072 getErrorStream</H3>
2073 <PRE>
2074 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> <B>getErrorStream</B>()</PRE>
2075 <DL>
2076 <DD>Return the an OutputStream for displaying error messages.
2077 <p>
2078 This method may be called at any time during the life of the application.
2079 <p>
2080 <P>
2081 <DD><DL>
2082 </DL>
2083 </DD>
2084 <DD><DL>
2085
2086 <DT><B>Returns:</B><DD>The an OutputStream for displaying error messages.</DL>
2087 </DD>
2088 </DL>
2089 <HR>
2090
2091 <A NAME="setExclusiveCreate(boolean)"><!-- --></A><H3>
2092 setExclusiveCreate</H3>
2093 <PRE>
2094 public void <B>setExclusiveCreate</B>(boolean&nbsp;exclusiveCreate)</PRE>
2095 <DL>
2096 <DD>Configure the <A HREF="../../../com/sleepycat/db/Environment.html#openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)"><CODE>Environment.openDatabase</CODE></A> method to fail if
2097 the database already exists.
2098 <p>
2099 The exclusiveCreate mode is only meaningful if specified with the
2100 allowCreate mode.
2101 <p>
2102 <P>
2103 <DD><DL>
2104 </DL>
2105 </DD>
2106 <DD><DL>
2107 <DT><B>Parameters:</B><DD><CODE>exclusiveCreate</CODE> - If true, configure the <A HREF="../../../com/sleepycat/db/Environment.html#openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)"><CODE>Environment.openDatabase</CODE></A> method to
2108 fail if the database already exists.</DL>
2109 </DD>
2110 </DL>
2111 <HR>
2112
2113 <A NAME="getExclusiveCreate()"><!-- --></A><H3>
2114 getExclusiveCreate</H3>
2115 <PRE>
2116 public boolean <B>getExclusiveCreate</B>()</PRE>
2117 <DL>
2118 <DD>Return true if the <A HREF="../../../com/sleepycat/db/Environment.html#openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)"><CODE>Environment.openDatabase</CODE></A> method is configured
2119 to fail if the database already exists.
2120 <p>
2121 This method may be called at any time during the life of the application.
2122 <p>
2123 <P>
2124 <DD><DL>
2125 </DL>
2126 </DD>
2127 <DD><DL>
2128
2129 <DT><B>Returns:</B><DD>True if the <A HREF="../../../com/sleepycat/db/Environment.html#openDatabase(com.sleepycat.db.Transaction, java.lang.String, java.lang.String, com.sleepycat.db.DatabaseConfig)"><CODE>Environment.openDatabase</CODE></A> method is configured
2130 to fail if the database already exists.</DL>
2131 </DD>
2132 </DL>
2133 <HR>
2134
2135 <A NAME="setFeedbackHandler(com.sleepycat.db.FeedbackHandler)"><!-- --></A><H3>
2136 setFeedbackHandler</H3>
2137 <PRE>
2138 public void <B>setFeedbackHandler</B>(<A HREF="../../../com/sleepycat/db/FeedbackHandler.html" title="interface in com.sleepycat.db">FeedbackHandler</A>&nbsp;feedbackHandler)</PRE>
2139 <DL>
2140 <DD>Set an object whose methods are called to provide feedback.
2141 <p>
2142 Some operations performed by the Berkeley DB library can take
2143 non-trivial amounts of time. This method can be used by applications
2144 to monitor progress within these operations. When an operation is
2145 likely to take a long time, Berkeley DB will call the object's methods
2146 with progress information.
2147 <p>
2148 It is up to the object's methods to display this information in an
2149 appropriate manner.
2150 <p>
2151 This method configures only operations performed using a single a
2152 <A HREF="../../../com/sleepycat/db/Environment.html" title="class in com.sleepycat.db"><CODE>Environment</CODE></A> handle
2153 <p>
2154 This method may be called at any time during the life of the application.
2155 <p>
2156 <P>
2157 <DD><DL>
2158 </DL>
2159 </DD>
2160 <DD><DL>
2161 <DT><B>Parameters:</B><DD><CODE>feedbackHandler</CODE> - An object whose methods are called to provide feedback.</DL>
2162 </DD>
2163 </DL>
2164 <HR>
2165
2166 <A NAME="getFeedbackHandler()"><!-- --></A><H3>
2167 getFeedbackHandler</H3>
2168 <PRE>
2169 public <A HREF="../../../com/sleepycat/db/FeedbackHandler.html" title="interface in com.sleepycat.db">FeedbackHandler</A> <B>getFeedbackHandler</B>()</PRE>
2170 <DL>
2171 <DD>Return the object's methods to be called to provide feedback.
2172 <p>
2173 This method may be called at any time during the life of the application.
2174 <p>
2175 <P>
2176 <DD><DL>
2177 </DL>
2178 </DD>
2179 <DD><DL>
2180
2181 <DT><B>Returns:</B><DD>The object's methods to be called to provide feedback.</DL>
2182 </DD>
2183 </DL>
2184 <HR>
2185
2186 <A NAME="setHashFillFactor(int)"><!-- --></A><H3>
2187 setHashFillFactor</H3>
2188 <PRE>
2189 public void <B>setHashFillFactor</B>(int&nbsp;hashFillFactor)</PRE>
2190 <DL>
2191 <DD>Set the desired density within the hash table.
2192 <p>
2193 If no value is specified, the fill factor will be selected dynamically
2194 as pages are filled.
2195 <p>
2196 The density is an approximation of the number of keys allowed to
2197 accumulate in any one bucket, determining when the hash table grows or
2198 shrinks. If you know the average sizes of the keys and data in your
2199 data set, setting the fill factor can enhance performance. A reasonable
2200 rule computing fill factor is to set it to the following:
2201 <blockquote><pre>
2202 (pagesize - 32) / (average_key_size + average_data_size + 8)
2203 </pre></blockquote>
2204 <p>
2205 This method configures a database, not only operations performed using
2206 the specified <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle.
2207 <p>
2208 This method may not be called after the database is opened.
2209 If the database already exists when it is opened,
2210 the information specified to this method will be ignored.
2211 <p>
2212 <P>
2213 <DD><DL>
2214 </DL>
2215 </DD>
2216 <DD><DL>
2217 <DT><B>Parameters:</B><DD><CODE>hashFillFactor</CODE> - The desired density within the hash table.</DL>
2218 </DD>
2219 </DL>
2220 <HR>
2221
2222 <A NAME="getHashFillFactor()"><!-- --></A><H3>
2223 getHashFillFactor</H3>
2224 <PRE>
2225 public int <B>getHashFillFactor</B>()</PRE>
2226 <DL>
2227 <DD>Return the hash table density.
2228 <p>
2229 This method may be called at any time during the life of the application.
2230 <p>
2231 <P>
2232 <DD><DL>
2233 </DL>
2234 </DD>
2235 <DD><DL>
2236
2237 <DT><B>Returns:</B><DD>The hash table density.</DL>
2238 </DD>
2239 </DL>
2240 <HR>
2241
2242 <A NAME="setHashComparator(java.util.Comparator)"><!-- --></A><H3>
2243 setHashComparator</H3>
2244 <PRE>
2245 public void <B>setHashComparator</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A>&nbsp;hashComparator)</PRE>
2246 <DL>
2247 <DD>Set the Hash key comparison function. The comparison function is called
2248 whenever it is necessary to compare a key specified by the application with
2249 a key currently stored in the database.
2250 <p>
2251 If no comparison function is specified, a byte-by-byte comparison is
2252 performed.
2253 <p>
2254 The <code>compare</code> method is passed the byte arrays representing
2255 keys that are stored in the database. If you know how your data is
2256 organized in the byte array, then you can write a comparison routine that
2257 directly examines the contents of the arrays. Otherwise, you have to
2258 reconstruct your original objects, and then perform the comparison.
2259 <P>
2260 <DD><DL>
2261 </DL>
2262 </DD>
2263 <DD><DL>
2264 </DL>
2265 </DD>
2266 </DL>
2267 <HR>
2268
2269 <A NAME="getHashComparator()"><!-- --></A><H3>
2270 getHashComparator</H3>
2271 <PRE>
2272 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A> <B>getHashComparator</B>()</PRE>
2273 <DL>
2274 <DD>Return the Comparator used to compare keys in a Hash database.
2275 <p>
2276 This method may be called at any time during the life of the application.
2277 <p>
2278 <P>
2279 <DD><DL>
2280 </DL>
2281 </DD>
2282 <DD><DL>
2283
2284 <DT><B>Returns:</B><DD>The Comparator used to compare keys in a Hash database.</DL>
2285 </DD>
2286 </DL>
2287 <HR>
2288
2289 <A NAME="setHasher(com.sleepycat.db.Hasher)"><!-- --></A><H3>
2290 setHasher</H3>
2291 <PRE>
2292 public void <B>setHasher</B>(<A HREF="../../../com/sleepycat/db/Hasher.html" title="interface in com.sleepycat.db">Hasher</A>&nbsp;hasher)</PRE>
2293 <DL>
2294 <DD>Set a database-specific hash function.
2295 <p>
2296 If no hash function is specified, a default hash function is used.
2297 Because no hash function performs equally well on all possible data,
2298 the user may find that the built-in hash function performs poorly
2299 with a particular data set.
2300 <p>
2301 This method configures operations performed using the specified
2302 <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> object, not all operations performed on the underlying
2303 database.
2304 <p>
2305 This method may not be called after the database is opened.
2306 If the database already exists when it is opened,
2307 the information specified to this method must be the same as that
2308 historically used to create the database or corruption can occur.
2309 <p>
2310 <P>
2311 <DD><DL>
2312 </DL>
2313 </DD>
2314 <DD><DL>
2315 <DT><B>Parameters:</B><DD><CODE>hasher</CODE> - A database-specific hash function.</DL>
2316 </DD>
2317 </DL>
2318 <HR>
2319
2320 <A NAME="getHasher()"><!-- --></A><H3>
2321 getHasher</H3>
2322 <PRE>
2323 public <A HREF="../../../com/sleepycat/db/Hasher.html" title="interface in com.sleepycat.db">Hasher</A> <B>getHasher</B>()</PRE>
2324 <DL>
2325 <DD>Return the database-specific hash function.
2326 <p>
2327 This method may be called at any time during the life of the application.
2328 <p>
2329 <P>
2330 <DD><DL>
2331 </DL>
2332 </DD>
2333 <DD><DL>
2334
2335 <DT><B>Returns:</B><DD>The database-specific hash function.</DL>
2336 </DD>
2337 </DL>
2338 <HR>
2339
2340 <A NAME="setHashNumElements(int)"><!-- --></A><H3>
2341 setHashNumElements</H3>
2342 <PRE>
2343 public void <B>setHashNumElements</B>(int&nbsp;hashNumElements)</PRE>
2344 <DL>
2345 <DD>Set an estimate of the final size of the hash table.
2346 <p>
2347 In order for the estimate to be used when creating the database, the
2348 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setHashFillFactor(int)"><CODE>DatabaseConfig.setHashFillFactor</CODE></A> method must also be called.
2349 If the estimate or fill factor are not set or are set too low, hash
2350 tables will still expand gracefully as keys are entered, although a
2351 slight performance degradation may be noticed.
2352 <p>
2353 This method configures a database, not only operations performed using
2354 the specified <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle.
2355 <p>
2356 This method may not be called after the database is opened.
2357 If the database already exists when it is opened,
2358 the information specified to this method will be ignored.
2359 <p>
2360 <P>
2361 <DD><DL>
2362 </DL>
2363 </DD>
2364 <DD><DL>
2365 <DT><B>Parameters:</B><DD><CODE>hashNumElements</CODE> - An estimate of the final size of the hash table.</DL>
2366 </DD>
2367 </DL>
2368 <HR>
2369
2370 <A NAME="getHashNumElements()"><!-- --></A><H3>
2371 getHashNumElements</H3>
2372 <PRE>
2373 public int <B>getHashNumElements</B>()</PRE>
2374 <DL>
2375 <DD>Return the estimate of the final size of the hash table.
2376 <p>
2377 This method may be called at any time during the life of the application.
2378 <p>
2379 <P>
2380 <DD><DL>
2381 </DL>
2382 </DD>
2383 <DD><DL>
2384
2385 <DT><B>Returns:</B><DD>The estimate of the final size of the hash table.</DL>
2386 </DD>
2387 </DL>
2388 <HR>
2389
2390 <A NAME="setHeapsize(long)"><!-- --></A><H3>
2391 setHeapsize</H3>
2392 <PRE>
2393 public void <B>setHeapsize</B>(long&nbsp;bytes)</PRE>
2394 <DL>
2395 <DD>Set the maximum on-disk database file size used by a database configured to
2396 use the Heap access method. If this method is never called, the database's
2397 file size can grow without bound. If this method is called, then the heap
2398 file can never grow larger than the limit defined by this method. In that
2399 case, attempts to update or create records in a Heap database that has
2400 reached its maximum size will throw a <A HREF="../../../com/sleepycat/db/HeapFullException.html" title="class in com.sleepycat.db"><CODE>HeapFullException</CODE></A>.
2401 <p>
2402 The size specified to this method must be at least three times the database
2403 page size. That is, a Heap database must contain at least three database
2404 pages. You can set the database page size using <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setPageSize(int)"><CODE>setPageSize(int)</CODE></A>.
2405 <p>
2406 This method may not be called after the database is opened. Further, if this
2407 method is called on an existing Heap database, the size specified here must
2408 match the size used to create the database. Note, however, that specifying
2409 an incorrect size to this method will not result in an error return until
2410 the database is opened.
2411 <p>
2412 <P>
2413 <DD><DL>
2414 </DL>
2415 </DD>
2416 <DD><DL>
2417 <DT><B>Parameters:</B><DD><CODE>bytes</CODE> - The maximum on-disk database file size.</DL>
2418 </DD>
2419 </DL>
2420 <HR>
2421
2422 <A NAME="getHeapsize()"><!-- --></A><H3>
2423 getHeapsize</H3>
2424 <PRE>
2425 public long <B>getHeapsize</B>()</PRE>
2426 <DL>
2427 <DD>Return the maximum on-disk database file size.
2428 <p>
2429 This method may be called at any time during the life of the application.
2430 <p>
2431 <P>
2432 <DD><DL>
2433 </DL>
2434 </DD>
2435 <DD><DL>
2436
2437 <DT><B>Returns:</B><DD>The maximum on-disk database file size.</DL>
2438 </DD>
2439 </DL>
2440 <HR>
2441
2442 <A NAME="setHeapRegionSize(int)"><!-- --></A><H3>
2443 setHeapRegionSize</H3>
2444 <PRE>
2445 public void <B>setHeapRegionSize</B>(int&nbsp;npages)</PRE>
2446 <DL>
2447 <DD>Sets the number of pages in a region of a database configured to use
2448 the Heap access method. If this method is never called, the default region
2449 size for the database's page size will be used. You can set the database
2450 page size using <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setPageSize(int)"><CODE>setPageSize(int)</CODE></A>.
2451 <p>
2452 This method may not be called after the database is opened. Further, if this
2453 method is called on an existing Heap database, the value specified here will
2454 be ignored. If the specified region size is larger than the maximum region
2455 size for the database's page size, an error will be returned when the
2456 database is opened. The maximum allowable region size will be included in
2457 the error message.
2458 <P>
2459 <DD><DL>
2460 </DL>
2461 </DD>
2462 <DD><DL>
2463 <DT><B>Parameters:</B><DD><CODE>npages</CODE> - The size of the region, in pages.</DL>
2464 </DD>
2465 </DL>
2466 <HR>
2467
2468 <A NAME="getHeapRegionSize()"><!-- --></A><H3>
2469 getHeapRegionSize</H3>
2470 <PRE>
2471 public long <B>getHeapRegionSize</B>()</PRE>
2472 <DL>
2473 <DD>Return the number of pages in a region of the database.
2474 <p>
2475 This method may be called at any time during the life of the application.
2476 <p>
2477 <P>
2478 <DD><DL>
2479 </DL>
2480 </DD>
2481 <DD><DL>
2482
2483 <DT><B>Returns:</B><DD>The size of the region, in pages.</DL>
2484 </DD>
2485 </DL>
2486 <HR>
2487
2488 <A NAME="setMessageHandler(com.sleepycat.db.MessageHandler)"><!-- --></A><H3>
2489 setMessageHandler</H3>
2490 <PRE>
2491 public void <B>setMessageHandler</B>(<A HREF="../../../com/sleepycat/db/MessageHandler.html" title="interface in com.sleepycat.db">MessageHandler</A>&nbsp;messageHandler)</PRE>
2492 <DL>
2493 <DD>Set a function to be called with an informational message.
2494 <p>
2495 There are interfaces in the Berkeley DB library which either directly
2496 output informational messages or statistical information, or configure
2497 the library to output such messages when performing other operations,
2498 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerboseDeadlock(boolean)"><CODE>EnvironmentConfig.setVerboseDeadlock</CODE></A> for example.
2499 <p>
2500 The <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMessageHandler(com.sleepycat.db.MessageHandler)"><CODE>EnvironmentConfig.setMessageHandler</CODE></A> and
2501 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMessageHandler(com.sleepycat.db.MessageHandler)"><CODE>DatabaseConfig.setMessageHandler</CODE></A> methods are used to display
2502 these messages for the application.
2503 <p>
2504 Setting messageHandler to null unconfigures the interface.
2505 <p>
2506 Alternatively, you can use <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMessageStream(java.io.OutputStream)"><CODE>EnvironmentConfig.setMessageStream</CODE></A>
2507 and <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMessageStream(java.io.OutputStream)"><CODE>DatabaseConfig.setMessageStream</CODE></A> to send the additional
2508 information directly to an output streams. You should not mix these
2509 approaches.
2510 <p>
2511 For <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handles opened inside of database environments,
2512 calling this method affects the entire environment and is equivalent to
2513 calling <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMessageHandler(com.sleepycat.db.MessageHandler)"><CODE>EnvironmentConfig.setMessageHandler</CODE></A>.
2514 <p>
2515 This method may be called at any time during the life of the application.
2516 <p>
2517 <P>
2518 <DD><DL>
2519 </DL>
2520 </DD>
2521 <DD><DL>
2522 <DT><B>Parameters:</B><DD><CODE>messageHandler</CODE> - The application-specified function for informational messages.</DL>
2523 </DD>
2524 </DL>
2525 <HR>
2526
2527 <A NAME="getMessageHandler()"><!-- --></A><H3>
2528 getMessageHandler</H3>
2529 <PRE>
2530 public <A HREF="../../../com/sleepycat/db/MessageHandler.html" title="interface in com.sleepycat.db">MessageHandler</A> <B>getMessageHandler</B>()</PRE>
2531 <DL>
2532 <DD>Return the function to be called with an informational message.
2533 <p>
2534 This method may be called at any time during the life of the application.
2535 <p>
2536 <P>
2537 <DD><DL>
2538 </DL>
2539 </DD>
2540 <DD><DL>
2541
2542 <DT><B>Returns:</B><DD>The function to be called with an informational message.</DL>
2543 </DD>
2544 </DL>
2545 <HR>
2546
2547 <A NAME="setMessageStream(java.io.OutputStream)"><!-- --></A><H3>
2548 setMessageStream</H3>
2549 <PRE>
2550 public void <B>setMessageStream</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;messageStream)</PRE>
2551 <DL>
2552 <DD>Set an OutputStream for displaying informational messages.
2553 <p>
2554 There are interfaces in the Berkeley DB library which either directly
2555 output informational messages or statistical information, or configure
2556 the library to output such messages when performing other operations,
2557 <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setVerboseDeadlock(boolean)"><CODE>EnvironmentConfig.setVerboseDeadlock</CODE></A> for example.
2558 <p>
2559 The <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMessageStream(java.io.OutputStream)"><CODE>EnvironmentConfig.setMessageStream</CODE></A> and
2560 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMessageStream(java.io.OutputStream)"><CODE>DatabaseConfig.setMessageStream</CODE></A> methods are used to display
2561 these messages for the application. In this case, the message will
2562 include a trailing newline character.
2563 <p>
2564 Setting messageStream to null unconfigures the interface.
2565 <p>
2566 Alternatively, you can use <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMessageHandler(com.sleepycat.db.MessageHandler)"><CODE>EnvironmentConfig.setMessageHandler</CODE></A>
2567 and <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMessageHandler(com.sleepycat.db.MessageHandler)"><CODE>DatabaseConfig.setMessageHandler</CODE></A> to capture the additional
2568 information in a way that does not use output streams. You should not
2569 mix these approaches.
2570 <p>
2571 For <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handles opened inside of database environments,
2572 calling this method affects the entire environment and is equivalent to
2573 calling <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setMessageStream(java.io.OutputStream)"><CODE>EnvironmentConfig.setMessageStream</CODE></A>.
2574 <p>
2575 This method may be called at any time during the life of the application.
2576 <p>
2577 <P>
2578 <DD><DL>
2579 </DL>
2580 </DD>
2581 <DD><DL>
2582 <DT><B>Parameters:</B><DD><CODE>messageStream</CODE> - The application-specified OutputStream for informational messages.</DL>
2583 </DD>
2584 </DL>
2585 <HR>
2586
2587 <A NAME="getMessageStream()"><!-- --></A><H3>
2588 getMessageStream</H3>
2589 <PRE>
2590 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> <B>getMessageStream</B>()</PRE>
2591 <DL>
2592 <DD>Return the an OutputStream for displaying informational messages.
2593 <p>
2594 This method may be called at any time during the life of the application.
2595 <p>
2596 <P>
2597 <DD><DL>
2598 </DL>
2599 </DD>
2600 <DD><DL>
2601
2602 <DT><B>Returns:</B><DD>The an OutputStream for displaying informational messages.</DL>
2603 </DD>
2604 </DL>
2605 <HR>
2606
2607 <A NAME="setMode(int)"><!-- --></A><H3>
2608 setMode</H3>
2609 <PRE>
2610 public void <B>setMode</B>(int&nbsp;mode)</PRE>
2611 <DL>
2612 <DD>On UNIX systems or in IEEE/ANSI Std 1003.1 (POSIX) environments, files
2613 created by the database open are created with mode <code>mode</code>
2614 (as described in the <code>chmod</code>(2) manual page) and modified
2615 by the process' umask value at the time of creation (see the
2616 <code>umask</code>(2) manual page). Created files are owned by the
2617 process owner; the group ownership of created files is based on the
2618 system and directory defaults, and is not further specified by Berkeley
2619 DB. System shared memory segments created by the database open are
2620 created with mode <code>mode</code>, unmodified by the process' umask
2621 value. If <code>mode</code> is 0, the database open will use a default
2622 mode of readable and writable by both owner and group.
2623 <p>
2624 On Windows systems, the mode parameter is ignored.
2625 <p>
2626 <P>
2627 <DD><DL>
2628 </DL>
2629 </DD>
2630 <DD><DL>
2631 <DT><B>Parameters:</B><DD><CODE>mode</CODE> - the mode used to create files</DL>
2632 </DD>
2633 </DL>
2634 <HR>
2635
2636 <A NAME="getMode()"><!-- --></A><H3>
2637 getMode</H3>
2638 <PRE>
2639 public long <B>getMode</B>()</PRE>
2640 <DL>
2641 <DD>Return the mode used to create files.
2642 <p>
2643 This method may be called at any time during the life of the application.
2644 <p>
2645 <P>
2646 <DD><DL>
2647 </DL>
2648 </DD>
2649 <DD><DL>
2650
2651 <DT><B>Returns:</B><DD>The mode used to create files.</DL>
2652 </DD>
2653 </DL>
2654 <HR>
2655
2656 <A NAME="setMultiversion(boolean)"><!-- --></A><H3>
2657 setMultiversion</H3>
2658 <PRE>
2659 public void <B>setMultiversion</B>(boolean&nbsp;multiversion)</PRE>
2660 <DL>
2661 <DD>Configured the database with support for multiversion concurrency control.
2662 This will cause updates to the database to follow a copy-on-write
2663 protocol, which is required to support Snapshot Isolation. See
2664 <A HREF="../../../com/sleepycat/db/TransactionConfig.html#setSnapshot(boolean)"><CODE>TransactionConfig.setSnapshot(boolean)</CODE></A>) for more information.
2665 Multiversion access requires that the database be opened
2666 in a transaction and is not supported for queue databases.
2667 <p>
2668 <P>
2669 <DD><DL>
2670 </DL>
2671 </DD>
2672 <DD><DL>
2673 <DT><B>Parameters:</B><DD><CODE>multiversion</CODE> - If true, configure the database with support for multiversion concurrency
2674 control.</DL>
2675 </DD>
2676 </DL>
2677 <HR>
2678
2679 <A NAME="getMultiversion()"><!-- --></A><H3>
2680 getMultiversion</H3>
2681 <PRE>
2682 public boolean <B>getMultiversion</B>()</PRE>
2683 <DL>
2684 <DD>Return true if the database is configured for multiversion concurrency control.
2685 <p>
2686 This method may be called at any time during the life of the application.
2687 <p>
2688 <P>
2689 <DD><DL>
2690 </DL>
2691 </DD>
2692 <DD><DL>
2693
2694 <DT><B>Returns:</B><DD>True if the database is configured for multiversion concurrency control.</DL>
2695 </DD>
2696 </DL>
2697 <HR>
2698
2699 <A NAME="setNoMMap(boolean)"><!-- --></A><H3>
2700 setNoMMap</H3>
2701 <PRE>
2702 public void <B>setNoMMap</B>(boolean&nbsp;noMMap)</PRE>
2703 <DL>
2704 <DD>Configure the library to not map this database into memory.
2705 <p>
2706 <P>
2707 <DD><DL>
2708 </DL>
2709 </DD>
2710 <DD><DL>
2711 <DT><B>Parameters:</B><DD><CODE>noMMap</CODE> - If true, configure the library to not map this database into memory.</DL>
2712 </DD>
2713 </DL>
2714 <HR>
2715
2716 <A NAME="getNoMMap()"><!-- --></A><H3>
2717 getNoMMap</H3>
2718 <PRE>
2719 public boolean <B>getNoMMap</B>()</PRE>
2720 <DL>
2721 <DD>Return true if the library is configured to not map this database into
2722 memory.
2723 <p>
2724 This method may be called at any time during the life of the application.
2725 <p>
2726 <P>
2727 <DD><DL>
2728 </DL>
2729 </DD>
2730 <DD><DL>
2731
2732 <DT><B>Returns:</B><DD>True if the library is configured to not map this database into
2733 memory.</DL>
2734 </DD>
2735 </DL>
2736 <HR>
2737
2738 <A NAME="setNoWaitDbExclusiveLock(java.lang.Boolean)"><!-- --></A><H3>
2739 setNoWaitDbExclusiveLock</H3>
2740 <PRE>
2741 public void <B>setNoWaitDbExclusiveLock</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A>&nbsp;noWaitDbExclLock)</PRE>
2742 <DL>
2743 <DD>Configure the <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle to obtain a
2744 write lock on the entire database.
2745 <p>
2746 This method may not be called after the database is opened.
2747 <p>
2748 <P>
2749 <DD><DL>
2750 </DL>
2751 </DD>
2752 <DD><DL>
2753 <DT><B>Parameters:</B><DD><CODE>noWaitDbExclLock</CODE> - If True, configure the <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle to
2754 obtain a write lock on the entire database. When the database is opened it will
2755 immediately throw
2756 <A HREF="../../../com/sleepycat/db/LockNotGrantedException.html" title="class in com.sleepycat.db"><CODE>LockNotGrantedException</CODE></A> if it
2757 cannot obtain the exclusive lock immediately. If False, configure the
2758 <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle to obtain a write lock on the
2759 entire database. When the database is opened, it will block until it can obtain
2760 the exclusive lock. If null, do not configure the
2761 <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle to obtain a write lock on the
2762 entire database.
2763 <p>
2764 Handles configured for a write lock on the entire database can only have one
2765 active transaction at a time.</DL>
2766 </DD>
2767 </DL>
2768 <HR>
2769
2770 <A NAME="getNoWaitDbExclusiveLock()"><!-- --></A><H3>
2771 getNoWaitDbExclusiveLock</H3>
2772 <PRE>
2773 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A> <B>getNoWaitDbExclusiveLock</B>()</PRE>
2774 <DL>
2775 <DD>Return whether the <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle is
2776 configured to obtain a write lock on the entire database.
2777 <p>
2778 This method may be called at any time during the life of the application.
2779 <p>
2780 <P>
2781 <DD><DL>
2782 </DL>
2783 </DD>
2784 <DD><DL>
2785
2786 <DT><B>Returns:</B><DD>True if the <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle is configured for
2787 immediate exclusive database locking. In this case, the locking operation will
2788 error out if it cannot immediately obtain an exclusive lock. False if the
2789 <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle is configured for exclusive
2790 database locking. In this case, it will block until it can obtain the exclusive
2791 database lock when database is opened. Null if the
2792 <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle is not configured for
2793 exclusive locking.</DL>
2794 </DD>
2795 </DL>
2796 <HR>
2797
2798 <A NAME="setPageSize(int)"><!-- --></A><H3>
2799 setPageSize</H3>
2800 <PRE>
2801 public void <B>setPageSize</B>(int&nbsp;pageSize)</PRE>
2802 <DL>
2803 <DD>Set the size of the pages used to hold items in the database, in bytes.
2804 <p>
2805 The minimum page size is 512 bytes, the maximum page size is 64K bytes,
2806 and the page size must be a power-of-two. If the page size is not
2807 explicitly set, one is selected based on the underlying filesystem I/O
2808 block size. The automatically selected size has a lower limit of 512
2809 bytes and an upper limit of 16K bytes.
2810 <p>
2811 This method configures a database, not only operations performed using
2812 the specified <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle.
2813 <p>
2814 This method may not be called after the database is opened.
2815 If the database already exists when it is opened,
2816 the information specified to this method will be ignored.
2817 If creating additional databases in a file, the page size specified must
2818 be consistent with the existing databases in the file or an error will
2819 be returned.
2820 <p>
2821 <P>
2822 <DD><DL>
2823 </DL>
2824 </DD>
2825 <DD><DL>
2826 <DT><B>Parameters:</B><DD><CODE>pageSize</CODE> - The size of the pages used to hold items in the database, in bytes.</DL>
2827 </DD>
2828 </DL>
2829 <HR>
2830
2831 <A NAME="getPageSize()"><!-- --></A><H3>
2832 getPageSize</H3>
2833 <PRE>
2834 public int <B>getPageSize</B>()</PRE>
2835 <DL>
2836 <DD>Return the size of the pages used to hold items in the database, in bytes.
2837 <p>
2838 This method may be called at any time during the life of the application.
2839 <p>
2840 <P>
2841 <DD><DL>
2842 </DL>
2843 </DD>
2844 <DD><DL>
2845
2846 <DT><B>Returns:</B><DD>The size of the pages used to hold items in the database, in bytes.</DL>
2847 </DD>
2848 </DL>
2849 <HR>
2850
2851 <A NAME="setPanicHandler(com.sleepycat.db.PanicHandler)"><!-- --></A><H3>
2852 setPanicHandler</H3>
2853 <PRE>
2854 public void <B>setPanicHandler</B>(<A HREF="../../../com/sleepycat/db/PanicHandler.html" title="interface in com.sleepycat.db">PanicHandler</A>&nbsp;panicHandler)</PRE>
2855 <DL>
2856 <DD>Set the function to be called if the database environment panics.
2857 <p>
2858 Errors can occur in the Berkeley DB library where the only solution is
2859 to shut down the application and run recovery (for example, if Berkeley
2860 DB is unable to allocate heap memory). In such cases, the Berkeley DB
2861 methods will throw a <A HREF="../../../com/sleepycat/db/RunRecoveryException.html" title="class in com.sleepycat.db"><CODE>RunRecoveryException</CODE></A>. It is often easier
2862 to simply exit the application when such errors occur rather than
2863 gracefully return up the stack. This method specifies a function to be
2864 called when <A HREF="../../../com/sleepycat/db/RunRecoveryException.html" title="class in com.sleepycat.db"><CODE>RunRecoveryException</CODE></A> is about to be thrown from a
2865 Berkeley DB method.
2866 <p>
2867 For <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handles opened inside of database environments,
2868 calling this method affects the entire environment and is equivalent to
2869 calling <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setPanicHandler(com.sleepycat.db.PanicHandler)"><CODE>EnvironmentConfig.setPanicHandler</CODE></A>.
2870 <p>
2871 This method may be called at any time during the life of the application.
2872 <p>
2873 <P>
2874 <DD><DL>
2875 </DL>
2876 </DD>
2877 <DD><DL>
2878 <DT><B>Parameters:</B><DD><CODE>panicHandler</CODE> - The function to be called if the database environment panics.</DL>
2879 </DD>
2880 </DL>
2881 <HR>
2882
2883 <A NAME="getPanicHandler()"><!-- --></A><H3>
2884 getPanicHandler</H3>
2885 <PRE>
2886 public <A HREF="../../../com/sleepycat/db/PanicHandler.html" title="interface in com.sleepycat.db">PanicHandler</A> <B>getPanicHandler</B>()</PRE>
2887 <DL>
2888 <DD>Return the function to be called if the database environment panics.
2889 <p>
2890 This method may be called at any time during the life of the application.
2891 <p>
2892 <P>
2893 <DD><DL>
2894 </DL>
2895 </DD>
2896 <DD><DL>
2897
2898 <DT><B>Returns:</B><DD>The function to be called if the database environment panics.</DL>
2899 </DD>
2900 </DL>
2901 <HR>
2902
2903 <A NAME="setPartitionByCallback(int, com.sleepycat.db.PartitionHandler)"><!-- --></A><H3>
2904 setPartitionByCallback</H3>
2905 <PRE>
2906 public void <B>setPartitionByCallback</B>(int&nbsp;parts,
2907 <A HREF="../../../com/sleepycat/db/PartitionHandler.html" title="interface in com.sleepycat.db">PartitionHandler</A>&nbsp;partitionHandler)</PRE>
2908 <DL>
2909 <DD>Enable or disable database partitioning, and set the callback that will
2910 be used for the partitioning.
2911 <p>
2912 This method may only be called before opening a database.
2913 <p>
2914 <P>
2915 <DD><DL>
2916 </DL>
2917 </DD>
2918 <DD><DL>
2919 <DT><B>Parameters:</B><DD><CODE>parts</CODE> - The number of partitions that will be created.
2920 <p><DD><CODE>partitionHandler</CODE> - The function to be called to determine which partition a key resides in.</DL>
2921 </DD>
2922 </DL>
2923 <HR>
2924
2925 <A NAME="setPartitionByRange(int, com.sleepycat.db.MultipleDataEntry)"><!-- --></A><H3>
2926 setPartitionByRange</H3>
2927 <PRE>
2928 public void <B>setPartitionByRange</B>(int&nbsp;parts,
2929 <A HREF="../../../com/sleepycat/db/MultipleDataEntry.html" title="class in com.sleepycat.db">MultipleDataEntry</A>&nbsp;keys)</PRE>
2930 <DL>
2931 <DD>Enable or disable database partitioning, and set key ranges that will be
2932 used for the partitioning.
2933 <p>
2934 This method may only be called before opening a database.
2935 <p>
2936 <P>
2937 <DD><DL>
2938 </DL>
2939 </DD>
2940 <DD><DL>
2941 <DT><B>Parameters:</B><DD><CODE>parts</CODE> - The number of partitions that will be created.
2942 <p><DD><CODE>keys</CODE> - A MultipleDatabaseEntry that contains the boundary keys for partitioning.</DL>
2943 </DD>
2944 </DL>
2945 <HR>
2946
2947 <A NAME="getPartitionHandler()"><!-- --></A><H3>
2948 getPartitionHandler</H3>
2949 <PRE>
2950 public <A HREF="../../../com/sleepycat/db/PartitionHandler.html" title="interface in com.sleepycat.db">PartitionHandler</A> <B>getPartitionHandler</B>()</PRE>
2951 <DL>
2952 <DD>Return the function to be called to determine which partition a key resides in.
2953 <p>
2954 This method may be called at any time during the life of the application.
2955 <p>
2956 <P>
2957 <DD><DL>
2958 </DL>
2959 </DD>
2960 <DD><DL>
2961
2962 <DT><B>Returns:</B><DD>The function to be called to determine which partition a key resides in.</DL>
2963 </DD>
2964 </DL>
2965 <HR>
2966
2967 <A NAME="getPartitionParts()"><!-- --></A><H3>
2968 getPartitionParts</H3>
2969 <PRE>
2970 public int <B>getPartitionParts</B>()</PRE>
2971 <DL>
2972 <DD>Return the number of partitions the database is configured for.
2973 <p>
2974 This method may be called at any time during the life of the application.
2975 <p>
2976 <P>
2977 <DD><DL>
2978 </DL>
2979 </DD>
2980 <DD><DL>
2981
2982 <DT><B>Returns:</B><DD>The number of partitions the database is configured for.</DL>
2983 </DD>
2984 </DL>
2985 <HR>
2986
2987 <A NAME="getPartitionKeys()"><!-- --></A><H3>
2988 getPartitionKeys</H3>
2989 <PRE>
2990 public <A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A> <B>getPartitionKeys</B>()</PRE>
2991 <DL>
2992 <DD>Return the array of keys the database is configured to partition with.
2993 <p>
2994 This method may be called at any time during the life of the application.
2995 <p>
2996 <P>
2997 <DD><DL>
2998 </DL>
2999 </DD>
3000 <DD><DL>
3001
3002 <DT><B>Returns:</B><DD>The array of keys the database is configured to partition with.</DL>
3003 </DD>
3004 </DL>
3005 <HR>
3006
3007 <A NAME="setPartitionDirs(java.io.File[])"><!-- --></A><H3>
3008 setPartitionDirs</H3>
3009 <PRE>
3010 public void <B>setPartitionDirs</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>[]&nbsp;dirs)</PRE>
3011 <DL>
3012 <DD>Specify the array of directories the database extents should be created in or
3013 looked for. If the number of directories is less than the number of partitions,
3014 the directories will be used in a round robin fasion.
3015 <p>
3016 This method may only be called before the database is opened.
3017 <p>
3018 <P>
3019 <DD><DL>
3020 </DL>
3021 </DD>
3022 <DD><DL>
3023 <DT><B>Parameters:</B><DD><CODE>dirs</CODE> - The array of directories the database extents should be created in or looked
3024 for.</DL>
3025 </DD>
3026 </DL>
3027 <HR>
3028
3029 <A NAME="getPartitionDirs()"><!-- --></A><H3>
3030 getPartitionDirs</H3>
3031 <PRE>
3032 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>[] <B>getPartitionDirs</B>()</PRE>
3033 <DL>
3034 <DD>Return the array of directories the database extents should be created in or
3035 looked for. If the number of directories is less than the number of partitions,
3036 the directories will be used in a round robin fasion.
3037 <p>
3038 This method may be called at any time during the life of the application.
3039 <p>
3040 <P>
3041 <DD><DL>
3042 </DL>
3043 </DD>
3044 <DD><DL>
3045
3046 <DT><B>Returns:</B><DD>The array of directories the database extents should be created in or looked
3047 for.</DL>
3048 </DD>
3049 </DL>
3050 <HR>
3051
3052 <A NAME="setPriority(com.sleepycat.db.CacheFilePriority)"><!-- --></A><H3>
3053 setPriority</H3>
3054 <PRE>
3055 public void <B>setPriority</B>(<A HREF="../../../com/sleepycat/db/CacheFilePriority.html" title="class in com.sleepycat.db">CacheFilePriority</A>&nbsp;priority)</PRE>
3056 <DL>
3057 <DD>Set the cache priority for pages referenced by the DB handle.
3058 <p>
3059 The priority of a page biases the replacement algorithm to be more or less
3060 likely to discard a page when space is needed in the buffer pool. The bias
3061 is temporary, and pages will eventually be discarded if they are not
3062 referenced again. The priority setting is only advisory, and does not
3063 guarantee pages will be treated in a specific way.
3064 <p>
3065 <P>
3066 <DD><DL>
3067 </DL>
3068 </DD>
3069 <DD><DL>
3070 <DT><B>Parameters:</B><DD><CODE>priority</CODE> - The desired cache priority.</DL>
3071 </DD>
3072 </DL>
3073 <HR>
3074
3075 <A NAME="getPriority()"><!-- --></A><H3>
3076 getPriority</H3>
3077 <PRE>
3078 public <A HREF="../../../com/sleepycat/db/CacheFilePriority.html" title="class in com.sleepycat.db">CacheFilePriority</A> <B>getPriority</B>()</PRE>
3079 <DL>
3080 <DD>Return the the cache priority for pages referenced by this handle.
3081 <p>
3082 This method may be called at any time during the life of the application.
3083 <p>
3084 <P>
3085 <DD><DL>
3086 </DL>
3087 </DD>
3088 <DD><DL>
3089
3090 <DT><B>Returns:</B><DD>The the cache priority for pages referenced by this handle.</DL>
3091 </DD>
3092 </DL>
3093 <HR>
3094
3095 <A NAME="setQueueExtentSize(int)"><!-- --></A><H3>
3096 setQueueExtentSize</H3>
3097 <PRE>
3098 public void <B>setQueueExtentSize</B>(int&nbsp;queueExtentSize)</PRE>
3099 <DL>
3100 <DD>Set the size of the extents used to hold pages in a Queue database,
3101 specified as a number of pages.
3102 <p>
3103 Each extent is created as a separate physical file. If no extent
3104 size is set, the default behavior is to create only a single
3105 underlying database file.
3106 <p>
3107 This method configures a database, not only operations performed using
3108 the specified <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle.
3109 <p>
3110 This method may not be called after the database is opened.
3111 If the database already exists when it is opened,
3112 the information specified to this method will be ignored.
3113 <p>
3114 <P>
3115 <DD><DL>
3116 </DL>
3117 </DD>
3118 <DD><DL>
3119 <DT><B>Parameters:</B><DD><CODE>queueExtentSize</CODE> - The number of pages in a Queue database extent.</DL>
3120 </DD>
3121 </DL>
3122 <HR>
3123
3124 <A NAME="getQueueExtentSize()"><!-- --></A><H3>
3125 getQueueExtentSize</H3>
3126 <PRE>
3127 public int <B>getQueueExtentSize</B>()</PRE>
3128 <DL>
3129 <DD>Return the size of the extents used to hold pages in a Queue database,
3130 specified as a number of pages.
3131 <p>
3132 This method may be called at any time during the life of the application.
3133 <p>
3134 <P>
3135 <DD><DL>
3136 </DL>
3137 </DD>
3138 <DD><DL>
3139
3140 <DT><B>Returns:</B><DD>The size of the extents used to hold pages in a Queue database,
3141 specified as a number of pages.</DL>
3142 </DD>
3143 </DL>
3144 <HR>
3145
3146 <A NAME="setQueueInOrder(boolean)"><!-- --></A><H3>
3147 setQueueInOrder</H3>
3148 <PRE>
3149 public void <B>setQueueInOrder</B>(boolean&nbsp;queueInOrder)</PRE>
3150 <DL>
3151 <DD>Configure <A HREF="../../../com/sleepycat/db/Database.html#consume(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, boolean)"><CODE>Database.consume</CODE></A> to return key/data pairs in
3152 order, always returning the key/data item from the head of the
3153 queue.
3154 <p>
3155 The default behavior of queue databases is optimized for multiple
3156 readers, and does not guarantee that record will be retrieved in the
3157 order they are added to the queue. Specifically, if a writing
3158 thread adds multiple records to an empty queue, reading threads may
3159 skip some of the initial records when the next call to retrieve a
3160 key/data pair returns.
3161 <p>
3162 This flag configures the <A HREF="../../../com/sleepycat/db/Database.html#consume(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, boolean)"><CODE>Database.consume</CODE></A> method to verify
3163 that the record being returned is in fact the head of the queue.
3164 This will increase contention and reduce concurrency when there are
3165 many reading threads.
3166 <p>
3167 Calling this method only affects the specified <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle
3168 (and any other library handles opened within the scope of that handle).
3169 <p>
3170 <P>
3171 <DD><DL>
3172 </DL>
3173 </DD>
3174 <DD><DL>
3175 <DT><B>Parameters:</B><DD><CODE>queueInOrder</CODE> - If true, configure the <A HREF="../../../com/sleepycat/db/Database.html#consume(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, boolean)"><CODE>Database.consume</CODE></A> method to return
3176 key/data pairs in order, always returning the key/data item from the
3177 head of the queue.
3178 A value of false is illegal to this method, that is, once set, the
3179 configuration cannot be cleared.</DL>
3180 </DD>
3181 </DL>
3182 <HR>
3183
3184 <A NAME="getQueueInOrder()"><!-- --></A><H3>
3185 getQueueInOrder</H3>
3186 <PRE>
3187 public boolean <B>getQueueInOrder</B>()</PRE>
3188 <DL>
3189 <DD>Return true if the <A HREF="../../../com/sleepycat/db/Database.html#consume(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, boolean)"><CODE>Database.consume</CODE></A> method is configured to return
3190 key/data pairs in order, always returning the key/data item from the
3191 head of the queue.
3192 <p>
3193 This method may be called at any time during the life of the application.
3194 <p>
3195 <P>
3196 <DD><DL>
3197 </DL>
3198 </DD>
3199 <DD><DL>
3200
3201 <DT><B>Returns:</B><DD>True if the <A HREF="../../../com/sleepycat/db/Database.html#consume(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, boolean)"><CODE>Database.consume</CODE></A> method is configured to return
3202 key/data pairs in order, always returning the key/data item from the
3203 head of the queue.</DL>
3204 </DD>
3205 </DL>
3206 <HR>
3207
3208 <A NAME="setReadOnly(boolean)"><!-- --></A><H3>
3209 setReadOnly</H3>
3210 <PRE>
3211 public void <B>setReadOnly</B>(boolean&nbsp;readOnly)</PRE>
3212 <DL>
3213 <DD>Configure the database in read-only mode.
3214 <p>
3215 Any attempt to modify items in the database will fail, regardless
3216 of the actual permissions of any underlying files.
3217 <p>
3218 <P>
3219 <DD><DL>
3220 </DL>
3221 </DD>
3222 <DD><DL>
3223 <DT><B>Parameters:</B><DD><CODE>readOnly</CODE> - If true, configure the database in read-only mode.</DL>
3224 </DD>
3225 </DL>
3226 <HR>
3227
3228 <A NAME="getReadOnly()"><!-- --></A><H3>
3229 getReadOnly</H3>
3230 <PRE>
3231 public boolean <B>getReadOnly</B>()</PRE>
3232 <DL>
3233 <DD>Return true if the database is configured in read-only mode.
3234 <p>
3235 This method may be called at any time during the life of the application.
3236 <p>
3237 <P>
3238 <DD><DL>
3239 </DL>
3240 </DD>
3241 <DD><DL>
3242
3243 <DT><B>Returns:</B><DD>True if the database is configured in read-only mode.</DL>
3244 </DD>
3245 </DL>
3246 <HR>
3247
3248 <A NAME="setRecordNumberAppender(com.sleepycat.db.RecordNumberAppender)"><!-- --></A><H3>
3249 setRecordNumberAppender</H3>
3250 <PRE>
3251 public void <B>setRecordNumberAppender</B>(<A HREF="../../../com/sleepycat/db/RecordNumberAppender.html" title="interface in com.sleepycat.db">RecordNumberAppender</A>&nbsp;recnoAppender)</PRE>
3252 <DL>
3253 <DD>Configure <A HREF="../../../com/sleepycat/db/Database.html#append(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry)"><CODE>Database.append</CODE></A> to call the function after the
3254 record number has been selected but before the data has been stored
3255 into the database.
3256 <p>
3257 This method configures operations performed using the specified
3258 <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> object, not all operations performed on the underlying
3259 database.
3260 <p>
3261 This method may not be called after the database is opened.
3262 <p>
3263 <P>
3264 <DD><DL>
3265 </DL>
3266 </DD>
3267 <DD><DL>
3268 <DT><B>Parameters:</B><DD><CODE>recnoAppender</CODE> - The function to call after the record number has been selected but
3269 before the data has been stored into the database.</DL>
3270 </DD>
3271 </DL>
3272 <HR>
3273
3274 <A NAME="getRecordNumberAppender()"><!-- --></A><H3>
3275 getRecordNumberAppender</H3>
3276 <PRE>
3277 public <A HREF="../../../com/sleepycat/db/RecordNumberAppender.html" title="interface in com.sleepycat.db">RecordNumberAppender</A> <B>getRecordNumberAppender</B>()</PRE>
3278 <DL>
3279 <DD>Return the function to call after the record number has been
3280 selected but before the data has been stored into the database.
3281 <p>
3282 This method may be called at any time during the life of the application.
3283 <p>
3284 <P>
3285 <DD><DL>
3286 </DL>
3287 </DD>
3288 <DD><DL>
3289
3290 <DT><B>Returns:</B><DD>The function to call after the record number has been
3291 selected but before the data has been stored into the database.</DL>
3292 </DD>
3293 </DL>
3294 <HR>
3295
3296 <A NAME="setRecordDelimiter(int)"><!-- --></A><H3>
3297 setRecordDelimiter</H3>
3298 <PRE>
3299 public void <B>setRecordDelimiter</B>(int&nbsp;recordDelimiter)</PRE>
3300 <DL>
3301 <DD>Set the delimiting byte used to mark the end of a record in the backing
3302 source file for the Recno access method.
3303 <p>
3304 This byte is used for variable length records if a backing source
3305 file is specified. If a backing source file is specified and no
3306 delimiting byte was specified, newline characters (that is, ASCII
3307 0x0a) are interpreted as end-of-record markers.
3308 <p>
3309 This method configures a database, not only operations performed using
3310 the specified <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle.
3311 <p>
3312 This method may not be called after the database is opened.
3313 If the database already exists when it is opened,
3314 the information specified to this method will be ignored.
3315 <p>
3316 <P>
3317 <DD><DL>
3318 </DL>
3319 </DD>
3320 <DD><DL>
3321 <DT><B>Parameters:</B><DD><CODE>recordDelimiter</CODE> - The delimiting byte used to mark the end of a record in the backing
3322 source file for the Recno access method.</DL>
3323 </DD>
3324 </DL>
3325 <HR>
3326
3327 <A NAME="getRecordDelimiter()"><!-- --></A><H3>
3328 getRecordDelimiter</H3>
3329 <PRE>
3330 public int <B>getRecordDelimiter</B>()</PRE>
3331 <DL>
3332 <DD>Return the delimiting byte used to mark the end of a record in the
3333 backing source file for the Recno access method.
3334 <p>
3335 This method may be called at any time during the life of the application.
3336 <p>
3337 <P>
3338 <DD><DL>
3339 </DL>
3340 </DD>
3341 <DD><DL>
3342
3343 <DT><B>Returns:</B><DD>The delimiting byte used to mark the end of a record in the
3344 backing source file for the Recno access method.</DL>
3345 </DD>
3346 </DL>
3347 <HR>
3348
3349 <A NAME="setRecordLength(int)"><!-- --></A><H3>
3350 setRecordLength</H3>
3351 <PRE>
3352 public void <B>setRecordLength</B>(int&nbsp;recordLength)</PRE>
3353 <DL>
3354 <DD>Specify the database record length, in bytes.
3355 <p>
3356 For the Queue access method, specify the record length. For the
3357 Queue access method, the record length must be enough smaller than
3358 the database's page size that at least one record plus the database
3359 page's metadata information can fit on each database page.
3360 <p>
3361 For the Recno access method, specify the records are fixed-length,
3362 not byte-delimited, and the record length.
3363 <p>
3364 Any records added to the database that are less than the specified
3365 length are automatically padded (see
3366 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setRecordPad(int)"><CODE>DatabaseConfig.setRecordPad</CODE></A> for more information).
3367 <p>
3368 Any attempt to insert records into the database that are greater
3369 than the specified length will cause the call to fail.
3370 <p>
3371 This method configures a database, not only operations performed using
3372 the specified <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle.
3373 <p>
3374 This method may not be called after the database is opened.
3375 If the database already exists when it is opened,
3376 the information specified to this method will be ignored.
3377 <p>
3378 <P>
3379 <DD><DL>
3380 </DL>
3381 </DD>
3382 <DD><DL>
3383 <DT><B>Parameters:</B><DD><CODE>recordLength</CODE> - The database record length, in bytes.</DL>
3384 </DD>
3385 </DL>
3386 <HR>
3387
3388 <A NAME="getRecordLength()"><!-- --></A><H3>
3389 getRecordLength</H3>
3390 <PRE>
3391 public int <B>getRecordLength</B>()</PRE>
3392 <DL>
3393 <DD>Return the database record length, in bytes.
3394 <p>
3395 This method may be called at any time during the life of the application.
3396 <p>
3397 <P>
3398 <DD><DL>
3399 </DL>
3400 </DD>
3401 <DD><DL>
3402
3403 <DT><B>Returns:</B><DD>The database record length, in bytes.</DL>
3404 </DD>
3405 </DL>
3406 <HR>
3407
3408 <A NAME="setBtreeRecordNumbers(boolean)"><!-- --></A><H3>
3409 setBtreeRecordNumbers</H3>
3410 <PRE>
3411 public void <B>setBtreeRecordNumbers</B>(boolean&nbsp;btreeRecordNumbers)</PRE>
3412 <DL>
3413 <DD>Configure the Btree to support retrieval by record number.
3414 <p>
3415 Logical record numbers in Btree databases are mutable in the face of
3416 record insertion or deletion.
3417 <p>
3418 Maintaining record counts within a Btree introduces a serious point
3419 of contention, namely the page locations where the record counts are
3420 stored. In addition, the entire database must be locked during both
3421 insertions and deletions, effectively single-threading the database
3422 for those operations. Configuring a Btree for retrieval by record
3423 number can result in serious performance degradation for some
3424 applications and data sets.
3425 <p>
3426 Retrieval by record number may not be configured for a Btree that also
3427 supports duplicate data items.
3428 <p>
3429 Calling this method affects the database, including all threads of
3430 control accessing the database.
3431 <p>
3432 If the database already exists when the database is opened, any database
3433 configuration specified by this method
3434 must be the same as the existing database or an error
3435 will be returned.
3436 <p>
3437 <P>
3438 <DD><DL>
3439 </DL>
3440 </DD>
3441 <DD><DL>
3442 <DT><B>Parameters:</B><DD><CODE>btreeRecordNumbers</CODE> - If true, configure the Btree to support retrieval by record number.
3443 A value of false is illegal to this method, that is, once set, the
3444 configuration cannot be cleared.</DL>
3445 </DD>
3446 </DL>
3447 <HR>
3448
3449 <A NAME="getBtreeRecordNumbers()"><!-- --></A><H3>
3450 getBtreeRecordNumbers</H3>
3451 <PRE>
3452 public boolean <B>getBtreeRecordNumbers</B>()</PRE>
3453 <DL>
3454 <DD>Return true if the Btree is configured to support retrieval by record number.
3455 <p>
3456 This method may be called at any time during the life of the application.
3457 <p>
3458 <P>
3459 <DD><DL>
3460 </DL>
3461 </DD>
3462 <DD><DL>
3463
3464 <DT><B>Returns:</B><DD>True if the Btree is configured to support retrieval by record number.</DL>
3465 </DD>
3466 </DL>
3467 <HR>
3468
3469 <A NAME="setRecordPad(int)"><!-- --></A><H3>
3470 setRecordPad</H3>
3471 <PRE>
3472 public void <B>setRecordPad</B>(int&nbsp;recordPad)</PRE>
3473 <DL>
3474 <DD>Set the padding character for short, fixed-length records for the Queue
3475 and Recno access methods.
3476 <p>
3477 If no pad character is specified, "space" characters (that is, ASCII
3478 0x20) are used for padding.
3479 <p>
3480 This method configures a database, not only operations performed using
3481 the specified <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle.
3482 <p>
3483 This method may not be called after the database is opened.
3484 If the database already exists when it is opened,
3485 the information specified to this method will be ignored.
3486 <p>
3487 <P>
3488 <DD><DL>
3489 </DL>
3490 </DD>
3491 <DD><DL>
3492 <DT><B>Parameters:</B><DD><CODE>recordPad</CODE> - The padding character for short, fixed-length records for the Queue
3493 and Recno access methods.</DL>
3494 </DD>
3495 </DL>
3496 <HR>
3497
3498 <A NAME="getRecordPad()"><!-- --></A><H3>
3499 getRecordPad</H3>
3500 <PRE>
3501 public int <B>getRecordPad</B>()</PRE>
3502 <DL>
3503 <DD>Return the padding character for short, fixed-length records for the
3504 Queue and Recno access methods.
3505 <p>
3506 This method may be called at any time during the life of the application.
3507 <p>
3508 <P>
3509 <DD><DL>
3510 </DL>
3511 </DD>
3512 <DD><DL>
3513
3514 <DT><B>Returns:</B><DD>The padding character for short, fixed-length records for the
3515 Queue and Recno access methods.</DL>
3516 </DD>
3517 </DL>
3518 <HR>
3519
3520 <A NAME="setRecordSource(java.io.File)"><!-- --></A><H3>
3521 setRecordSource</H3>
3522 <PRE>
3523 public void <B>setRecordSource</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;recordSource)</PRE>
3524 <DL>
3525 <DD>Set the underlying source file for the Recno access method.
3526 <p>
3527 The purpose of the source file is to provide fast access and
3528 modification to databases that are normally stored as flat text
3529 files.
3530 <p>
3531 The recordSource parameter specifies an underlying flat text
3532 database file that is read to initialize a transient record number
3533 index. In the case of variable length records, the records are
3534 separated, as specified by the
3535 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setRecordDelimiter(int)"><CODE>DatabaseConfig.setRecordDelimiter</CODE></A> method. For example,
3536 standard UNIX byte stream files can be interpreted as a sequence of
3537 variable length records separated by newline characters (that is, ASCII
3538 0x0a).
3539 <p>
3540 In addition, when cached data would normally be written back to the
3541 underlying database file (for example, the <A HREF="../../../com/sleepycat/db/Database.html#close(boolean)"><CODE>Database.close</CODE></A>
3542 or <A HREF="../../../com/sleepycat/db/Database.html#sync()"><CODE>Database.sync</CODE></A> methods are called), the in-memory copy
3543 of the database will be written back to the source file.
3544 <p>
3545 By default, the backing source file is read lazily; that is, records
3546 are not read from the file until they are requested by the application.
3547 <b>
3548 If multiple processes (not threads) are accessing a Recno database
3549 concurrently, and are either inserting or deleting records, the backing
3550 source file must be read in its entirety before more than a single
3551 process accesses the database, and only that process should specify
3552 the backing source file as part of opening the database. See the
3553 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setSnapshot(boolean)"><CODE>DatabaseConfig.setSnapshot</CODE></A> method for more information.
3554 </b>
3555 <p>
3556 <b>
3557 Reading and writing the backing source file cannot be
3558 transaction-protected because it involves filesystem operations that
3559 are not part of the <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> transaction methodology. For
3560 this reason, if a temporary database is used to hold the records,
3561 it is possible to lose the contents of the source file, for example,
3562 if the system crashes at the right instant. If a file is used to
3563 hold the database, normal database recovery on that file can be used
3564 to prevent information loss, although it is still possible that the
3565 contents of the source file will be lost if the system crashes.
3566 </b>
3567 <p>
3568 The source file must already exist (but may be zero-length) when
3569 the database is opened.
3570 <p>
3571 It is not an error to specify a read-only source file when creating
3572 a database, nor is it an error to modify the resulting database.
3573 However, any attempt to write the changes to the backing source file
3574 using either the <A HREF="../../../com/sleepycat/db/Database.html#sync()"><CODE>Database.sync</CODE></A> or <A HREF="../../../com/sleepycat/db/Database.html#close(boolean)"><CODE>Database.close</CODE></A>
3575 methods will fail, of course. Specify the noSync argument to the
3576 <A HREF="../../../com/sleepycat/db/Database.html#close(boolean)"><CODE>Database.close</CODE></A> method to stop it from attempting to write
3577 the changes to the backing file; instead, they will be silently
3578 discarded.
3579 <p>
3580 For all of the previous reasons, the source file is generally used
3581 to specify databases that are read-only for Berkeley DB
3582 applications; and that are either generated on the fly by software
3583 tools or modified using a different mechanism -- for example, a text
3584 editor.
3585 <p>
3586 This method configures operations performed using the specified
3587 <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> object, not all operations performed on the underlying
3588 database.
3589 <p>
3590 This method may not be called after the database is opened.
3591 If the database already exists when it is opened,
3592 the information specified to this method must be the same as that
3593 historically used to create the database or corruption can occur.
3594 <p>
3595 <P>
3596 <DD><DL>
3597 </DL>
3598 </DD>
3599 <DD><DL>
3600 <DT><B>Parameters:</B><DD><CODE>recordSource</CODE> - The name of an underlying flat text database file that is read to
3601 initialize a transient record number index. In the case of variable
3602 length records, the records are separated, as specified by the
3603 <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setRecordDelimiter(int)"><CODE>DatabaseConfig.setRecordDelimiter</CODE></A> method. For example,
3604 standard UNIX byte stream files can be interpreted as a sequence of
3605 variable length records separated by newline characters (that is, ASCII
3606 0x0a).</DL>
3607 </DD>
3608 </DL>
3609 <HR>
3610
3611 <A NAME="getRecordSource()"><!-- --></A><H3>
3612 getRecordSource</H3>
3613 <PRE>
3614 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>getRecordSource</B>()</PRE>
3615 <DL>
3616 <DD>Return the name of an underlying flat text database file that is
3617 read to initialize a transient record number index.
3618 <p>
3619 This method may be called at any time during the life of the application.
3620 <p>
3621 <P>
3622 <DD><DL>
3623 </DL>
3624 </DD>
3625 <DD><DL>
3626
3627 <DT><B>Returns:</B><DD>The name of an underlying flat text database file that is
3628 read to initialize a transient record number index.</DL>
3629 </DD>
3630 </DL>
3631 <HR>
3632
3633 <A NAME="setRenumbering(boolean)"><!-- --></A><H3>
3634 setRenumbering</H3>
3635 <PRE>
3636 public void <B>setRenumbering</B>(boolean&nbsp;renumbering)</PRE>
3637 <DL>
3638 <DD>Configure the logical record numbers to be mutable, and change as
3639 records are added to and deleted from the database.
3640 <p>
3641 For example, the deletion of record number 4 causes records numbered
3642 5 and greater to be renumbered downward by one. If a cursor was
3643 positioned to record number 4 before the deletion, it will refer to
3644 the new record number 4, if any such record exists, after the
3645 deletion. If a cursor was positioned after record number 4 before
3646 the deletion, it will be shifted downward one logical record,
3647 continuing to refer to the same record as it did before.
3648 <p>
3649 Creating new records will cause the creation of multiple records if
3650 the record number is more than one greater than the largest record
3651 currently in the database. For example, creating record 28, when
3652 record 25 was previously the last record in the database, will
3653 create records 26 and 27 as well as 28. Attempts to retrieve
3654 records that were created in this manner will result in an error
3655 return of <A HREF="../../../com/sleepycat/db/OperationStatus.html#KEYEMPTY"><CODE>OperationStatus.KEYEMPTY</CODE></A>.
3656 <p>
3657 If a created record is not at the end of the database, all records
3658 following the new record will be automatically renumbered upward by one.
3659 For example, the creation of a new record numbered 8 causes records
3660 numbered 8 and greater to be renumbered upward by one. If a cursor was
3661 positioned to record number 8 or greater before the insertion, it will
3662 be shifted upward one logical record, continuing to refer to the same
3663 record as it did before.
3664 <p>
3665 For these reasons, concurrent access to a Recno database configured
3666 with mutable record numbers may be largely meaningless, although it
3667 is supported.
3668 <p>
3669 Calling this method affects the database, including all threads of
3670 control accessing the database.
3671 <p>
3672 If the database already exists when the database is opened, any database
3673 configuration specified by this method
3674 must be the same as the existing database or an error
3675 will be returned.
3676 <p>
3677 <P>
3678 <DD><DL>
3679 </DL>
3680 </DD>
3681 <DD><DL>
3682 <DT><B>Parameters:</B><DD><CODE>renumbering</CODE> - If true, configure the logical record numbers to be mutable, and
3683 change as records are added to and deleted from the database.
3684 A value of false is illegal to this method, that is, once set, the
3685 configuration cannot be cleared.</DL>
3686 </DD>
3687 </DL>
3688 <HR>
3689
3690 <A NAME="getRenumbering()"><!-- --></A><H3>
3691 getRenumbering</H3>
3692 <PRE>
3693 public boolean <B>getRenumbering</B>()</PRE>
3694 <DL>
3695 <DD>Return true if the logical record numbers are mutable, and change as
3696 records are added to and deleted from the database.
3697 <p>
3698 This method may be called at any time during the life of the application.
3699 <p>
3700 <P>
3701 <DD><DL>
3702 </DL>
3703 </DD>
3704 <DD><DL>
3705
3706 <DT><B>Returns:</B><DD>True if the logical record numbers are mutable, and change as
3707 records are added to and deleted from the database.</DL>
3708 </DD>
3709 </DL>
3710 <HR>
3711
3712 <A NAME="setReverseSplitOff(boolean)"><!-- --></A><H3>
3713 setReverseSplitOff</H3>
3714 <PRE>
3715 public void <B>setReverseSplitOff</B>(boolean&nbsp;reverseSplitOff)</PRE>
3716 <DL>
3717 <DD>Configure the Btree to not do reverse splits.
3718 <p>
3719 As pages are emptied in a database, the Btree implementation
3720 attempts to coalesce empty pages into higher-level pages in order
3721 to keep the database as small as possible and minimize search time.
3722 This can hurt performance in applications with cyclical data
3723 demands; that is, applications where the database grows and shrinks
3724 repeatedly. For example, because Berkeley DB does page-level locking,
3725 the maximum level of concurrency in a database of two pages is far
3726 smaller than that in a database of 100 pages, so a database that has
3727 shrunk to a minimal size can cause severe deadlocking when a new
3728 cycle of data insertion begins.
3729 <p>
3730 Calling this method only affects the specified <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle
3731 (and any other library handles opened within the scope of that handle).
3732 <p>
3733 <P>
3734 <DD><DL>
3735 </DL>
3736 </DD>
3737 <DD><DL>
3738 <DT><B>Parameters:</B><DD><CODE>reverseSplitOff</CODE> - If true, configure the Btree to not do reverse splits.
3739 A value of false is illegal to this method, that is, once set, the
3740 configuration cannot be cleared.</DL>
3741 </DD>
3742 </DL>
3743 <HR>
3744
3745 <A NAME="getReverseSplitOff()"><!-- --></A><H3>
3746 getReverseSplitOff</H3>
3747 <PRE>
3748 public boolean <B>getReverseSplitOff</B>()</PRE>
3749 <DL>
3750 <DD>Return true if the Btree has been configured to not do reverse splits.
3751 <p>
3752 This method may be called at any time during the life of the application.
3753 <p>
3754 <P>
3755 <DD><DL>
3756 </DL>
3757 </DD>
3758 <DD><DL>
3759
3760 <DT><B>Returns:</B><DD>True if the Btree has been configured to not do reverse splits.</DL>
3761 </DD>
3762 </DL>
3763 <HR>
3764
3765 <A NAME="setSortedDuplicates(boolean)"><!-- --></A><H3>
3766 setSortedDuplicates</H3>
3767 <PRE>
3768 public void <B>setSortedDuplicates</B>(boolean&nbsp;sortedDuplicates)</PRE>
3769 <DL>
3770 <DD>Configure the database to support sorted, duplicate data items.
3771 <p>
3772 Insertion when the key of the key/data pair being inserted already
3773 exists in the database will be successful. The ordering of
3774 duplicates in the database is determined by the duplicate comparison
3775 function.
3776 <p>
3777 If the application does not specify a duplicate data item comparison
3778 function, a default lexical comparison will be used.
3779 <p>
3780 If a primary database is to be associated with one or more secondary
3781 databases, it may not be configured for duplicates.
3782 <p>
3783 A Btree that supports duplicate data items cannot also be configured
3784 for retrieval by record number.
3785 <p>
3786 Calling this method affects the database, including all threads of
3787 control accessing the database.
3788 <p>
3789 If the database already exists when the database is opened, any database
3790 configuration specified by this method
3791 must be the same as the existing database or an error
3792 will be returned.
3793 <p>
3794 <P>
3795 <DD><DL>
3796 </DL>
3797 </DD>
3798 <DD><DL>
3799 <DT><B>Parameters:</B><DD><CODE>sortedDuplicates</CODE> - If true, configure the database to support duplicate data items.
3800 A value of false is illegal to this method, that is, once set, the
3801 configuration cannot be cleared.</DL>
3802 </DD>
3803 </DL>
3804 <HR>
3805
3806 <A NAME="getSortedDuplicates()"><!-- --></A><H3>
3807 getSortedDuplicates</H3>
3808 <PRE>
3809 public boolean <B>getSortedDuplicates</B>()</PRE>
3810 <DL>
3811 <DD>Return true if the database is configured to support sorted duplicate data
3812 items.
3813 <p>
3814 This method may be called at any time during the life of the application.
3815 <p>
3816 <P>
3817 <DD><DL>
3818 </DL>
3819 </DD>
3820 <DD><DL>
3821
3822 <DT><B>Returns:</B><DD>True if the database is configured to support sorted duplicate data
3823 items.</DL>
3824 </DD>
3825 </DL>
3826 <HR>
3827
3828 <A NAME="setUnsortedDuplicates(boolean)"><!-- --></A><H3>
3829 setUnsortedDuplicates</H3>
3830 <PRE>
3831 public void <B>setUnsortedDuplicates</B>(boolean&nbsp;unsortedDuplicates)</PRE>
3832 <DL>
3833 <DD>Configure the database to support unsorted duplicate data items.
3834 <p>
3835 Insertion when the key of the key/data pair being inserted already
3836 exists in the database will be successful. The ordering of
3837 duplicates in the database is determined by the order of insertion,
3838 unless the ordering is otherwise specified by use of a database
3839 cursor operation.
3840 <p>
3841 If a primary database is to be associated with one or more secondary
3842 databases, it may not be configured for duplicates.
3843 <p>
3844 Sorted duplicates are preferred to unsorted duplicates for
3845 performance reasons. Unsorted duplicates should only be used by
3846 applications wanting to order duplicate data items manually.
3847 <p>
3848 Calling this method affects the database, including all threads of
3849 control accessing the database.
3850 <p>
3851 If the database already exists when the database is opened, any database
3852 configuration specified by this method
3853 must be the same as the existing database or an error
3854 will be returned.
3855 <p>
3856 <P>
3857 <DD><DL>
3858 </DL>
3859 </DD>
3860 <DD><DL>
3861 <DT><B>Parameters:</B><DD><CODE>unsortedDuplicates</CODE> - If true, configure the database to support unsorted duplicate data items.
3862 A value of false is illegal to this method, that is, once set, the
3863 configuration cannot be cleared.</DL>
3864 </DD>
3865 </DL>
3866 <HR>
3867
3868 <A NAME="getUnsortedDuplicates()"><!-- --></A><H3>
3869 getUnsortedDuplicates</H3>
3870 <PRE>
3871 public boolean <B>getUnsortedDuplicates</B>()</PRE>
3872 <DL>
3873 <DD>Return true if the database is configured to support duplicate data items.
3874 <p>
3875 This method may be called at any time during the life of the application.
3876 <p>
3877 <P>
3878 <DD><DL>
3879 </DL>
3880 </DD>
3881 <DD><DL>
3882
3883 <DT><B>Returns:</B><DD>True if the database is configured to support duplicate data items.</DL>
3884 </DD>
3885 </DL>
3886 <HR>
3887
3888 <A NAME="setSnapshot(boolean)"><!-- --></A><H3>
3889 setSnapshot</H3>
3890 <PRE>
3891 public void <B>setSnapshot</B>(boolean&nbsp;snapshot)</PRE>
3892 <DL>
3893 <DD>Specify that any specified backing source file be read in its entirety
3894 when the database is opened.
3895 <p>
3896 If this flag is not specified, the backing source file may be read
3897 lazily.
3898 <p>
3899 Calling this method only affects the specified <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle
3900 (and any other library handles opened within the scope of that handle).
3901 <p>
3902 <P>
3903 <DD><DL>
3904 </DL>
3905 </DD>
3906 <DD><DL>
3907 <DT><B>Parameters:</B><DD><CODE>snapshot</CODE> - If true, any specified backing source file will be read in its entirety
3908 when the database is opened.
3909 A value of false is illegal to this method, that is, once set, the
3910 configuration cannot be cleared.</DL>
3911 </DD>
3912 </DL>
3913 <HR>
3914
3915 <A NAME="getSnapshot()"><!-- --></A><H3>
3916 getSnapshot</H3>
3917 <PRE>
3918 public boolean <B>getSnapshot</B>()</PRE>
3919 <DL>
3920 <DD>Return true if the any specified backing source file will be read in its
3921 entirety when the database is opened.
3922 <p>
3923 This method may be called at any time during the life of the application.
3924 <p>
3925 <P>
3926 <DD><DL>
3927 </DL>
3928 </DD>
3929 <DD><DL>
3930
3931 <DT><B>Returns:</B><DD>True if the any specified backing source file will be read in its
3932 entirety when the database is opened.</DL>
3933 </DD>
3934 </DL>
3935 <HR>
3936
3937 <A NAME="getTransactional()"><!-- --></A><H3>
3938 getTransactional</H3>
3939 <PRE>
3940 public boolean <B>getTransactional</B>()</PRE>
3941 <DL>
3942 <DD>Return true if the database open is enclosed within a transaction.
3943 <p>
3944 This method may be called at any time during the life of the application.
3945 <p>
3946 <P>
3947 <DD><DL>
3948 </DL>
3949 </DD>
3950 <DD><DL>
3951
3952 <DT><B>Returns:</B><DD>True if the database open is enclosed within a transaction.</DL>
3953 </DD>
3954 </DL>
3955 <HR>
3956
3957 <A NAME="setTransactional(boolean)"><!-- --></A><H3>
3958 setTransactional</H3>
3959 <PRE>
3960 public void <B>setTransactional</B>(boolean&nbsp;transactional)</PRE>
3961 <DL>
3962 <DD>Enclose the database open within a transaction.
3963 <p>
3964 If the call succeeds, the open operation will be recoverable. If
3965 the call fails, no database will have been created.
3966 <p>
3967 All future operations on this database, which are not explicitly
3968 enclosed in a transaction by the application, will be enclosed in
3969 in a transaction within the library.
3970 <p>
3971 <P>
3972 <DD><DL>
3973 </DL>
3974 </DD>
3975 <DD><DL>
3976 <DT><B>Parameters:</B><DD><CODE>transactional</CODE> - If true, enclose the database open within a transaction.</DL>
3977 </DD>
3978 </DL>
3979 <HR>
3980
3981 <A NAME="setTransactionNotDurable(boolean)"><!-- --></A><H3>
3982 setTransactionNotDurable</H3>
3983 <PRE>
3984 public void <B>setTransactionNotDurable</B>(boolean&nbsp;transactionNotDurable)</PRE>
3985 <DL>
3986 <DD>Configure the database environment to not write log records for this
3987 database.
3988 <p>
3989 This means that updates of this database exhibit the ACI (atomicity,
3990 consistency, and isolation) properties, but not D (durability); that
3991 is, database integrity will be maintained, but if the application
3992 or system fails, integrity will not persist. The database file must
3993 be verified and/or restored from backup after a failure. In order
3994 to ensure integrity after application shut down, the database
3995 must be flushed to disk before the database handles are closed,
3996 or all
3997 database changes must be flushed from the database environment cache
3998 using <A HREF="../../../com/sleepycat/db/Environment.html#checkpoint(com.sleepycat.db.CheckpointConfig)"><CODE>Environment.checkpoint</CODE></A>.
3999 <p>
4000 All database handles for a single physical file must call this method,
4001 including database handles for different databases in a physical file.
4002 <p>
4003 Calling this method only affects the specified <A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><CODE>Database</CODE></A> handle
4004 (and any other library handles opened within the scope of that handle).
4005 <p>
4006 <P>
4007 <DD><DL>
4008 </DL>
4009 </DD>
4010 <DD><DL>
4011 <DT><B>Parameters:</B><DD><CODE>transactionNotDurable</CODE> - If true, configure the database environment to not write log records
4012 for this database.
4013 A value of false is illegal to this method, that is, once set, the
4014 configuration cannot be cleared.</DL>
4015 </DD>
4016 </DL>
4017 <HR>
4018
4019 <A NAME="getTransactionNotDurable()"><!-- --></A><H3>
4020 getTransactionNotDurable</H3>
4021 <PRE>
4022 public boolean <B>getTransactionNotDurable</B>()</PRE>
4023 <DL>
4024 <DD>Return true if the database environment is configured to not write log
4025 records for this database.
4026 <p>
4027 This method may be called at any time during the life of the application.
4028 <p>
4029 <P>
4030 <DD><DL>
4031 </DL>
4032 </DD>
4033 <DD><DL>
4034
4035 <DT><B>Returns:</B><DD>True if the database environment is configured to not write log
4036 records for this database.</DL>
4037 </DD>
4038 </DL>
4039 <HR>
4040
4041 <A NAME="setTruncate(boolean)"><!-- --></A><H3>
4042 setTruncate</H3>
4043 <PRE>
4044 public void <B>setTruncate</B>(boolean&nbsp;truncate)</PRE>
4045 <DL>
4046 <DD>Configure the database to be physically truncated by truncating the
4047 underlying file, discarding all previous databases it might have
4048 held.
4049 <p>
4050 Underlying filesystem primitives are used to implement this
4051 configuration. For this reason, it is applicable only to a physical
4052 file and cannot be used to discard databases within a file.
4053 <p>
4054 This configuration option cannot be lock or transaction-protected, and
4055 it is an error to specify it in a locking or transaction-protected
4056 database environment.
4057 <p>
4058 <P>
4059 <DD><DL>
4060 </DL>
4061 </DD>
4062 <DD><DL>
4063 <DT><B>Parameters:</B><DD><CODE>truncate</CODE> - If true, configure the database to be physically truncated by truncating
4064 the underlying file, discarding all previous databases it might have
4065 held.</DL>
4066 </DD>
4067 </DL>
4068 <HR>
4069
4070 <A NAME="getTruncate()"><!-- --></A><H3>
4071 getTruncate</H3>
4072 <PRE>
4073 public boolean <B>getTruncate</B>()</PRE>
4074 <DL>
4075 <DD>Return true if the database has been configured to be physically truncated
4076 by truncating the underlying file, discarding all previous databases
4077 it might have held.
4078 <p>
4079 This method may be called at any time during the life of the application.
4080 <p>
4081 <P>
4082 <DD><DL>
4083 </DL>
4084 </DD>
4085 <DD><DL>
4086
4087 <DT><B>Returns:</B><DD>True if the database has been configured to be physically truncated
4088 by truncating the underlying file, discarding all previous databases
4089 it might have held.</DL>
4090 </DD>
4091 </DL>
4092 <HR>
4093
4094 <A NAME="setType(com.sleepycat.db.DatabaseType)"><!-- --></A><H3>
4095 setType</H3>
4096 <PRE>
4097 public void <B>setType</B>(<A HREF="../../../com/sleepycat/db/DatabaseType.html" title="class in com.sleepycat.db">DatabaseType</A>&nbsp;type)</PRE>
4098 <DL>
4099 <DD>Configure the type of the database.
4100 <p>
4101 If they type is DB_UNKNOWN, the database must already exist.
4102 <p>
4103 <P>
4104 <DD><DL>
4105 </DL>
4106 </DD>
4107 <DD><DL>
4108 <DT><B>Parameters:</B><DD><CODE>type</CODE> - The type of the database.</DL>
4109 </DD>
4110 </DL>
4111 <HR>
4112
4113 <A NAME="getType()"><!-- --></A><H3>
4114 getType</H3>
4115 <PRE>
4116 public <A HREF="../../../com/sleepycat/db/DatabaseType.html" title="class in com.sleepycat.db">DatabaseType</A> <B>getType</B>()</PRE>
4117 <DL>
4118 <DD>Return the type of the database.
4119 <p>
4120 This method may be used to determine the type of the database after
4121 opening it.
4122 <p>
4123 This method may not be called before the
4124 database has been opened.
4125 <p>
4126 <P>
4127 <DD><DL>
4128 </DL>
4129 </DD>
4130 <DD><DL>
4131
4132 <DT><B>Returns:</B><DD>The type of the database.</DL>
4133 </DD>
4134 </DL>
4135 <!-- ========= END OF CLASS DATA ========= -->
4136 <HR>
4137
4138
4139 <!-- ======= START OF BOTTOM NAVBAR ====== -->
4140 <A NAME="navbar_bottom"><!-- --></A>
4141 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
4142 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
4143 <TR>
4144 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
4145 <A NAME="navbar_bottom_firstrow"><!-- --></A>
4146 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
4147 <TR ALIGN="center" VALIGN="top">
4148 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
4149 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
4150 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
4151 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DatabaseConfig.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
4152 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
4153 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
4154 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
4155 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
4156 </TR>
4157 </TABLE>
4158 </TD>
4159 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
4160 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
4161 </TD>
4162 </TR>
4163
4164 <TR>
4165 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
4166 &nbsp;<A HREF="../../../com/sleepycat/db/Database.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>&nbsp;
4167 &nbsp;<A HREF="../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
4168 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
4169 <A HREF="../../../index.html?com/sleepycat/db/DatabaseConfig.html" target="_top"><B>FRAMES</B></A> &nbsp;
4170 &nbsp;<A HREF="DatabaseConfig.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
4171 &nbsp;<SCRIPT type="text/javascript">
4172 <!--
4173 if(window==top) {
4174 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
4175 }
4176 //-->
4177 </SCRIPT>
4178 <NOSCRIPT>
4179 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
4180 </NOSCRIPT>
4181
4182
4183 </FONT></TD>
4184 </TR>
4185 <TR>
4186 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
4187 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>
4188 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
4189 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>
4190 </TR>
4191 </TABLE>
4192 <A NAME="skip-navbar_bottom"></A>
4193 <!-- ======== END OF BOTTOM NAVBAR ======= -->
4194
4195 <HR>
4196 <font size=1>Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.</font>
4197 </BODY>
4198 </HTML>