Debian Codegraph @

java/japidoc/qdbm/Curia.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_21) on Thu Aug 05 02:15:32 JST 2010 -->
6 <TITLE>
7 Curia (qdbm)
8 </TITLE>
9
10 <META NAME="date" CONTENT="2010-08-05">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.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="Curia (qdbm)";
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="../qdbm/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="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
45 </TR>
46 </TABLE>
47 </TD>
48 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
49 </EM>
50 </TD>
51 </TR>
52
53 <TR>
54 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55 &nbsp;<A HREF="../qdbm/ADBM.html" title="interface in qdbm"><B>PREV CLASS</B></A>&nbsp;
56 &nbsp;<A HREF="../qdbm/CuriaException.html" title="class in qdbm"><B>NEXT CLASS</B></A></FONT></TD>
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58 <A HREF="../index.html?qdbm/Curia.html" target="_top"><B>FRAMES</B></A> &nbsp;
59 &nbsp;<A HREF="Curia.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
60 &nbsp;<SCRIPT type="text/javascript">
61 <!--
62 if(window==top) {
63 document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
64 }
65 //-->
66 </SCRIPT>
67 <NOSCRIPT>
68 <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
69 </NOSCRIPT>
70
71
72 </FONT></TD>
73 </TR>
74 <TR>
75 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
76 SUMMARY:&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>
77 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78 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>
79 </TR>
80 </TABLE>
81 <A NAME="skip-navbar_top"></A>
82 <!-- ========= END OF TOP NAVBAR ========= -->
83
84 <HR>
85 <!-- ======== START OF CLASS DATA ======== -->
86 <H2>
87 <FONT SIZE="-1">
88 qdbm</FONT>
89 <BR>
90 Class Curia</H2>
91 <PRE>
92 java.lang.Object
93 <IMG SRC="../resources/inherit.gif" ALT="extended by "><B>qdbm.Curia</B>
94 </PRE>
95 <DL>
96 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../qdbm/ADBM.html" title="interface in qdbm">ADBM</A></DD>
97 </DL>
98 <HR>
99 <DL>
100 <DT><PRE>public class <B>Curia</B><DT>extends java.lang.Object<DT>implements <A HREF="../qdbm/ADBM.html" title="interface in qdbm">ADBM</A></DL>
101 </PRE>
102
103 <P>
104 The Java API of Curia, the extended API of QDBM.
105 This class depends on the native library `jqdbm'.
106 <P>
107
108 <P>
109 <HR>
110
111 <P>
112 <!-- =========== FIELD SUMMARY =========== -->
113
114 <A NAME="field_summary"><!-- --></A>
115 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
116 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
117 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
118 <B>Field Summary</B></FONT></TH>
119 </TR>
120 <TR BGCOLOR="white" CLASS="TableRowColor">
121 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
122 <CODE>static&nbsp;int</CODE></FONT></TD>
123 <TD><CODE><B><A HREF="../qdbm/Curia.html#DCAT">DCAT</A></B></CODE>
124
125 <BR>
126 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;write mode: concatenate values</TD>
127 </TR>
128 <TR BGCOLOR="white" CLASS="TableRowColor">
129 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
130 <CODE>static&nbsp;int</CODE></FONT></TD>
131 <TD><CODE><B><A HREF="../qdbm/Curia.html#DKEEP">DKEEP</A></B></CODE>
132
133 <BR>
134 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;write mode: keep the existing value</TD>
135 </TR>
136 <TR BGCOLOR="white" CLASS="TableRowColor">
137 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
138 <CODE>static&nbsp;int</CODE></FONT></TD>
139 <TD><CODE><B><A HREF="../qdbm/Curia.html#DOVER">DOVER</A></B></CODE>
140
141 <BR>
142 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;write mode: overwrite the existing value</TD>
143 </TR>
144 <TR BGCOLOR="white" CLASS="TableRowColor">
145 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
146 <CODE>static&nbsp;int</CODE></FONT></TD>
147 <TD><CODE><B><A HREF="../qdbm/Curia.html#EALLOC">EALLOC</A></B></CODE>
148
149 <BR>
150 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: memory allocation error</TD>
151 </TR>
152 <TR BGCOLOR="white" CLASS="TableRowColor">
153 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
154 <CODE>static&nbsp;int</CODE></FONT></TD>
155 <TD><CODE><B><A HREF="../qdbm/Curia.html#EBROKEN">EBROKEN</A></B></CODE>
156
157 <BR>
158 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: broken database file</TD>
159 </TR>
160 <TR BGCOLOR="white" CLASS="TableRowColor">
161 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162 <CODE>static&nbsp;int</CODE></FONT></TD>
163 <TD><CODE><B><A HREF="../qdbm/Curia.html#ECLOSE">ECLOSE</A></B></CODE>
164
165 <BR>
166 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: close error</TD>
167 </TR>
168 <TR BGCOLOR="white" CLASS="TableRowColor">
169 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170 <CODE>static&nbsp;int</CODE></FONT></TD>
171 <TD><CODE><B><A HREF="../qdbm/Curia.html#EFATAL">EFATAL</A></B></CODE>
172
173 <BR>
174 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: with fatal error</TD>
175 </TR>
176 <TR BGCOLOR="white" CLASS="TableRowColor">
177 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
178 <CODE>static&nbsp;int</CODE></FONT></TD>
179 <TD><CODE><B><A HREF="../qdbm/Curia.html#EKEEP">EKEEP</A></B></CODE>
180
181 <BR>
182 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: existing record</TD>
183 </TR>
184 <TR BGCOLOR="white" CLASS="TableRowColor">
185 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186 <CODE>static&nbsp;int</CODE></FONT></TD>
187 <TD><CODE><B><A HREF="../qdbm/Curia.html#ELOCK">ELOCK</A></B></CODE>
188
189 <BR>
190 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: lock error</TD>
191 </TR>
192 <TR BGCOLOR="white" CLASS="TableRowColor">
193 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
194 <CODE>static&nbsp;int</CODE></FONT></TD>
195 <TD><CODE><B><A HREF="../qdbm/Curia.html#EMAP">EMAP</A></B></CODE>
196
197 <BR>
198 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: memory mapping error</TD>
199 </TR>
200 <TR BGCOLOR="white" CLASS="TableRowColor">
201 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
202 <CODE>static&nbsp;int</CODE></FONT></TD>
203 <TD><CODE><B><A HREF="../qdbm/Curia.html#EMISC">EMISC</A></B></CODE>
204
205 <BR>
206 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: miscellaneous error</TD>
207 </TR>
208 <TR BGCOLOR="white" CLASS="TableRowColor">
209 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210 <CODE>static&nbsp;int</CODE></FONT></TD>
211 <TD><CODE><B><A HREF="../qdbm/Curia.html#EMKDIR">EMKDIR</A></B></CODE>
212
213 <BR>
214 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: mkdir error</TD>
215 </TR>
216 <TR BGCOLOR="white" CLASS="TableRowColor">
217 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
218 <CODE>static&nbsp;int</CODE></FONT></TD>
219 <TD><CODE><B><A HREF="../qdbm/Curia.html#EMODE">EMODE</A></B></CODE>
220
221 <BR>
222 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: invalid mode</TD>
223 </TR>
224 <TR BGCOLOR="white" CLASS="TableRowColor">
225 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
226 <CODE>static&nbsp;int</CODE></FONT></TD>
227 <TD><CODE><B><A HREF="../qdbm/Curia.html#ENOERR">ENOERR</A></B></CODE>
228
229 <BR>
230 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: no error</TD>
231 </TR>
232 <TR BGCOLOR="white" CLASS="TableRowColor">
233 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
234 <CODE>static&nbsp;int</CODE></FONT></TD>
235 <TD><CODE><B><A HREF="../qdbm/Curia.html#ENOITEM">ENOITEM</A></B></CODE>
236
237 <BR>
238 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: no item found</TD>
239 </TR>
240 <TR BGCOLOR="white" CLASS="TableRowColor">
241 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
242 <CODE>static&nbsp;int</CODE></FONT></TD>
243 <TD><CODE><B><A HREF="../qdbm/Curia.html#EOPEN">EOPEN</A></B></CODE>
244
245 <BR>
246 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: open error</TD>
247 </TR>
248 <TR BGCOLOR="white" CLASS="TableRowColor">
249 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
250 <CODE>static&nbsp;int</CODE></FONT></TD>
251 <TD><CODE><B><A HREF="../qdbm/Curia.html#EREAD">EREAD</A></B></CODE>
252
253 <BR>
254 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: read error</TD>
255 </TR>
256 <TR BGCOLOR="white" CLASS="TableRowColor">
257 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
258 <CODE>static&nbsp;int</CODE></FONT></TD>
259 <TD><CODE><B><A HREF="../qdbm/Curia.html#ERMDIR">ERMDIR</A></B></CODE>
260
261 <BR>
262 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: rmdir error</TD>
263 </TR>
264 <TR BGCOLOR="white" CLASS="TableRowColor">
265 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
266 <CODE>static&nbsp;int</CODE></FONT></TD>
267 <TD><CODE><B><A HREF="../qdbm/Curia.html#ESEEK">ESEEK</A></B></CODE>
268
269 <BR>
270 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: seek error</TD>
271 </TR>
272 <TR BGCOLOR="white" CLASS="TableRowColor">
273 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
274 <CODE>static&nbsp;int</CODE></FONT></TD>
275 <TD><CODE><B><A HREF="../qdbm/Curia.html#ESTAT">ESTAT</A></B></CODE>
276
277 <BR>
278 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: stat error</TD>
279 </TR>
280 <TR BGCOLOR="white" CLASS="TableRowColor">
281 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
282 <CODE>static&nbsp;int</CODE></FONT></TD>
283 <TD><CODE><B><A HREF="../qdbm/Curia.html#ESYNC">ESYNC</A></B></CODE>
284
285 <BR>
286 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: sync error</TD>
287 </TR>
288 <TR BGCOLOR="white" CLASS="TableRowColor">
289 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
290 <CODE>static&nbsp;int</CODE></FONT></TD>
291 <TD><CODE><B><A HREF="../qdbm/Curia.html#ETRUNC">ETRUNC</A></B></CODE>
292
293 <BR>
294 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: trunc error</TD>
295 </TR>
296 <TR BGCOLOR="white" CLASS="TableRowColor">
297 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
298 <CODE>static&nbsp;int</CODE></FONT></TD>
299 <TD><CODE><B><A HREF="../qdbm/Curia.html#EUNLINK">EUNLINK</A></B></CODE>
300
301 <BR>
302 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: unlink error</TD>
303 </TR>
304 <TR BGCOLOR="white" CLASS="TableRowColor">
305 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
306 <CODE>static&nbsp;int</CODE></FONT></TD>
307 <TD><CODE><B><A HREF="../qdbm/Curia.html#EWRITE">EWRITE</A></B></CODE>
308
309 <BR>
310 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error code: write error</TD>
311 </TR>
312 <TR BGCOLOR="white" CLASS="TableRowColor">
313 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
314 <CODE>static&nbsp;int</CODE></FONT></TD>
315 <TD><CODE><B><A HREF="../qdbm/Curia.html#OCREAT">OCREAT</A></B></CODE>
316
317 <BR>
318 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;open mode: writer creating</TD>
319 </TR>
320 <TR BGCOLOR="white" CLASS="TableRowColor">
321 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
322 <CODE>static&nbsp;int</CODE></FONT></TD>
323 <TD><CODE><B><A HREF="../qdbm/Curia.html#OLCKNB">OLCKNB</A></B></CODE>
324
325 <BR>
326 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;open mode: lock without blocking</TD>
327 </TR>
328 <TR BGCOLOR="white" CLASS="TableRowColor">
329 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
330 <CODE>static&nbsp;int</CODE></FONT></TD>
331 <TD><CODE><B><A HREF="../qdbm/Curia.html#ONOLCK">ONOLCK</A></B></CODE>
332
333 <BR>
334 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;open mode: open without locking</TD>
335 </TR>
336 <TR BGCOLOR="white" CLASS="TableRowColor">
337 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
338 <CODE>static&nbsp;int</CODE></FONT></TD>
339 <TD><CODE><B><A HREF="../qdbm/Curia.html#OREADER">OREADER</A></B></CODE>
340
341 <BR>
342 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;open mode: open as a reader</TD>
343 </TR>
344 <TR BGCOLOR="white" CLASS="TableRowColor">
345 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
346 <CODE>static&nbsp;int</CODE></FONT></TD>
347 <TD><CODE><B><A HREF="../qdbm/Curia.html#OSPARSE">OSPARSE</A></B></CODE>
348
349 <BR>
350 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;open mode: create as sparse files</TD>
351 </TR>
352 <TR BGCOLOR="white" CLASS="TableRowColor">
353 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
354 <CODE>static&nbsp;int</CODE></FONT></TD>
355 <TD><CODE><B><A HREF="../qdbm/Curia.html#OTRUNC">OTRUNC</A></B></CODE>
356
357 <BR>
358 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;open mode: writer truncating</TD>
359 </TR>
360 <TR BGCOLOR="white" CLASS="TableRowColor">
361 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
362 <CODE>static&nbsp;int</CODE></FONT></TD>
363 <TD><CODE><B><A HREF="../qdbm/Curia.html#OWRITER">OWRITER</A></B></CODE>
364
365 <BR>
366 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;open mode: open as a writer</TD>
367 </TR>
368 <TR BGCOLOR="white" CLASS="TableRowColor">
369 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
370 <CODE>&nbsp;boolean</CODE></FONT></TD>
371 <TD><CODE><B><A HREF="../qdbm/Curia.html#silent">silent</A></B></CODE>
372
373 <BR>
374 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whether to repress frequent exceptions.</TD>
375 </TR>
376 </TABLE>
377 &nbsp;
378 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
379
380 <A NAME="constructor_summary"><!-- --></A>
381 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
382 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
383 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
384 <B>Constructor Summary</B></FONT></TH>
385 </TR>
386 <TR BGCOLOR="white" CLASS="TableRowColor">
387 <TD><CODE><B><A HREF="../qdbm/Curia.html#Curia(java.lang.String)">Curia</A></B>(java.lang.String&nbsp;name)</CODE>
388
389 <BR>
390 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the database handle as a reader.</TD>
391 </TR>
392 <TR BGCOLOR="white" CLASS="TableRowColor">
393 <TD><CODE><B><A HREF="../qdbm/Curia.html#Curia(java.lang.String, int, int, int)">Curia</A></B>(java.lang.String&nbsp;name,
394 int&nbsp;omode,
395 int&nbsp;bnum,
396 int&nbsp;dnum)</CODE>
397
398 <BR>
399 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the database handle.</TD>
400 </TR>
401 </TABLE>
402 &nbsp;
403 <!-- ========== METHOD SUMMARY =========== -->
404
405 <A NAME="method_summary"><!-- --></A>
406 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
407 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
408 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
409 <B>Method Summary</B></FONT></TH>
410 </TR>
411 <TR BGCOLOR="white" CLASS="TableRowColor">
412 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
413 <CODE>&nbsp;int</CODE></FONT></TD>
414 <TD><CODE><B><A HREF="../qdbm/Curia.html#bnum()">bnum</A></B>()</CODE>
415
416 <BR>
417 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the total number of the elements of each bucket array.</TD>
418 </TR>
419 <TR BGCOLOR="white" CLASS="TableRowColor">
420 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
421 <CODE>&nbsp;int</CODE></FONT></TD>
422 <TD><CODE><B><A HREF="../qdbm/Curia.html#busenum()">busenum</A></B>()</CODE>
423
424 <BR>
425 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the total number of the used elements of each bucket array.</TD>
426 </TR>
427 <TR BGCOLOR="white" CLASS="TableRowColor">
428 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
429 <CODE>&nbsp;void</CODE></FONT></TD>
430 <TD><CODE><B><A HREF="../qdbm/Curia.html#close()">close</A></B>()</CODE>
431
432 <BR>
433 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Close the database handle.</TD>
434 </TR>
435 <TR BGCOLOR="white" CLASS="TableRowColor">
436 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
437 <CODE>&nbsp;void</CODE></FONT></TD>
438 <TD><CODE><B><A HREF="../qdbm/Curia.html#delete(byte[])">delete</A></B>(byte[]&nbsp;key)</CODE>
439
440 <BR>
441 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Delete a record.</TD>
442 </TR>
443 <TR BGCOLOR="white" CLASS="TableRowColor">
444 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
445 <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
446 <TD><CODE><B><A HREF="../qdbm/Curia.html#errmsg(int)">errmsg</A></B>(int&nbsp;ecode)</CODE>
447
448 <BR>
449 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get an error message.</TD>
450 </TR>
451 <TR BGCOLOR="white" CLASS="TableRowColor">
452 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
453 <CODE>&nbsp;boolean</CODE></FONT></TD>
454 <TD><CODE><B><A HREF="../qdbm/Curia.html#error()">error</A></B>()</CODE>
455
456 <BR>
457 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check whether a fatal error occured or not.</TD>
458 </TR>
459 <TR BGCOLOR="white" CLASS="TableRowColor">
460 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
461 <CODE>&nbsp;boolean</CODE></FONT></TD>
462 <TD><CODE><B><A HREF="../qdbm/Curia.html#fatalerror()">fatalerror</A></B>()</CODE>
463
464 <BR>
465 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check whether the database has a fatal error or not.</TD>
466 </TR>
467 <TR BGCOLOR="white" CLASS="TableRowColor">
468 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
469 <CODE>&nbsp;byte[]</CODE></FONT></TD>
470 <TD><CODE><B><A HREF="../qdbm/Curia.html#fetch(byte[])">fetch</A></B>(byte[]&nbsp;key)</CODE>
471
472 <BR>
473 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetch a record.</TD>
474 </TR>
475 <TR BGCOLOR="white" CLASS="TableRowColor">
476 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
477 <CODE>protected &nbsp;void</CODE></FONT></TD>
478 <TD><CODE><B><A HREF="../qdbm/Curia.html#finalize()">finalize</A></B>()</CODE>
479
480 <BR>
481 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Release the resources.</TD>
482 </TR>
483 <TR BGCOLOR="white" CLASS="TableRowColor">
484 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
485 <CODE>&nbsp;byte[]</CODE></FONT></TD>
486 <TD><CODE><B><A HREF="../qdbm/Curia.html#firstkey()">firstkey</A></B>()</CODE>
487
488 <BR>
489 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the first key.</TD>
490 </TR>
491 <TR BGCOLOR="white" CLASS="TableRowColor">
492 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
493 <CODE>&nbsp;long</CODE></FONT></TD>
494 <TD><CODE><B><A HREF="../qdbm/Curia.html#fsiz()">fsiz</A></B>()</CODE>
495
496 <BR>
497 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the total size of the database files.</TD>
498 </TR>
499 <TR BGCOLOR="white" CLASS="TableRowColor">
500 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
501 <CODE>&nbsp;byte[]</CODE></FONT></TD>
502 <TD><CODE><B><A HREF="../qdbm/Curia.html#get(byte[])">get</A></B>(byte[]&nbsp;key)</CODE>
503
504 <BR>
505 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve whole value of a record.</TD>
506 </TR>
507 <TR BGCOLOR="white" CLASS="TableRowColor">
508 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
509 <CODE>&nbsp;byte[]</CODE></FONT></TD>
510 <TD><CODE><B><A HREF="../qdbm/Curia.html#get(byte[], int, int)">get</A></B>(byte[]&nbsp;key,
511 int&nbsp;start,
512 int&nbsp;max)</CODE>
513
514 <BR>
515 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve a record.</TD>
516 </TR>
517 <TR BGCOLOR="white" CLASS="TableRowColor">
518 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
519 <CODE>&nbsp;byte[]</CODE></FONT></TD>
520 <TD><CODE><B><A HREF="../qdbm/Curia.html#getlob(byte[])">getlob</A></B>(byte[]&nbsp;key)</CODE>
521
522 <BR>
523 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve whole value of a large object.</TD>
524 </TR>
525 <TR BGCOLOR="white" CLASS="TableRowColor">
526 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
527 <CODE>&nbsp;byte[]</CODE></FONT></TD>
528 <TD><CODE><B><A HREF="../qdbm/Curia.html#getlob(byte[], int, int)">getlob</A></B>(byte[]&nbsp;key,
529 int&nbsp;start,
530 int&nbsp;max)</CODE>
531
532 <BR>
533 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve a large object.</TD>
534 </TR>
535 <TR BGCOLOR="white" CLASS="TableRowColor">
536 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
537 <CODE>&nbsp;int</CODE></FONT></TD>
538 <TD><CODE><B><A HREF="../qdbm/Curia.html#inode()">inode</A></B>()</CODE>
539
540 <BR>
541 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the inode number of the database.</TD>
542 </TR>
543 <TR BGCOLOR="white" CLASS="TableRowColor">
544 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
545 <CODE>&nbsp;void</CODE></FONT></TD>
546 <TD><CODE><B><A HREF="../qdbm/Curia.html#iterinit()">iterinit</A></B>()</CODE>
547
548 <BR>
549 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the iterator of the database handle.</TD>
550 </TR>
551 <TR BGCOLOR="white" CLASS="TableRowColor">
552 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
553 <CODE>&nbsp;byte[]</CODE></FONT></TD>
554 <TD><CODE><B><A HREF="../qdbm/Curia.html#iternext()">iternext</A></B>()</CODE>
555
556 <BR>
557 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the next key of the iterator.</TD>
558 </TR>
559 <TR BGCOLOR="white" CLASS="TableRowColor">
560 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
561 <CODE>&nbsp;long</CODE></FONT></TD>
562 <TD><CODE><B><A HREF="../qdbm/Curia.html#mtime()">mtime</A></B>()</CODE>
563
564 <BR>
565 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the last modified time of the database.</TD>
566 </TR>
567 <TR BGCOLOR="white" CLASS="TableRowColor">
568 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
569 <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
570 <TD><CODE><B><A HREF="../qdbm/Curia.html#name()">name</A></B>()</CODE>
571
572 <BR>
573 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the name of the database.</TD>
574 </TR>
575 <TR BGCOLOR="white" CLASS="TableRowColor">
576 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
577 <CODE>&nbsp;byte[]</CODE></FONT></TD>
578 <TD><CODE><B><A HREF="../qdbm/Curia.html#nextkey()">nextkey</A></B>()</CODE>
579
580 <BR>
581 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the next key.</TD>
582 </TR>
583 <TR BGCOLOR="white" CLASS="TableRowColor">
584 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
585 <CODE>&nbsp;void</CODE></FONT></TD>
586 <TD><CODE><B><A HREF="../qdbm/Curia.html#optimize(int)">optimize</A></B>(int&nbsp;bnum)</CODE>
587
588 <BR>
589 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Optimize the database.</TD>
590 </TR>
591 <TR BGCOLOR="white" CLASS="TableRowColor">
592 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
593 <CODE>&nbsp;boolean</CODE></FONT></TD>
594 <TD><CODE><B><A HREF="../qdbm/Curia.html#out(byte[])">out</A></B>(byte[]&nbsp;key)</CODE>
595
596 <BR>
597 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Delete a record.</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="../qdbm/Curia.html#outlob(byte[])">outlob</A></B>(byte[]&nbsp;key)</CODE>
603
604 <BR>
605 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Delete a large object.</TD>
606 </TR>
607 <TR BGCOLOR="white" CLASS="TableRowColor">
608 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
609 <CODE>&nbsp;boolean</CODE></FONT></TD>
610 <TD><CODE><B><A HREF="../qdbm/Curia.html#put(byte[], byte[])">put</A></B>(byte[]&nbsp;key,
611 byte[]&nbsp;val)</CODE>
612
613 <BR>
614 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Store a record with overwrite.</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="../qdbm/Curia.html#put(byte[], byte[], int)">put</A></B>(byte[]&nbsp;key,
620 byte[]&nbsp;val,
621 int&nbsp;dmode)</CODE>
622
623 <BR>
624 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Store a record.</TD>
625 </TR>
626 <TR BGCOLOR="white" CLASS="TableRowColor">
627 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
628 <CODE>&nbsp;boolean</CODE></FONT></TD>
629 <TD><CODE><B><A HREF="../qdbm/Curia.html#putlob(byte[], byte[])">putlob</A></B>(byte[]&nbsp;key,
630 byte[]&nbsp;val)</CODE>
631
632 <BR>
633 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Store a large object with overwrite.</TD>
634 </TR>
635 <TR BGCOLOR="white" CLASS="TableRowColor">
636 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
637 <CODE>&nbsp;boolean</CODE></FONT></TD>
638 <TD><CODE><B><A HREF="../qdbm/Curia.html#putlob(byte[], byte[], int)">putlob</A></B>(byte[]&nbsp;key,
639 byte[]&nbsp;val,
640 int&nbsp;dmode)</CODE>
641
642 <BR>
643 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Store a large object.</TD>
644 </TR>
645 <TR BGCOLOR="white" CLASS="TableRowColor">
646 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
647 <CODE>static&nbsp;void</CODE></FONT></TD>
648 <TD><CODE><B><A HREF="../qdbm/Curia.html#remove(java.lang.String)">remove</A></B>(java.lang.String&nbsp;name)</CODE>
649
650 <BR>
651 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove a database directory.</TD>
652 </TR>
653 <TR BGCOLOR="white" CLASS="TableRowColor">
654 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
655 <CODE>&nbsp;int</CODE></FONT></TD>
656 <TD><CODE><B><A HREF="../qdbm/Curia.html#rnum()">rnum</A></B>()</CODE>
657
658 <BR>
659 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the number of the records stored in the database.</TD>
660 </TR>
661 <TR BGCOLOR="white" CLASS="TableRowColor">
662 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
663 <CODE>&nbsp;int</CODE></FONT></TD>
664 <TD><CODE><B><A HREF="../qdbm/Curia.html#rnumlob()">rnumlob</A></B>()</CODE>
665
666 <BR>
667 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the number of the large objects stored in the database.</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="../qdbm/Curia.html#setalign(int)">setalign</A></B>(int&nbsp;align)</CODE>
673
674 <BR>
675 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set alignment of the database handle.</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="../qdbm/Curia.html#setfbpsiz(int)">setfbpsiz</A></B>(int&nbsp;size)</CODE>
681
682 <BR>
683 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the size of the free block pool.</TD>
684 </TR>
685 <TR BGCOLOR="white" CLASS="TableRowColor">
686 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
687 <CODE>static&nbsp;byte[]</CODE></FONT></TD>
688 <TD><CODE><B><A HREF="../qdbm/Curia.html#snaffle(java.lang.String, byte[])">snaffle</A></B>(java.lang.String&nbsp;name,
689 byte[]&nbsp;key)</CODE>
690
691 <BR>
692 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve a record directly from a database directory.</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="../qdbm/Curia.html#store(byte[], byte[], boolean)">store</A></B>(byte[]&nbsp;key,
698 byte[]&nbsp;val,
699 boolean&nbsp;replace)</CODE>
700
701 <BR>
702 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Store a record.</TD>
703 </TR>
704 <TR BGCOLOR="white" CLASS="TableRowColor">
705 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
706 <CODE>&nbsp;void</CODE></FONT></TD>
707 <TD><CODE><B><A HREF="../qdbm/Curia.html#sync()">sync</A></B>()</CODE>
708
709 <BR>
710 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Synchronize updating contents with the files and the devices.</TD>
711 </TR>
712 <TR BGCOLOR="white" CLASS="TableRowColor">
713 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
714 <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
715 <TD><CODE><B><A HREF="../qdbm/Curia.html#version()">version</A></B>()</CODE>
716
717 <BR>
718 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the version information.</TD>
719 </TR>
720 <TR BGCOLOR="white" CLASS="TableRowColor">
721 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
722 <CODE>&nbsp;int</CODE></FONT></TD>
723 <TD><CODE><B><A HREF="../qdbm/Curia.html#vsiz(byte[])">vsiz</A></B>(byte[]&nbsp;key)</CODE>
724
725 <BR>
726 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the size of the value of a record.</TD>
727 </TR>
728 <TR BGCOLOR="white" CLASS="TableRowColor">
729 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
730 <CODE>&nbsp;int</CODE></FONT></TD>
731 <TD><CODE><B><A HREF="../qdbm/Curia.html#vsizlob(byte[])">vsizlob</A></B>(byte[]&nbsp;key)</CODE>
732
733 <BR>
734 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the size of the value of a large object.</TD>
735 </TR>
736 <TR BGCOLOR="white" CLASS="TableRowColor">
737 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
738 <CODE>&nbsp;boolean</CODE></FONT></TD>
739 <TD><CODE><B><A HREF="../qdbm/Curia.html#writable()">writable</A></B>()</CODE>
740
741 <BR>
742 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check whether the database handle is a writer or not.</TD>
743 </TR>
744 </TABLE>
745 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
746 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
747 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
748 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
749 </TR>
750 <TR BGCOLOR="white" CLASS="TableRowColor">
751 <TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
752 </TR>
753 </TABLE>
754 &nbsp;
755 <P>
756
757 <!-- ============ FIELD DETAIL =========== -->
758
759 <A NAME="field_detail"><!-- --></A>
760 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
761 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
762 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
763 <B>Field Detail</B></FONT></TH>
764 </TR>
765 </TABLE>
766
767 <A NAME="DCAT"><!-- --></A><H3>
768 DCAT</H3>
769 <PRE>
770 public static final int <B>DCAT</B></PRE>
771 <DL>
772 <DD>write mode: concatenate values
773 <P>
774 <DL>
775 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.DCAT">Constant Field Values</A></DL>
776 </DL>
777 <HR>
778
779 <A NAME="DKEEP"><!-- --></A><H3>
780 DKEEP</H3>
781 <PRE>
782 public static final int <B>DKEEP</B></PRE>
783 <DL>
784 <DD>write mode: keep the existing value
785 <P>
786 <DL>
787 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.DKEEP">Constant Field Values</A></DL>
788 </DL>
789 <HR>
790
791 <A NAME="DOVER"><!-- --></A><H3>
792 DOVER</H3>
793 <PRE>
794 public static final int <B>DOVER</B></PRE>
795 <DL>
796 <DD>write mode: overwrite the existing value
797 <P>
798 <DL>
799 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.DOVER">Constant Field Values</A></DL>
800 </DL>
801 <HR>
802
803 <A NAME="EALLOC"><!-- --></A><H3>
804 EALLOC</H3>
805 <PRE>
806 public static final int <B>EALLOC</B></PRE>
807 <DL>
808 <DD>error code: memory allocation error
809 <P>
810 <DL>
811 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.EALLOC">Constant Field Values</A></DL>
812 </DL>
813 <HR>
814
815 <A NAME="EBROKEN"><!-- --></A><H3>
816 EBROKEN</H3>
817 <PRE>
818 public static final int <B>EBROKEN</B></PRE>
819 <DL>
820 <DD>error code: broken database file
821 <P>
822 <DL>
823 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.EBROKEN">Constant Field Values</A></DL>
824 </DL>
825 <HR>
826
827 <A NAME="ECLOSE"><!-- --></A><H3>
828 ECLOSE</H3>
829 <PRE>
830 public static final int <B>ECLOSE</B></PRE>
831 <DL>
832 <DD>error code: close error
833 <P>
834 <DL>
835 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.ECLOSE">Constant Field Values</A></DL>
836 </DL>
837 <HR>
838
839 <A NAME="EFATAL"><!-- --></A><H3>
840 EFATAL</H3>
841 <PRE>
842 public static final int <B>EFATAL</B></PRE>
843 <DL>
844 <DD>error code: with fatal error
845 <P>
846 <DL>
847 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.EFATAL">Constant Field Values</A></DL>
848 </DL>
849 <HR>
850
851 <A NAME="EKEEP"><!-- --></A><H3>
852 EKEEP</H3>
853 <PRE>
854 public static final int <B>EKEEP</B></PRE>
855 <DL>
856 <DD>error code: existing record
857 <P>
858 <DL>
859 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.EKEEP">Constant Field Values</A></DL>
860 </DL>
861 <HR>
862
863 <A NAME="ELOCK"><!-- --></A><H3>
864 ELOCK</H3>
865 <PRE>
866 public static final int <B>ELOCK</B></PRE>
867 <DL>
868 <DD>error code: lock error
869 <P>
870 <DL>
871 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.ELOCK">Constant Field Values</A></DL>
872 </DL>
873 <HR>
874
875 <A NAME="EMAP"><!-- --></A><H3>
876 EMAP</H3>
877 <PRE>
878 public static final int <B>EMAP</B></PRE>
879 <DL>
880 <DD>error code: memory mapping error
881 <P>
882 <DL>
883 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.EMAP">Constant Field Values</A></DL>
884 </DL>
885 <HR>
886
887 <A NAME="EMISC"><!-- --></A><H3>
888 EMISC</H3>
889 <PRE>
890 public static final int <B>EMISC</B></PRE>
891 <DL>
892 <DD>error code: miscellaneous error
893 <P>
894 <DL>
895 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.EMISC">Constant Field Values</A></DL>
896 </DL>
897 <HR>
898
899 <A NAME="EMKDIR"><!-- --></A><H3>
900 EMKDIR</H3>
901 <PRE>
902 public static final int <B>EMKDIR</B></PRE>
903 <DL>
904 <DD>error code: mkdir error
905 <P>
906 <DL>
907 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.EMKDIR">Constant Field Values</A></DL>
908 </DL>
909 <HR>
910
911 <A NAME="EMODE"><!-- --></A><H3>
912 EMODE</H3>
913 <PRE>
914 public static final int <B>EMODE</B></PRE>
915 <DL>
916 <DD>error code: invalid mode
917 <P>
918 <DL>
919 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.EMODE">Constant Field Values</A></DL>
920 </DL>
921 <HR>
922
923 <A NAME="ENOERR"><!-- --></A><H3>
924 ENOERR</H3>
925 <PRE>
926 public static final int <B>ENOERR</B></PRE>
927 <DL>
928 <DD>error code: no error
929 <P>
930 <DL>
931 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.ENOERR">Constant Field Values</A></DL>
932 </DL>
933 <HR>
934
935 <A NAME="ENOITEM"><!-- --></A><H3>
936 ENOITEM</H3>
937 <PRE>
938 public static final int <B>ENOITEM</B></PRE>
939 <DL>
940 <DD>error code: no item found
941 <P>
942 <DL>
943 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.ENOITEM">Constant Field Values</A></DL>
944 </DL>
945 <HR>
946
947 <A NAME="EOPEN"><!-- --></A><H3>
948 EOPEN</H3>
949 <PRE>
950 public static final int <B>EOPEN</B></PRE>
951 <DL>
952 <DD>error code: open error
953 <P>
954 <DL>
955 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.EOPEN">Constant Field Values</A></DL>
956 </DL>
957 <HR>
958
959 <A NAME="EREAD"><!-- --></A><H3>
960 EREAD</H3>
961 <PRE>
962 public static final int <B>EREAD</B></PRE>
963 <DL>
964 <DD>error code: read error
965 <P>
966 <DL>
967 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.EREAD">Constant Field Values</A></DL>
968 </DL>
969 <HR>
970
971 <A NAME="ERMDIR"><!-- --></A><H3>
972 ERMDIR</H3>
973 <PRE>
974 public static final int <B>ERMDIR</B></PRE>
975 <DL>
976 <DD>error code: rmdir error
977 <P>
978 <DL>
979 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.ERMDIR">Constant Field Values</A></DL>
980 </DL>
981 <HR>
982
983 <A NAME="ESEEK"><!-- --></A><H3>
984 ESEEK</H3>
985 <PRE>
986 public static final int <B>ESEEK</B></PRE>
987 <DL>
988 <DD>error code: seek error
989 <P>
990 <DL>
991 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.ESEEK">Constant Field Values</A></DL>
992 </DL>
993 <HR>
994
995 <A NAME="ESTAT"><!-- --></A><H3>
996 ESTAT</H3>
997 <PRE>
998 public static final int <B>ESTAT</B></PRE>
999 <DL>
1000 <DD>error code: stat error
1001 <P>
1002 <DL>
1003 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.ESTAT">Constant Field Values</A></DL>
1004 </DL>
1005 <HR>
1006
1007 <A NAME="ESYNC"><!-- --></A><H3>
1008 ESYNC</H3>
1009 <PRE>
1010 public static final int <B>ESYNC</B></PRE>
1011 <DL>
1012 <DD>error code: sync error
1013 <P>
1014 <DL>
1015 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.ESYNC">Constant Field Values</A></DL>
1016 </DL>
1017 <HR>
1018
1019 <A NAME="ETRUNC"><!-- --></A><H3>
1020 ETRUNC</H3>
1021 <PRE>
1022 public static final int <B>ETRUNC</B></PRE>
1023 <DL>
1024 <DD>error code: trunc error
1025 <P>
1026 <DL>
1027 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.ETRUNC">Constant Field Values</A></DL>
1028 </DL>
1029 <HR>
1030
1031 <A NAME="EUNLINK"><!-- --></A><H3>
1032 EUNLINK</H3>
1033 <PRE>
1034 public static final int <B>EUNLINK</B></PRE>
1035 <DL>
1036 <DD>error code: unlink error
1037 <P>
1038 <DL>
1039 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.EUNLINK">Constant Field Values</A></DL>
1040 </DL>
1041 <HR>
1042
1043 <A NAME="EWRITE"><!-- --></A><H3>
1044 EWRITE</H3>
1045 <PRE>
1046 public static final int <B>EWRITE</B></PRE>
1047 <DL>
1048 <DD>error code: write error
1049 <P>
1050 <DL>
1051 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.EWRITE">Constant Field Values</A></DL>
1052 </DL>
1053 <HR>
1054
1055 <A NAME="OCREAT"><!-- --></A><H3>
1056 OCREAT</H3>
1057 <PRE>
1058 public static final int <B>OCREAT</B></PRE>
1059 <DL>
1060 <DD>open mode: writer creating
1061 <P>
1062 <DL>
1063 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.OCREAT">Constant Field Values</A></DL>
1064 </DL>
1065 <HR>
1066
1067 <A NAME="OLCKNB"><!-- --></A><H3>
1068 OLCKNB</H3>
1069 <PRE>
1070 public static final int <B>OLCKNB</B></PRE>
1071 <DL>
1072 <DD>open mode: lock without blocking
1073 <P>
1074 <DL>
1075 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.OLCKNB">Constant Field Values</A></DL>
1076 </DL>
1077 <HR>
1078
1079 <A NAME="ONOLCK"><!-- --></A><H3>
1080 ONOLCK</H3>
1081 <PRE>
1082 public static final int <B>ONOLCK</B></PRE>
1083 <DL>
1084 <DD>open mode: open without locking
1085 <P>
1086 <DL>
1087 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.ONOLCK">Constant Field Values</A></DL>
1088 </DL>
1089 <HR>
1090
1091 <A NAME="OREADER"><!-- --></A><H3>
1092 OREADER</H3>
1093 <PRE>
1094 public static final int <B>OREADER</B></PRE>
1095 <DL>
1096 <DD>open mode: open as a reader
1097 <P>
1098 <DL>
1099 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.OREADER">Constant Field Values</A></DL>
1100 </DL>
1101 <HR>
1102
1103 <A NAME="OSPARSE"><!-- --></A><H3>
1104 OSPARSE</H3>
1105 <PRE>
1106 public static final int <B>OSPARSE</B></PRE>
1107 <DL>
1108 <DD>open mode: create as sparse files
1109 <P>
1110 <DL>
1111 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.OSPARSE">Constant Field Values</A></DL>
1112 </DL>
1113 <HR>
1114
1115 <A NAME="OTRUNC"><!-- --></A><H3>
1116 OTRUNC</H3>
1117 <PRE>
1118 public static final int <B>OTRUNC</B></PRE>
1119 <DL>
1120 <DD>open mode: writer truncating
1121 <P>
1122 <DL>
1123 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.OTRUNC">Constant Field Values</A></DL>
1124 </DL>
1125 <HR>
1126
1127 <A NAME="OWRITER"><!-- --></A><H3>
1128 OWRITER</H3>
1129 <PRE>
1130 public static final int <B>OWRITER</B></PRE>
1131 <DL>
1132 <DD>open mode: open as a writer
1133 <P>
1134 <DL>
1135 <DT><B>See Also:</B><DD><A HREF="../constant-values.html#qdbm.Curia.OWRITER">Constant Field Values</A></DL>
1136 </DL>
1137 <HR>
1138
1139 <A NAME="silent"><!-- --></A><H3>
1140 silent</H3>
1141 <PRE>
1142 public boolean <B>silent</B></PRE>
1143 <DL>
1144 <DD>Whether to repress frequent exceptions.
1145 <P>
1146 <DL>
1147 </DL>
1148 </DL>
1149
1150 <!-- ========= CONSTRUCTOR DETAIL ======== -->
1151
1152 <A NAME="constructor_detail"><!-- --></A>
1153 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1154 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1155 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1156 <B>Constructor Detail</B></FONT></TH>
1157 </TR>
1158 </TABLE>
1159
1160 <A NAME="Curia(java.lang.String)"><!-- --></A><H3>
1161 Curia</H3>
1162 <PRE>
1163 public <B>Curia</B>(java.lang.String&nbsp;name)
1164 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1165 <DL>
1166 <DD>Get the database handle as a reader.
1167 The same as `Curia(name, Curia.OREADER, -1)'.
1168 <P>
1169 <DL>
1170
1171 <DT><B>Throws:</B>
1172 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE><DT><B>See Also:</B><DD><A HREF="../qdbm/Curia.html#Curia(java.lang.String, int, int, int)"><CODE>Curia(java.lang.String, int, int, int)</CODE></A></DL>
1173 </DL>
1174 <HR>
1175
1176 <A NAME="Curia(java.lang.String, int, int, int)"><!-- --></A><H3>
1177 Curia</H3>
1178 <PRE>
1179 public <B>Curia</B>(java.lang.String&nbsp;name,
1180 int&nbsp;omode,
1181 int&nbsp;bnum,
1182 int&nbsp;dnum)
1183 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1184 <DL>
1185 <DD>Get the database handle.
1186 <P>
1187 <DL>
1188 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of a database directory.<DD><CODE>omode</CODE> - the connection mode: `Curia.OWRITER' as a writer, `Curia.OREADER' as
1189 a reader. If the mode is `Curia.OWRITER', the following may be added by bitwise or:
1190 `Curia.OCREAT', which means it creates a new database if not exist, `Curia.OTRUNC',
1191 which means it creates a new database regardless if one exists. Both of `Curia.OREADER'
1192 and `Curia.OWRITER' can be added to by bitwise or: `Curia.ONOLCK', which means it opens a
1193 database directory without file locking, or `Curia.OLCKNB', which means locking is performed
1194 without blocking. `Curia.OCREAT' can be added to by bitwise or: `Curia.OSPARSE', which
1195 means it creates database files as sparse files.<DD><CODE>bnum</CODE> - the number of elements of the each bucket array. If it is not more than 0,
1196 the default value is specified. The size of each bucket array is determined on creating,
1197 and can not be changed except for by optimization of the database. Suggested size of each
1198 bucket array is about from 0.5 to 4 times of the number of all records to store.<DD><CODE>dnum</CODE> - the number of division of the database. If it is not more than 0, the default
1199 value is specified. The number of division can not be changed from the initial value. The
1200 max number of division is 512.
1201 <DT><B>Throws:</B>
1202 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.<DT><B>Note:</B></DT>
1203 <DD>While connecting as a writer, an exclusive lock is invoked to the database directory.
1204 While connecting as a reader, a shared lock is invoked to the database directory.
1205 The thread blocks until the lock is achieved. If `Curia.ONOLCK' is used, the application
1206 is responsible for exclusion control.</DD>
1207 </DL>
1208 </DL>
1209
1210 <!-- ============ METHOD DETAIL ========== -->
1211
1212 <A NAME="method_detail"><!-- --></A>
1213 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1214 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1215 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1216 <B>Method Detail</B></FONT></TH>
1217 </TR>
1218 </TABLE>
1219
1220 <A NAME="bnum()"><!-- --></A><H3>
1221 bnum</H3>
1222 <PRE>
1223 public int <B>bnum</B>()
1224 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1225 <DL>
1226 <DD>Get the total number of the elements of each bucket array.
1227 <P>
1228 <DD><DL>
1229 </DL>
1230 </DD>
1231 <DD><DL>
1232
1233 <DT><B>Returns:</B><DD>the total number of the elements of each bucket array.
1234 <DT><B>Throws:</B>
1235 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.</DL>
1236 </DD>
1237 </DL>
1238 <HR>
1239
1240 <A NAME="busenum()"><!-- --></A><H3>
1241 busenum</H3>
1242 <PRE>
1243 public int <B>busenum</B>()
1244 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1245 <DL>
1246 <DD>Get the total number of the used elements of each bucket array.
1247 <P>
1248 <DD><DL>
1249 </DL>
1250 </DD>
1251 <DD><DL>
1252
1253 <DT><B>Returns:</B><DD>the total number of the used elements of each bucket array.
1254 <DT><B>Throws:</B>
1255 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.<DT><B>Note:</B></DT>
1256 <DD>This method is inefficient because it accesses all elements of each bucket array.</DD>
1257 </DL>
1258 </DD>
1259 </DL>
1260 <HR>
1261
1262 <A NAME="close()"><!-- --></A><H3>
1263 close</H3>
1264 <PRE>
1265 public void <B>close</B>()
1266 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1267 <DL>
1268 <DD>Close the database handle.
1269 <P>
1270 <DD><DL>
1271 <DT><B>Specified by:</B><DD><CODE><A HREF="../qdbm/ADBM.html#close()">close</A></CODE> in interface <CODE><A HREF="../qdbm/ADBM.html" title="interface in qdbm">ADBM</A></CODE></DL>
1272 </DD>
1273 <DD><DL>
1274
1275 <DT><B>Throws:</B>
1276 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.<DT><B>Note:</B></DT>
1277 <DD>Updating a database is assured to be written when the handle is closed. If a
1278 writer opens a database but does not close it appropriately, the database will be broken.</DD>
1279 </DL>
1280 </DD>
1281 </DL>
1282 <HR>
1283
1284 <A NAME="delete(byte[])"><!-- --></A><H3>
1285 delete</H3>
1286 <PRE>
1287 public void <B>delete</B>(byte[]&nbsp;key)
1288 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1289 <DL>
1290 <DD>Delete a record.
1291 <P>
1292 <DD><DL>
1293 <DT><B>Specified by:</B><DD><CODE><A HREF="../qdbm/ADBM.html#delete(byte[])">delete</A></CODE> in interface <CODE><A HREF="../qdbm/ADBM.html" title="interface in qdbm">ADBM</A></CODE></DL>
1294 </DD>
1295 <DD><DL>
1296 <DT><B>Parameters:</B><DD><CODE>key</CODE> - a byte array of a key.
1297 <DT><B>Throws:</B>
1298 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs or no record corresponds.</DL>
1299 </DD>
1300 </DL>
1301 <HR>
1302
1303 <A NAME="errmsg(int)"><!-- --></A><H3>
1304 errmsg</H3>
1305 <PRE>
1306 public static java.lang.String <B>errmsg</B>(int&nbsp;ecode)</PRE>
1307 <DL>
1308 <DD>Get an error message.
1309 <P>
1310 <DD><DL>
1311 </DL>
1312 </DD>
1313 <DD><DL>
1314 <DT><B>Parameters:</B><DD><CODE>ecode</CODE> - an error code.
1315 <DT><B>Returns:</B><DD>the message string of the error code.</DL>
1316 </DD>
1317 </DL>
1318 <HR>
1319
1320 <A NAME="error()"><!-- --></A><H3>
1321 error</H3>
1322 <PRE>
1323 public boolean <B>error</B>()
1324 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1325 <DL>
1326 <DD>Check whether a fatal error occured or not.
1327 <P>
1328 <DD><DL>
1329 <DT><B>Specified by:</B><DD><CODE><A HREF="../qdbm/ADBM.html#error()">error</A></CODE> in interface <CODE><A HREF="../qdbm/ADBM.html" title="interface in qdbm">ADBM</A></CODE></DL>
1330 </DD>
1331 <DD><DL>
1332
1333 <DT><B>Returns:</B><DD>true if the database has a fatal error, false if not.
1334 <DT><B>Throws:</B>
1335 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.</DL>
1336 </DD>
1337 </DL>
1338 <HR>
1339
1340 <A NAME="fatalerror()"><!-- --></A><H3>
1341 fatalerror</H3>
1342 <PRE>
1343 public boolean <B>fatalerror</B>()
1344 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1345 <DL>
1346 <DD>Check whether the database has a fatal error or not.
1347 <P>
1348 <DD><DL>
1349 </DL>
1350 </DD>
1351 <DD><DL>
1352
1353 <DT><B>Returns:</B><DD>true if the database has a fatal error, false if not.
1354 <DT><B>Throws:</B>
1355 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.</DL>
1356 </DD>
1357 </DL>
1358 <HR>
1359
1360 <A NAME="fetch(byte[])"><!-- --></A><H3>
1361 fetch</H3>
1362 <PRE>
1363 public byte[] <B>fetch</B>(byte[]&nbsp;key)
1364 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1365 <DL>
1366 <DD>Fetch a record.
1367 <P>
1368 <DD><DL>
1369 <DT><B>Specified by:</B><DD><CODE><A HREF="../qdbm/ADBM.html#fetch(byte[])">fetch</A></CODE> in interface <CODE><A HREF="../qdbm/ADBM.html" title="interface in qdbm">ADBM</A></CODE></DL>
1370 </DD>
1371 <DD><DL>
1372 <DT><B>Parameters:</B><DD><CODE>key</CODE> - a byte array of a key.
1373 <DT><B>Returns:</B><DD>a byte array of the value of the corresponding record.
1374 <DT><B>Throws:</B>
1375 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs or no record corresponds.</DL>
1376 </DD>
1377 </DL>
1378 <HR>
1379
1380 <A NAME="finalize()"><!-- --></A><H3>
1381 finalize</H3>
1382 <PRE>
1383 protected void <B>finalize</B>()
1384 throws java.lang.Throwable</PRE>
1385 <DL>
1386 <DD>Release the resources.
1387 <P>
1388 <DD><DL>
1389 <DT><B>Overrides:</B><DD><CODE>finalize</CODE> in class <CODE>java.lang.Object</CODE></DL>
1390 </DD>
1391 <DD><DL>
1392
1393 <DT><B>Throws:</B>
1394 <DD><CODE>java.lang.Throwable</CODE><DT><B>Note:</B></DT>
1395 <DD>If the database handle is not closed yet, it is closed. Every database should be
1396 closed explicitly. Do not cast the duty on the gerbage collection.</DD>
1397 </DL>
1398 </DD>
1399 </DL>
1400 <HR>
1401
1402 <A NAME="firstkey()"><!-- --></A><H3>
1403 firstkey</H3>
1404 <PRE>
1405 public byte[] <B>firstkey</B>()
1406 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1407 <DL>
1408 <DD>Get the first key.
1409 <P>
1410 <DD><DL>
1411 <DT><B>Specified by:</B><DD><CODE><A HREF="../qdbm/ADBM.html#firstkey()">firstkey</A></CODE> in interface <CODE><A HREF="../qdbm/ADBM.html" title="interface in qdbm">ADBM</A></CODE></DL>
1412 </DD>
1413 <DD><DL>
1414
1415 <DT><B>Returns:</B><DD>a byte array of the key of the first record.
1416 <DT><B>Throws:</B>
1417 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs or no record corresponds.</DL>
1418 </DD>
1419 </DL>
1420 <HR>
1421
1422 <A NAME="fsiz()"><!-- --></A><H3>
1423 fsiz</H3>
1424 <PRE>
1425 public long <B>fsiz</B>()
1426 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1427 <DL>
1428 <DD>Get the total size of the database files.
1429 <P>
1430 <DD><DL>
1431 </DL>
1432 </DD>
1433 <DD><DL>
1434
1435 <DT><B>Returns:</B><DD>the total size of the database files.
1436 <DT><B>Throws:</B>
1437 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.</DL>
1438 </DD>
1439 </DL>
1440 <HR>
1441
1442 <A NAME="get(byte[])"><!-- --></A><H3>
1443 get</H3>
1444 <PRE>
1445 public byte[] <B>get</B>(byte[]&nbsp;key)
1446 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1447 <DL>
1448 <DD>Retrieve whole value of a record.
1449 The same as `get(key, 0, -1)'.
1450 <P>
1451 <DD><DL>
1452 </DL>
1453 </DD>
1454 <DD><DL>
1455
1456 <DT><B>Throws:</B>
1457 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE><DT><B>See Also:</B><DD><A HREF="../qdbm/Curia.html#get(byte[], int, int)"><CODE>get(byte[], int, int)</CODE></A></DL>
1458 </DD>
1459 </DL>
1460 <HR>
1461
1462 <A NAME="get(byte[], int, int)"><!-- --></A><H3>
1463 get</H3>
1464 <PRE>
1465 public byte[] <B>get</B>(byte[]&nbsp;key,
1466 int&nbsp;start,
1467 int&nbsp;max)
1468 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1469 <DL>
1470 <DD>Retrieve a record.
1471 <P>
1472 <DD><DL>
1473 </DL>
1474 </DD>
1475 <DD><DL>
1476 <DT><B>Parameters:</B><DD><CODE>key</CODE> - a byte array of a key.<DD><CODE>start</CODE> - the array index of the beginning of the value to be read.<DD><CODE>max</CODE> - the max size to read with. If it is negative, the size is unlimited.
1477 <DT><B>Returns:</B><DD>a byte array of the value of the corresponding record. If the silent flag is true
1478 and no record corresponds, `null' is returned instead of exception.
1479 <DT><B>Throws:</B>
1480 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs, no record corresponds, or the size of the value
1481 of the corresponding record is less than the index specified by the parameter `start'.</DL>
1482 </DD>
1483 </DL>
1484 <HR>
1485
1486 <A NAME="getlob(byte[])"><!-- --></A><H3>
1487 getlob</H3>
1488 <PRE>
1489 public byte[] <B>getlob</B>(byte[]&nbsp;key)
1490 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1491 <DL>
1492 <DD>Retrieve whole value of a large object.
1493 The same as `get(key, 0, -1)'.
1494 <P>
1495 <DD><DL>
1496 </DL>
1497 </DD>
1498 <DD><DL>
1499
1500 <DT><B>Throws:</B>
1501 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE><DT><B>See Also:</B><DD><A HREF="../qdbm/Curia.html#get(byte[], int, int)"><CODE>get(byte[], int, int)</CODE></A></DL>
1502 </DD>
1503 </DL>
1504 <HR>
1505
1506 <A NAME="getlob(byte[], int, int)"><!-- --></A><H3>
1507 getlob</H3>
1508 <PRE>
1509 public byte[] <B>getlob</B>(byte[]&nbsp;key,
1510 int&nbsp;start,
1511 int&nbsp;max)
1512 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1513 <DL>
1514 <DD>Retrieve a large object.
1515 <P>
1516 <DD><DL>
1517 </DL>
1518 </DD>
1519 <DD><DL>
1520 <DT><B>Parameters:</B><DD><CODE>key</CODE> - a byte array of a key.<DD><CODE>start</CODE> - the array index of the beginning of the value to be read.<DD><CODE>max</CODE> - the max size to be read. If it is negative, the size to read is unlimited.
1521 <DT><B>Returns:</B><DD>a byte array of the value of the corresponding large object. If the silent flag is
1522 true and no record corresponds, `null' is returned instead of exception.
1523 <DT><B>Throws:</B>
1524 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs, no large object corresponds or the size of the
1525 value of the corresponding is less than the index specified by the parameter `start'.</DL>
1526 </DD>
1527 </DL>
1528 <HR>
1529
1530 <A NAME="inode()"><!-- --></A><H3>
1531 inode</H3>
1532 <PRE>
1533 public int <B>inode</B>()
1534 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1535 <DL>
1536 <DD>Get the inode number of the database.
1537 <P>
1538 <DD><DL>
1539 </DL>
1540 </DD>
1541 <DD><DL>
1542
1543 <DT><B>Returns:</B><DD>the inode number of the database directory.
1544 <DT><B>Throws:</B>
1545 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.</DL>
1546 </DD>
1547 </DL>
1548 <HR>
1549
1550 <A NAME="iterinit()"><!-- --></A><H3>
1551 iterinit</H3>
1552 <PRE>
1553 public void <B>iterinit</B>()
1554 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1555 <DL>
1556 <DD>Initialize the iterator of the database handle.
1557 <P>
1558 <DD><DL>
1559 </DL>
1560 </DD>
1561 <DD><DL>
1562
1563 <DT><B>Throws:</B>
1564 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.<DT><B>Note:</B></DT>
1565 <DD>The iterator is used in order to access the key of every record stored in a database.</DD>
1566 </DL>
1567 </DD>
1568 </DL>
1569 <HR>
1570
1571 <A NAME="iternext()"><!-- --></A><H3>
1572 iternext</H3>
1573 <PRE>
1574 public byte[] <B>iternext</B>()
1575 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1576 <DL>
1577 <DD>Get the next key of the iterator.
1578 <P>
1579 <DD><DL>
1580 </DL>
1581 </DD>
1582 <DD><DL>
1583
1584 <DT><B>Returns:</B><DD>a byte array of the key of the next record. If the silent flag is true and no
1585 record corresponds, `null' is returned instead of exception.
1586 <DT><B>Throws:</B>
1587 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs or no record corresponds.<DT><B>Note:</B></DT>
1588 <DD>It is possible to access every record by iteration of calling this method.
1589 However, it is not assured if updating the database is occurred while the iteration.
1590 Besides, the order of this traversal access method is arbitrary, so it is not assured
1591 that the order of storing matches the one of the traversal access.</DD>
1592 </DL>
1593 </DD>
1594 </DL>
1595 <HR>
1596
1597 <A NAME="mtime()"><!-- --></A><H3>
1598 mtime</H3>
1599 <PRE>
1600 public long <B>mtime</B>()
1601 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1602 <DL>
1603 <DD>Get the last modified time of the database.
1604 <P>
1605 <DD><DL>
1606 </DL>
1607 </DD>
1608 <DD><DL>
1609
1610 <DT><B>Returns:</B><DD>the last modified time of the database.
1611 <DT><B>Throws:</B>
1612 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.</DL>
1613 </DD>
1614 </DL>
1615 <HR>
1616
1617 <A NAME="name()"><!-- --></A><H3>
1618 name</H3>
1619 <PRE>
1620 public java.lang.String <B>name</B>()
1621 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1622 <DL>
1623 <DD>Get the name of the database.
1624 <P>
1625 <DD><DL>
1626 </DL>
1627 </DD>
1628 <DD><DL>
1629
1630 <DT><B>Returns:</B><DD>the string of the name of the database.
1631 <DT><B>Throws:</B>
1632 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.</DL>
1633 </DD>
1634 </DL>
1635 <HR>
1636
1637 <A NAME="nextkey()"><!-- --></A><H3>
1638 nextkey</H3>
1639 <PRE>
1640 public byte[] <B>nextkey</B>()
1641 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1642 <DL>
1643 <DD>Get the next key.
1644 <P>
1645 <DD><DL>
1646 <DT><B>Specified by:</B><DD><CODE><A HREF="../qdbm/ADBM.html#nextkey()">nextkey</A></CODE> in interface <CODE><A HREF="../qdbm/ADBM.html" title="interface in qdbm">ADBM</A></CODE></DL>
1647 </DD>
1648 <DD><DL>
1649
1650 <DT><B>Returns:</B><DD>a byte array of the key of the next record.
1651 <DT><B>Throws:</B>
1652 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs or no record corresponds.</DL>
1653 </DD>
1654 </DL>
1655 <HR>
1656
1657 <A NAME="optimize(int)"><!-- --></A><H3>
1658 optimize</H3>
1659 <PRE>
1660 public void <B>optimize</B>(int&nbsp;bnum)
1661 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1662 <DL>
1663 <DD>Optimize the database.
1664 <P>
1665 <DD><DL>
1666 </DL>
1667 </DD>
1668 <DD><DL>
1669 <DT><B>Parameters:</B><DD><CODE>bnum</CODE> - the number of the elements of each bucket array. If it is not more than 0, the
1670 default value is specified.
1671 <DT><B>Throws:</B>
1672 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.<DT><B>Note:</B></DT>
1673 <DD>In an alternating succession of deleting and storing with overwrite or concatenate,
1674 dispensable regions accumulate. This method is useful to do away with them.</DD>
1675 </DL>
1676 </DD>
1677 </DL>
1678 <HR>
1679
1680 <A NAME="out(byte[])"><!-- --></A><H3>
1681 out</H3>
1682 <PRE>
1683 public boolean <B>out</B>(byte[]&nbsp;key)
1684 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1685 <DL>
1686 <DD>Delete a record.
1687 <P>
1688 <DD><DL>
1689 </DL>
1690 </DD>
1691 <DD><DL>
1692 <DT><B>Parameters:</B><DD><CODE>key</CODE> - a byte array of a key.
1693 <DT><B>Returns:</B><DD>always true. However, if the silent flag is true and no record corresponds, false
1694 is returned instead of exception.
1695 <DT><B>Throws:</B>
1696 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs or no record corresponds.</DL>
1697 </DD>
1698 </DL>
1699 <HR>
1700
1701 <A NAME="outlob(byte[])"><!-- --></A><H3>
1702 outlob</H3>
1703 <PRE>
1704 public boolean <B>outlob</B>(byte[]&nbsp;key)
1705 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1706 <DL>
1707 <DD>Delete a large object.
1708 <P>
1709 <DD><DL>
1710 </DL>
1711 </DD>
1712 <DD><DL>
1713 <DT><B>Parameters:</B><DD><CODE>key</CODE> - a byte array of a key.
1714 <DT><B>Returns:</B><DD>always true. However, if the silent flag is true and no record corresponds, false
1715 is returned instead of exception.
1716 <DT><B>Throws:</B>
1717 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs or no large object corresponds.</DL>
1718 </DD>
1719 </DL>
1720 <HR>
1721
1722 <A NAME="put(byte[], byte[])"><!-- --></A><H3>
1723 put</H3>
1724 <PRE>
1725 public boolean <B>put</B>(byte[]&nbsp;key,
1726 byte[]&nbsp;val)
1727 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1728 <DL>
1729 <DD>Store a record with overwrite.
1730 The same as `put(key, val, Curia.DOVER)'.
1731 <P>
1732 <DD><DL>
1733 </DL>
1734 </DD>
1735 <DD><DL>
1736
1737 <DT><B>Throws:</B>
1738 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE><DT><B>See Also:</B><DD><A HREF="../qdbm/Curia.html#put(byte[], byte[], int)"><CODE>put(byte[], byte[], int)</CODE></A></DL>
1739 </DD>
1740 </DL>
1741 <HR>
1742
1743 <A NAME="put(byte[], byte[], int)"><!-- --></A><H3>
1744 put</H3>
1745 <PRE>
1746 public boolean <B>put</B>(byte[]&nbsp;key,
1747 byte[]&nbsp;val,
1748 int&nbsp;dmode)
1749 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1750 <DL>
1751 <DD>Store a record.
1752 <P>
1753 <DD><DL>
1754 </DL>
1755 </DD>
1756 <DD><DL>
1757 <DT><B>Parameters:</B><DD><CODE>key</CODE> - a byte array of a key.<DD><CODE>val</CODE> - a byte array of a value.<DD><CODE>dmode</CODE> - behavior when the key overlaps, by the following values: `Curia.DOVER',
1758 which means the specified value overwrites the existing one, `Curia.DKEEP', which means the
1759 existing value is kept, `Curia.DCAT', which means the specified value is concatenated at
1760 the end of the existing value.
1761 <DT><B>Returns:</B><DD>always true. However, if the silent flag is true and replace is cancelled, false is
1762 returned instead of exception.
1763 <DT><B>Throws:</B>
1764 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs or replace is cancelled.</DL>
1765 </DD>
1766 </DL>
1767 <HR>
1768
1769 <A NAME="putlob(byte[], byte[])"><!-- --></A><H3>
1770 putlob</H3>
1771 <PRE>
1772 public boolean <B>putlob</B>(byte[]&nbsp;key,
1773 byte[]&nbsp;val)
1774 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1775 <DL>
1776 <DD>Store a large object with overwrite.
1777 The same as `putlob(key, val, Curia.DOVER)'.
1778 <P>
1779 <DD><DL>
1780 </DL>
1781 </DD>
1782 <DD><DL>
1783
1784 <DT><B>Throws:</B>
1785 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE><DT><B>See Also:</B><DD><A HREF="../qdbm/Curia.html#put(byte[], byte[], int)"><CODE>put(byte[], byte[], int)</CODE></A></DL>
1786 </DD>
1787 </DL>
1788 <HR>
1789
1790 <A NAME="putlob(byte[], byte[], int)"><!-- --></A><H3>
1791 putlob</H3>
1792 <PRE>
1793 public boolean <B>putlob</B>(byte[]&nbsp;key,
1794 byte[]&nbsp;val,
1795 int&nbsp;dmode)
1796 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1797 <DL>
1798 <DD>Store a large object.
1799 <P>
1800 <DD><DL>
1801 </DL>
1802 </DD>
1803 <DD><DL>
1804 <DT><B>Parameters:</B><DD><CODE>key</CODE> - a byte array of a key.<DD><CODE>val</CODE> - a byte array of a value.<DD><CODE>dmode</CODE> - behavior when the key overlaps, by the following values: `Curia.DOVER',
1805 which means the specified value overwrites the existing one, `Curia.DKEEP', which means the
1806 existing value is kept, `Curia.DCAT', which means the specified value is concatenated at
1807 the end of the existing value.
1808 <DT><B>Returns:</B><DD>always true. However, if the silent flag is true and replace is cancelled, false is
1809 returned instead of exception.
1810 <DT><B>Throws:</B>
1811 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs or replace is cancelled.</DL>
1812 </DD>
1813 </DL>
1814 <HR>
1815
1816 <A NAME="remove(java.lang.String)"><!-- --></A><H3>
1817 remove</H3>
1818 <PRE>
1819 public static void <B>remove</B>(java.lang.String&nbsp;name)
1820 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1821 <DL>
1822 <DD>Remove a database directory.
1823 <P>
1824 <DD><DL>
1825 </DL>
1826 </DD>
1827 <DD><DL>
1828 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of a database directory.
1829 <DT><B>Throws:</B>
1830 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.</DL>
1831 </DD>
1832 </DL>
1833 <HR>
1834
1835 <A NAME="rnum()"><!-- --></A><H3>
1836 rnum</H3>
1837 <PRE>
1838 public int <B>rnum</B>()
1839 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1840 <DL>
1841 <DD>Get the number of the records stored in the database.
1842 <P>
1843 <DD><DL>
1844 </DL>
1845 </DD>
1846 <DD><DL>
1847
1848 <DT><B>Returns:</B><DD>the number of the records stored in the database.
1849 <DT><B>Throws:</B>
1850 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.</DL>
1851 </DD>
1852 </DL>
1853 <HR>
1854
1855 <A NAME="rnumlob()"><!-- --></A><H3>
1856 rnumlob</H3>
1857 <PRE>
1858 public int <B>rnumlob</B>()
1859 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1860 <DL>
1861 <DD>Get the number of the large objects stored in the database.
1862 <P>
1863 <DD><DL>
1864 </DL>
1865 </DD>
1866 <DD><DL>
1867
1868 <DT><B>Returns:</B><DD>the number of the large objects stored in the database.
1869 <DT><B>Throws:</B>
1870 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.</DL>
1871 </DD>
1872 </DL>
1873 <HR>
1874
1875 <A NAME="setalign(int)"><!-- --></A><H3>
1876 setalign</H3>
1877 <PRE>
1878 public void <B>setalign</B>(int&nbsp;align)
1879 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1880 <DL>
1881 <DD>Set alignment of the database handle.
1882 <P>
1883 <DD><DL>
1884 </DL>
1885 </DD>
1886 <DD><DL>
1887 <DT><B>Parameters:</B><DD><CODE>align</CODE> - the basic size of alignment.
1888 <DT><B>Throws:</B>
1889 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.<DT><B>Note:</B></DT>
1890 <DD>If alignment is set to a database, the efficiency of overwriting values is improved.
1891 The size of alignment is suggested to be average size of the values of the records to be
1892 stored. If alignment is positive, padding whose size is multiple number of the alignment
1893 is placed. If alignment is negative, as `vsiz' is the size of a value, the size of padding
1894 is calculated with `(vsiz / pow(2, abs(align) - 1))'. Because alignment setting is not
1895 saved in a database, you should specify alignment every opening a database.</DD>
1896 </DL>
1897 </DD>
1898 </DL>
1899 <HR>
1900
1901 <A NAME="setfbpsiz(int)"><!-- --></A><H3>
1902 setfbpsiz</H3>
1903 <PRE>
1904 public void <B>setfbpsiz</B>(int&nbsp;size)
1905 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1906 <DL>
1907 <DD>Set the size of the free block pool.
1908 <P>
1909 <DD><DL>
1910 </DL>
1911 </DD>
1912 <DD><DL>
1913 <DT><B>Parameters:</B><DD><CODE>size</CODE> - the size of the free block pool of a database.
1914 <DT><B>Throws:</B>
1915 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.<DT><B>Note:</B></DT>
1916 <DD>The default size of the free block pool is 16. If the size is greater, the space
1917 efficiency of overwriting values is improved with the time efficiency sacrificed.</DD>
1918 </DL>
1919 </DD>
1920 </DL>
1921 <HR>
1922
1923 <A NAME="snaffle(java.lang.String, byte[])"><!-- --></A><H3>
1924 snaffle</H3>
1925 <PRE>
1926 public static byte[] <B>snaffle</B>(java.lang.String&nbsp;name,
1927 byte[]&nbsp;key)
1928 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1929 <DL>
1930 <DD>Retrieve a record directly from a database directory.
1931 <P>
1932 <DD><DL>
1933 </DL>
1934 </DD>
1935 <DD><DL>
1936 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of a database directory.<DD><CODE>key</CODE> - a byte array of a key.
1937 <DT><B>Throws:</B>
1938 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs or no record corresponds.<DT><B>Note:</B></DT>
1939 <DD>Although this method can be used even while the database directory is locked by
1940 another process, it is not assured that recent updated is reflected.</DD>
1941 </DL>
1942 </DD>
1943 </DL>
1944 <HR>
1945
1946 <A NAME="store(byte[], byte[], boolean)"><!-- --></A><H3>
1947 store</H3>
1948 <PRE>
1949 public void <B>store</B>(byte[]&nbsp;key,
1950 byte[]&nbsp;val,
1951 boolean&nbsp;replace)
1952 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1953 <DL>
1954 <DD>Store a record.
1955 <P>
1956 <DD><DL>
1957 <DT><B>Specified by:</B><DD><CODE><A HREF="../qdbm/ADBM.html#store(byte[], byte[], boolean)">store</A></CODE> in interface <CODE><A HREF="../qdbm/ADBM.html" title="interface in qdbm">ADBM</A></CODE></DL>
1958 </DD>
1959 <DD><DL>
1960 <DT><B>Parameters:</B><DD><CODE>key</CODE> - a byte array of a key.<DD><CODE>val</CODE> - a byte array of a value.<DD><CODE>replace</CODE> - whether the existing value is to be overwritten or not.
1961 <DT><B>Throws:</B>
1962 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs or replace is cancelled.</DL>
1963 </DD>
1964 </DL>
1965 <HR>
1966
1967 <A NAME="sync()"><!-- --></A><H3>
1968 sync</H3>
1969 <PRE>
1970 public void <B>sync</B>()
1971 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
1972 <DL>
1973 <DD>Synchronize updating contents with the files and the devices.
1974 <P>
1975 <DD><DL>
1976 </DL>
1977 </DD>
1978 <DD><DL>
1979
1980 <DT><B>Throws:</B>
1981 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.<DT><B>Note:</B></DT>
1982 <DD>This method is useful when another process uses the connected database directory.</DD>
1983 </DL>
1984 </DD>
1985 </DL>
1986 <HR>
1987
1988 <A NAME="version()"><!-- --></A><H3>
1989 version</H3>
1990 <PRE>
1991 public static java.lang.String <B>version</B>()</PRE>
1992 <DL>
1993 <DD>Get the version information.
1994 <P>
1995 <DD><DL>
1996 </DL>
1997 </DD>
1998 <DD><DL>
1999
2000 <DT><B>Returns:</B><DD>a string of the version information.</DL>
2001 </DD>
2002 </DL>
2003 <HR>
2004
2005 <A NAME="vsiz(byte[])"><!-- --></A><H3>
2006 vsiz</H3>
2007 <PRE>
2008 public int <B>vsiz</B>(byte[]&nbsp;key)
2009 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
2010 <DL>
2011 <DD>Get the size of the value of a record.
2012 <P>
2013 <DD><DL>
2014 </DL>
2015 </DD>
2016 <DD><DL>
2017 <DT><B>Parameters:</B><DD><CODE>key</CODE> - a byte array of a key.
2018 <DT><B>Returns:</B><DD>the size of the value of the corresponding record. If the silent flag is true and
2019 no record corresponds, -1 is returned instead of exception.
2020 <DT><B>Throws:</B>
2021 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs or no record corresponds.<DT><B>Note:</B></DT>
2022 <DD>Because this method does not read the entity of a record, it is faster than `get'.</DD>
2023 </DL>
2024 </DD>
2025 </DL>
2026 <HR>
2027
2028 <A NAME="vsizlob(byte[])"><!-- --></A><H3>
2029 vsizlob</H3>
2030 <PRE>
2031 public int <B>vsizlob</B>(byte[]&nbsp;key)
2032 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
2033 <DL>
2034 <DD>Get the size of the value of a large object.
2035 <P>
2036 <DD><DL>
2037 </DL>
2038 </DD>
2039 <DD><DL>
2040 <DT><B>Parameters:</B><DD><CODE>key</CODE> - a byte array of a key.
2041 <DT><B>Returns:</B><DD>the size of the value of the corresponding large object.
2042 <DT><B>Throws:</B>
2043 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs or no large object corresponds.<DT><B>Note:</B></DT>
2044 <DD>Because this method does not read the entity of a large object, it is faster
2045 than `get'.</DD>
2046 </DL>
2047 </DD>
2048 </DL>
2049 <HR>
2050
2051 <A NAME="writable()"><!-- --></A><H3>
2052 writable</H3>
2053 <PRE>
2054 public boolean <B>writable</B>()
2055 throws <A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></PRE>
2056 <DL>
2057 <DD>Check whether the database handle is a writer or not.
2058 <P>
2059 <DD><DL>
2060 </DL>
2061 </DD>
2062 <DD><DL>
2063
2064 <DT><B>Returns:</B><DD>true if the handle is a writer, false if not.
2065 <DT><B>Throws:</B>
2066 <DD><CODE><A HREF="../qdbm/CuriaException.html" title="class in qdbm">CuriaException</A></CODE> - if an error occurs.</DL>
2067 </DD>
2068 </DL>
2069 <!-- ========= END OF CLASS DATA ========= -->
2070 <HR>
2071
2072
2073 <!-- ======= START OF BOTTOM NAVBAR ====== -->
2074 <A NAME="navbar_bottom"><!-- --></A>
2075 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
2076 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
2077 <TR>
2078 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
2079 <A NAME="navbar_bottom_firstrow"><!-- --></A>
2080 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
2081 <TR ALIGN="center" VALIGN="top">
2082 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
2083 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../qdbm/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
2084 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
2085 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
2086 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
2087 </TR>
2088 </TABLE>
2089 </TD>
2090 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
2091 </EM>
2092 </TD>
2093 </TR>
2094
2095 <TR>
2096 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
2097 &nbsp;<A HREF="../qdbm/ADBM.html" title="interface in qdbm"><B>PREV CLASS</B></A>&nbsp;
2098 &nbsp;<A HREF="../qdbm/CuriaException.html" title="class in qdbm"><B>NEXT CLASS</B></A></FONT></TD>
2099 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
2100 <A HREF="../index.html?qdbm/Curia.html" target="_top"><B>FRAMES</B></A> &nbsp;
2101 &nbsp;<A HREF="Curia.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
2102 &nbsp;<SCRIPT type="text/javascript">
2103 <!--
2104 if(window==top) {
2105 document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
2106 }
2107 //-->
2108 </SCRIPT>
2109 <NOSCRIPT>
2110 <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
2111 </NOSCRIPT>
2112
2113
2114 </FONT></TD>
2115 </TR>
2116 <TR>
2117 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
2118 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>
2119 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
2120 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>
2121 </TR>
2122 </TABLE>
2123 <A NAME="skip-navbar_bottom"></A>
2124 <!-- ======== END OF BOTTOM NAVBAR ======= -->
2125
2126 <HR>
2127
2128 </BODY>
2129 </HTML>