Debian Codegraph @

lang/sql/jdbc/doc/SQLite/Database.html

raw
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.4.2_03) on Thu Feb 09 06:54:00 CET 2012 -->
6 <TITLE>
7 Database (SQLite Java Wrapper)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="SQLite.Database class">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 parent.document.title="Database (SQLite Java Wrapper)";
18 }
19 </SCRIPT>
20
21 </HEAD>
22
23 <BODY BGCOLOR="white" onload="windowTitle();">
24
25
26 <!-- ========= START OF TOP NAVBAR ======= -->
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30 <TR>
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
39 </TR>
40 </TABLE>
41 </TD>
42 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
43 </EM>
44 </TD>
45 </TR>
46
47 <TR>
48 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
49 &nbsp;<A HREF="../SQLite/Constants.html" title="class in SQLite"><B>PREV CLASS</B></A>&nbsp;
50 &nbsp;<A HREF="../SQLite/Exception.html" title="class in SQLite"><B>NEXT CLASS</B></A></FONT></TD>
51 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52 <A HREF="../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
53 &nbsp;<A HREF="Database.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
54 &nbsp;<SCRIPT type="text/javascript">
55 <!--
56 if(window==top) {
57 document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
58 }
59 //-->
60 </SCRIPT>
61 <NOSCRIPT>
62 <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
63 </NOSCRIPT>
64
65 </FONT></TD>
66 </TR>
67 <TR>
68 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
69 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>
70 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
71 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>
72 </TR>
73 </TABLE>
74 <A NAME="skip-navbar_top"></A>
75 <!-- ========= END OF TOP NAVBAR ========= -->
76
77 <HR>
78 <!-- ======== START OF CLASS DATA ======== -->
79 <H2>
80 <FONT SIZE="-1">
81 SQLite</FONT>
82 <BR>
83 Class Database</H2>
84 <PRE>
85 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
86 <IMG SRC="../resources/inherit.gif" ALT="extended by"><B>SQLite.Database</B>
87 </PRE>
88 <HR>
89 <DL>
90 <DT>public class <B>Database</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
91
92 <P>
93 Main class wrapping an SQLite database.
94 <P>
95
96 <P>
97 <HR>
98
99 <P>
100 <!-- ======== NESTED CLASS SUMMARY ======== -->
101
102
103 <!-- =========== FIELD SUMMARY =========== -->
104
105 <A NAME="field_summary"><!-- --></A>
106 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
107 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
108 <TD COLSPAN=2><FONT SIZE="+2">
109 <B>Field Summary</B></FONT></TD>
110 </TR>
111 <TR BGCOLOR="white" CLASS="TableRowColor">
112 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
113 <CODE>protected &nbsp;int</CODE></FONT></TD>
114 <TD><CODE><B><A HREF="../SQLite/Database.html#error_code">error_code</A></B></CODE>
115
116 <BR>
117 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internal last error code for exec() methods.</TD>
118 </TR>
119 <TR BGCOLOR="white" CLASS="TableRowColor">
120 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
121 <CODE>protected &nbsp;long</CODE></FONT></TD>
122 <TD><CODE><B><A HREF="../SQLite/Database.html#handle">handle</A></B></CODE>
123
124 <BR>
125 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internal handle for the native SQLite API.</TD>
126 </TR>
127 </TABLE>
128 &nbsp;
129 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
130
131 <A NAME="constructor_summary"><!-- --></A>
132 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
133 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
134 <TD COLSPAN=2><FONT SIZE="+2">
135 <B>Constructor Summary</B></FONT></TD>
136 </TR>
137 <TR BGCOLOR="white" CLASS="TableRowColor">
138 <TD><CODE><B><A HREF="../SQLite/Database.html#Database()">Database</A></B>()</CODE>
139
140 <BR>
141 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
142 </TR>
143 </TABLE>
144 &nbsp;
145 <!-- ========== METHOD SUMMARY =========== -->
146
147 <A NAME="method_summary"><!-- --></A>
148 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
149 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
150 <TD COLSPAN=2><FONT SIZE="+2">
151 <B>Method Summary</B></FONT></TD>
152 </TR>
153 <TR BGCOLOR="white" CLASS="TableRowColor">
154 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
155 <CODE>private static&nbsp;void</CODE></FONT></TD>
156 <TD><CODE><B><A HREF="../SQLite/Database.html#_backup(SQLite.Backup, SQLite.Database, java.lang.String, SQLite.Database, java.lang.String)">_backup</A></B>(<A HREF="../SQLite/Backup.html" title="class in SQLite">Backup</A>&nbsp;b,
157 <A HREF="../SQLite/Database.html" title="class in SQLite">Database</A>&nbsp;dest,
158 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;destName,
159 <A HREF="../SQLite/Database.html" title="class in SQLite">Database</A>&nbsp;src,
160 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;srcName)</CODE>
161
162 <BR>
163 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
164 </TR>
165 <TR BGCOLOR="white" CLASS="TableRowColor">
166 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
167 <CODE>private &nbsp;void</CODE></FONT></TD>
168 <TD><CODE><B><A HREF="../SQLite/Database.html#_busy_handler(SQLite.BusyHandler)">_busy_handler</A></B>(<A HREF="../SQLite/BusyHandler.html" title="interface in SQLite">BusyHandler</A>&nbsp;bh)</CODE>
169
170 <BR>
171 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
172 </TR>
173 <TR BGCOLOR="white" CLASS="TableRowColor">
174 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175 <CODE>private &nbsp;void</CODE></FONT></TD>
176 <TD><CODE><B><A HREF="../SQLite/Database.html#_busy_timeout(int)">_busy_timeout</A></B>(int&nbsp;ms)</CODE>
177
178 <BR>
179 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
180 </TR>
181 <TR BGCOLOR="white" CLASS="TableRowColor">
182 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
183 <CODE>private &nbsp;long</CODE></FONT></TD>
184 <TD><CODE><B><A HREF="../SQLite/Database.html#_changes()">_changes</A></B>()</CODE>
185
186 <BR>
187 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
188 </TR>
189 <TR BGCOLOR="white" CLASS="TableRowColor">
190 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
191 <CODE>private &nbsp;void</CODE></FONT></TD>
192 <TD><CODE><B><A HREF="../SQLite/Database.html#_close()">_close</A></B>()</CODE>
193
194 <BR>
195 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
196 </TR>
197 <TR BGCOLOR="white" CLASS="TableRowColor">
198 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
199 <CODE>private static&nbsp;boolean</CODE></FONT></TD>
200 <TD><CODE><B><A HREF="../SQLite/Database.html#_complete(java.lang.String)">_complete</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql)</CODE>
201
202 <BR>
203 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
204 </TR>
205 <TR BGCOLOR="white" CLASS="TableRowColor">
206 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207 <CODE>private &nbsp;void</CODE></FONT></TD>
208 <TD><CODE><B><A HREF="../SQLite/Database.html#_create_aggregate(java.lang.String, int, SQLite.Function)">_create_aggregate</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
209 int&nbsp;nargs,
210 <A HREF="../SQLite/Function.html" title="interface in SQLite">Function</A>&nbsp;f)</CODE>
211
212 <BR>
213 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
214 </TR>
215 <TR BGCOLOR="white" CLASS="TableRowColor">
216 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217 <CODE>private &nbsp;void</CODE></FONT></TD>
218 <TD><CODE><B><A HREF="../SQLite/Database.html#_create_function(java.lang.String, int, SQLite.Function)">_create_function</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
219 int&nbsp;nargs,
220 <A HREF="../SQLite/Function.html" title="interface in SQLite">Function</A>&nbsp;f)</CODE>
221
222 <BR>
223 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
224 </TR>
225 <TR BGCOLOR="white" CLASS="TableRowColor">
226 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
227 <CODE>private &nbsp;int</CODE></FONT></TD>
228 <TD><CODE><B><A HREF="../SQLite/Database.html#_db_status(int, int[], boolean)">_db_status</A></B>(int&nbsp;op,
229 int[]&nbsp;info,
230 boolean&nbsp;flag)</CODE>
231
232 <BR>
233 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
234 </TR>
235 <TR BGCOLOR="white" CLASS="TableRowColor">
236 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
237 <CODE>protected static&nbsp;boolean</CODE></FONT></TD>
238 <TD><CODE><B><A HREF="../SQLite/Database.html#_enable_shared_cache(boolean)">_enable_shared_cache</A></B>(boolean&nbsp;onoff)</CODE>
239
240 <BR>
241 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enable/disable shared cache mode (SQLite 3.x only).</TD>
242 </TR>
243 <TR BGCOLOR="white" CLASS="TableRowColor">
244 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
245 <CODE>private &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
246 <TD><CODE><B><A HREF="../SQLite/Database.html#_errmsg()">_errmsg</A></B>()</CODE>
247
248 <BR>
249 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
250 </TR>
251 <TR BGCOLOR="white" CLASS="TableRowColor">
252 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
253 <CODE>private &nbsp;void</CODE></FONT></TD>
254 <TD><CODE><B><A HREF="../SQLite/Database.html#_exec(java.lang.String, SQLite.Callback)">_exec</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
255 <A HREF="../SQLite/Callback.html" title="interface in SQLite">Callback</A>&nbsp;cb)</CODE>
256
257 <BR>
258 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
259 </TR>
260 <TR BGCOLOR="white" CLASS="TableRowColor">
261 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
262 <CODE>private &nbsp;void</CODE></FONT></TD>
263 <TD><CODE><B><A HREF="../SQLite/Database.html#_exec(java.lang.String, SQLite.Callback, java.lang.String[])">_exec</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
264 <A HREF="../SQLite/Callback.html" title="interface in SQLite">Callback</A>&nbsp;cb,
265 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args)</CODE>
266
267 <BR>
268 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
269 </TR>
270 <TR BGCOLOR="white" CLASS="TableRowColor">
271 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272 <CODE>private &nbsp;void</CODE></FONT></TD>
273 <TD><CODE><B><A HREF="../SQLite/Database.html#_finalize()">_finalize</A></B>()</CODE>
274
275 <BR>
276 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
277 </TR>
278 <TR BGCOLOR="white" CLASS="TableRowColor">
279 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
280 <CODE>private &nbsp;void</CODE></FONT></TD>
281 <TD><CODE><B><A HREF="../SQLite/Database.html#_function_type(java.lang.String, int)">_function_type</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
282 int&nbsp;type)</CODE>
283
284 <BR>
285 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
286 </TR>
287 <TR BGCOLOR="white" CLASS="TableRowColor">
288 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
289 <CODE>private &nbsp;void</CODE></FONT></TD>
290 <TD><CODE><B><A HREF="../SQLite/Database.html#_interrupt()">_interrupt</A></B>()</CODE>
291
292 <BR>
293 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
294 </TR>
295 <TR BGCOLOR="white" CLASS="TableRowColor">
296 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
297 <CODE>private &nbsp;void</CODE></FONT></TD>
298 <TD><CODE><B><A HREF="../SQLite/Database.html#_key(byte[])">_key</A></B>(byte[]&nbsp;ekey)</CODE>
299
300 <BR>
301 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
302 </TR>
303 <TR BGCOLOR="white" CLASS="TableRowColor">
304 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
305 <CODE>private &nbsp;long</CODE></FONT></TD>
306 <TD><CODE><B><A HREF="../SQLite/Database.html#_last_insert_rowid()">_last_insert_rowid</A></B>()</CODE>
307
308 <BR>
309 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
310 </TR>
311 <TR BGCOLOR="white" CLASS="TableRowColor">
312 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
313 <CODE>private &nbsp;void</CODE></FONT></TD>
314 <TD><CODE><B><A HREF="../SQLite/Database.html#_open_aux_file(java.lang.String)">_open_aux_file</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;filename)</CODE>
315
316 <BR>
317 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
318 </TR>
319 <TR BGCOLOR="white" CLASS="TableRowColor">
320 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
321 <CODE>private &nbsp;void</CODE></FONT></TD>
322 <TD><CODE><B><A HREF="../SQLite/Database.html#_open_blob(java.lang.String, java.lang.String, java.lang.String, long, boolean, SQLite.Blob)">_open_blob</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;db,
323 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;table,
324 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;column,
325 long&nbsp;row,
326 boolean&nbsp;rw,
327 <A HREF="../SQLite/Blob.html" title="class in SQLite">Blob</A>&nbsp;blob)</CODE>
328
329 <BR>
330 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internal SQLite open blob method.</TD>
331 </TR>
332 <TR BGCOLOR="white" CLASS="TableRowColor">
333 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
334 <CODE>private &nbsp;void</CODE></FONT></TD>
335 <TD><CODE><B><A HREF="../SQLite/Database.html#_open(java.lang.String, int)">_open</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;filename,
336 int&nbsp;mode)</CODE>
337
338 <BR>
339 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
340 </TR>
341 <TR BGCOLOR="white" CLASS="TableRowColor">
342 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
343 <CODE>private &nbsp;void</CODE></FONT></TD>
344 <TD><CODE><B><A HREF="../SQLite/Database.html#_open4(java.lang.String, int, java.lang.String, boolean)">_open4</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;filename,
345 int&nbsp;mode,
346 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;vfs,
347 boolean&nbsp;ver2)</CODE>
348
349 <BR>
350 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
351 </TR>
352 <TR BGCOLOR="white" CLASS="TableRowColor">
353 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
354 <CODE>private &nbsp;void</CODE></FONT></TD>
355 <TD><CODE><B><A HREF="../SQLite/Database.html#_profile(SQLite.Profile)">_profile</A></B>(<A HREF="../SQLite/Profile.html" title="interface in SQLite">Profile</A>&nbsp;pr)</CODE>
356
357 <BR>
358 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
359 </TR>
360 <TR BGCOLOR="white" CLASS="TableRowColor">
361 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
362 <CODE>private &nbsp;void</CODE></FONT></TD>
363 <TD><CODE><B><A HREF="../SQLite/Database.html#_progress_handler(int, SQLite.ProgressHandler)">_progress_handler</A></B>(int&nbsp;n,
364 <A HREF="../SQLite/ProgressHandler.html" title="interface in SQLite">ProgressHandler</A>&nbsp;p)</CODE>
365
366 <BR>
367 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
368 </TR>
369 <TR BGCOLOR="white" CLASS="TableRowColor">
370 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
371 <CODE>private &nbsp;void</CODE></FONT></TD>
372 <TD><CODE><B><A HREF="../SQLite/Database.html#_rekey(byte[])">_rekey</A></B>(byte[]&nbsp;ekey)</CODE>
373
374 <BR>
375 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
376 </TR>
377 <TR BGCOLOR="white" CLASS="TableRowColor">
378 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
379 <CODE>private &nbsp;void</CODE></FONT></TD>
380 <TD><CODE><B><A HREF="../SQLite/Database.html#_set_authorizer(SQLite.Authorizer)">_set_authorizer</A></B>(<A HREF="../SQLite/Authorizer.html" title="interface in SQLite">Authorizer</A>&nbsp;auth)</CODE>
381
382 <BR>
383 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
384 </TR>
385 <TR BGCOLOR="white" CLASS="TableRowColor">
386 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
387 <CODE>private &nbsp;void</CODE></FONT></TD>
388 <TD><CODE><B><A HREF="../SQLite/Database.html#_set_encoding(java.lang.String)">_set_encoding</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;enc)</CODE>
389
390 <BR>
391 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
392 </TR>
393 <TR BGCOLOR="white" CLASS="TableRowColor">
394 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
395 <CODE>private static&nbsp;int</CODE></FONT></TD>
396 <TD><CODE><B><A HREF="../SQLite/Database.html#_status(int, int[], boolean)">_status</A></B>(int&nbsp;op,
397 int[]&nbsp;info,
398 boolean&nbsp;flag)</CODE>
399
400 <BR>
401 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
402 </TR>
403 <TR BGCOLOR="white" CLASS="TableRowColor">
404 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
405 <CODE>private &nbsp;void</CODE></FONT></TD>
406 <TD><CODE><B><A HREF="../SQLite/Database.html#_trace(SQLite.Trace)">_trace</A></B>(<A HREF="../SQLite/Trace.html" title="interface in SQLite">Trace</A>&nbsp;tr)</CODE>
407
408 <BR>
409 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
410 </TR>
411 <TR BGCOLOR="white" CLASS="TableRowColor">
412 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
413 <CODE>&nbsp;<A HREF="../SQLite/Backup.html" title="class in SQLite">Backup</A></CODE></FONT></TD>
414 <TD><CODE><B><A HREF="../SQLite/Database.html#backup(SQLite.Database, java.lang.String, java.lang.String)">backup</A></B>(<A HREF="../SQLite/Database.html" title="class in SQLite">Database</A>&nbsp;dest,
415 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;destName,
416 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;srcName)</CODE>
417
418 <BR>
419 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initiate a database backup, SQLite 3.x only.</TD>
420 </TR>
421 <TR BGCOLOR="white" CLASS="TableRowColor">
422 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
423 <CODE>&nbsp;void</CODE></FONT></TD>
424 <TD><CODE><B><A HREF="../SQLite/Database.html#busy_handler(SQLite.BusyHandler)">busy_handler</A></B>(<A HREF="../SQLite/BusyHandler.html" title="interface in SQLite">BusyHandler</A>&nbsp;bh)</CODE>
425
426 <BR>
427 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Establish a busy callback method which gets called when
428 an SQLite table is locked.</TD>
429 </TR>
430 <TR BGCOLOR="white" CLASS="TableRowColor">
431 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
432 <CODE>&nbsp;void</CODE></FONT></TD>
433 <TD><CODE><B><A HREF="../SQLite/Database.html#busy_timeout(int)">busy_timeout</A></B>(int&nbsp;ms)</CODE>
434
435 <BR>
436 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the timeout for waiting for an SQLite table to become
437 unlocked.</TD>
438 </TR>
439 <TR BGCOLOR="white" CLASS="TableRowColor">
440 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
441 <CODE>&nbsp;long</CODE></FONT></TD>
442 <TD><CODE><B><A HREF="../SQLite/Database.html#changes()">changes</A></B>()</CODE>
443
444 <BR>
445 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the number of changed rows for the last statement.</TD>
446 </TR>
447 <TR BGCOLOR="white" CLASS="TableRowColor">
448 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
449 <CODE>&nbsp;void</CODE></FONT></TD>
450 <TD><CODE><B><A HREF="../SQLite/Database.html#close()">close</A></B>()</CODE>
451
452 <BR>
453 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Close the underlying SQLite database file.</TD>
454 </TR>
455 <TR BGCOLOR="white" CLASS="TableRowColor">
456 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
457 <CODE>&nbsp;<A HREF="../SQLite/Vm.html" title="class in SQLite">Vm</A></CODE></FONT></TD>
458 <TD><CODE><B><A HREF="../SQLite/Database.html#compile(java.lang.String)">compile</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql)</CODE>
459
460 <BR>
461 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compile and return SQLite VM for SQL statement.</TD>
462 </TR>
463 <TR BGCOLOR="white" CLASS="TableRowColor">
464 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
465 <CODE>&nbsp;<A HREF="../SQLite/Vm.html" title="class in SQLite">Vm</A></CODE></FONT></TD>
466 <TD><CODE><B><A HREF="../SQLite/Database.html#compile(java.lang.String, java.lang.String[])">compile</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
467 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args)</CODE>
468
469 <BR>
470 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compile and return SQLite VM for SQL statement.</TD>
471 </TR>
472 <TR BGCOLOR="white" CLASS="TableRowColor">
473 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
474 <CODE>static&nbsp;boolean</CODE></FONT></TD>
475 <TD><CODE><B><A HREF="../SQLite/Database.html#complete(java.lang.String)">complete</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql)</CODE>
476
477 <BR>
478 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See if an SQL statement is complete.</TD>
479 </TR>
480 <TR BGCOLOR="white" CLASS="TableRowColor">
481 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
482 <CODE>&nbsp;void</CODE></FONT></TD>
483 <TD><CODE><B><A HREF="../SQLite/Database.html#create_aggregate(java.lang.String, int, SQLite.Function)">create_aggregate</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
484 int&nbsp;nargs,
485 <A HREF="../SQLite/Function.html" title="interface in SQLite">Function</A>&nbsp;f)</CODE>
486
487 <BR>
488 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create aggregate function.</TD>
489 </TR>
490 <TR BGCOLOR="white" CLASS="TableRowColor">
491 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
492 <CODE>&nbsp;void</CODE></FONT></TD>
493 <TD><CODE><B><A HREF="../SQLite/Database.html#create_function(java.lang.String, int, SQLite.Function)">create_function</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
494 int&nbsp;nargs,
495 <A HREF="../SQLite/Function.html" title="interface in SQLite">Function</A>&nbsp;f)</CODE>
496
497 <BR>
498 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create regular function.</TD>
499 </TR>
500 <TR BGCOLOR="white" CLASS="TableRowColor">
501 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
502 <CODE>&nbsp;int</CODE></FONT></TD>
503 <TD><CODE><B><A HREF="../SQLite/Database.html#db_status(int, int[], boolean)">db_status</A></B>(int&nbsp;op,
504 int[]&nbsp;info,
505 boolean&nbsp;flag)</CODE>
506
507 <BR>
508 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return information on SQLite connection status.</TD>
509 </TR>
510 <TR BGCOLOR="white" CLASS="TableRowColor">
511 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
512 <CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
513 <TD><CODE><B><A HREF="../SQLite/Database.html#dbversion()">dbversion</A></B>()</CODE>
514
515 <BR>
516 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return SQLite version number as string.</TD>
517 </TR>
518 <TR BGCOLOR="white" CLASS="TableRowColor">
519 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
520 <CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
521 <TD><CODE><B><A HREF="../SQLite/Database.html#error_message()">error_message</A></B>()</CODE>
522
523 <BR>
524 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return last error message of SQLite3 engine.</TD>
525 </TR>
526 <TR BGCOLOR="white" CLASS="TableRowColor">
527 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
528 <CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
529 <TD><CODE><B><A HREF="../SQLite/Database.html#error_string(int)">error_string</A></B>(int&nbsp;error_code)</CODE>
530
531 <BR>
532 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return error string given SQLite error code (SQLite2).</TD>
533 </TR>
534 <TR BGCOLOR="white" CLASS="TableRowColor">
535 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
536 <CODE>&nbsp;void</CODE></FONT></TD>
537 <TD><CODE><B><A HREF="../SQLite/Database.html#exec(java.lang.String, SQLite.Callback)">exec</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
538 <A HREF="../SQLite/Callback.html" title="interface in SQLite">Callback</A>&nbsp;cb)</CODE>
539
540 <BR>
541 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Execute an SQL statement and invoke callback methods
542 for each row of the result set.</TD>
543 </TR>
544 <TR BGCOLOR="white" CLASS="TableRowColor">
545 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
546 <CODE>&nbsp;void</CODE></FONT></TD>
547 <TD><CODE><B><A HREF="../SQLite/Database.html#exec(java.lang.String, SQLite.Callback, java.lang.String[])">exec</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
548 <A HREF="../SQLite/Callback.html" title="interface in SQLite">Callback</A>&nbsp;cb,
549 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args)</CODE>
550
551 <BR>
552 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Execute an SQL statement and invoke callback methods
553 for each row of the result set.</TD>
554 </TR>
555 <TR BGCOLOR="white" CLASS="TableRowColor">
556 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
557 <CODE>protected &nbsp;void</CODE></FONT></TD>
558 <TD><CODE><B><A HREF="../SQLite/Database.html#finalize()">finalize</A></B>()</CODE>
559
560 <BR>
561 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Destructor for object.</TD>
562 </TR>
563 <TR BGCOLOR="white" CLASS="TableRowColor">
564 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
565 <CODE>&nbsp;void</CODE></FONT></TD>
566 <TD><CODE><B><A HREF="../SQLite/Database.html#function_type(java.lang.String, int)">function_type</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
567 int&nbsp;type)</CODE>
568
569 <BR>
570 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set function return type.</TD>
571 </TR>
572 <TR BGCOLOR="white" CLASS="TableRowColor">
573 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
574 <CODE>&nbsp;<A HREF="../SQLite/TableResult.html" title="class in SQLite">TableResult</A></CODE></FONT></TD>
575 <TD><CODE><B><A HREF="../SQLite/Database.html#get_table(java.lang.String)">get_table</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql)</CODE>
576
577 <BR>
578 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenience method to retrieve an entire result
579 set into memory.</TD>
580 </TR>
581 <TR BGCOLOR="white" CLASS="TableRowColor">
582 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
583 <CODE>&nbsp;<A HREF="../SQLite/TableResult.html" title="class in SQLite">TableResult</A></CODE></FONT></TD>
584 <TD><CODE><B><A HREF="../SQLite/Database.html#get_table(java.lang.String, int)">get_table</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
585 int&nbsp;maxrows)</CODE>
586
587 <BR>
588 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenience method to retrieve an entire result
589 set into memory.</TD>
590 </TR>
591 <TR BGCOLOR="white" CLASS="TableRowColor">
592 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
593 <CODE>&nbsp;<A HREF="../SQLite/TableResult.html" title="class in SQLite">TableResult</A></CODE></FONT></TD>
594 <TD><CODE><B><A HREF="../SQLite/Database.html#get_table(java.lang.String, int, java.lang.String[])">get_table</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
595 int&nbsp;maxrows,
596 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args)</CODE>
597
598 <BR>
599 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenience method to retrieve an entire result
600 set into memory.</TD>
601 </TR>
602 <TR BGCOLOR="white" CLASS="TableRowColor">
603 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
604 <CODE>&nbsp;<A HREF="../SQLite/TableResult.html" title="class in SQLite">TableResult</A></CODE></FONT></TD>
605 <TD><CODE><B><A HREF="../SQLite/Database.html#get_table(java.lang.String, java.lang.String[])">get_table</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
606 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args)</CODE>
607
608 <BR>
609 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenience method to retrieve an entire result
610 set into memory.</TD>
611 </TR>
612 <TR BGCOLOR="white" CLASS="TableRowColor">
613 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
614 <CODE>&nbsp;void</CODE></FONT></TD>
615 <TD><CODE><B><A HREF="../SQLite/Database.html#get_table(java.lang.String, java.lang.String[], SQLite.TableResult)">get_table</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
616 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args,
617 <A HREF="../SQLite/TableResult.html" title="class in SQLite">TableResult</A>&nbsp;tbl)</CODE>
618
619 <BR>
620 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenience method to retrieve an entire result
621 set into memory.</TD>
622 </TR>
623 <TR BGCOLOR="white" CLASS="TableRowColor">
624 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
625 <CODE>private static&nbsp;void</CODE></FONT></TD>
626 <TD><CODE><B><A HREF="../SQLite/Database.html#internal_init()">internal_init</A></B>()</CODE>
627
628 <BR>
629 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internal native initializer.</TD>
630 </TR>
631 <TR BGCOLOR="white" CLASS="TableRowColor">
632 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
633 <CODE>&nbsp;void</CODE></FONT></TD>
634 <TD><CODE><B><A HREF="../SQLite/Database.html#interrupt()">interrupt</A></B>()</CODE>
635
636 <BR>
637 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Abort the current SQLite operation.</TD>
638 </TR>
639 <TR BGCOLOR="white" CLASS="TableRowColor">
640 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
641 <CODE>&nbsp;boolean</CODE></FONT></TD>
642 <TD><CODE><B><A HREF="../SQLite/Database.html#is3()">is3</A></B>()</CODE>
643
644 <BR>
645 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check type of open database.</TD>
646 </TR>
647 <TR BGCOLOR="white" CLASS="TableRowColor">
648 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
649 <CODE>static&nbsp;double</CODE></FONT></TD>
650 <TD><CODE><B><A HREF="../SQLite/Database.html#julian_from_long(long)">julian_from_long</A></B>(long&nbsp;ms)</CODE>
651
652 <BR>
653 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Make julian date value from java.lang.Date</TD>
654 </TR>
655 <TR BGCOLOR="white" CLASS="TableRowColor">
656 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
657 <CODE>&nbsp;void</CODE></FONT></TD>
658 <TD><CODE><B><A HREF="../SQLite/Database.html#key(byte[])">key</A></B>(byte[]&nbsp;ekey)</CODE>
659
660 <BR>
661 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specify key for encrypted database.</TD>
662 </TR>
663 <TR BGCOLOR="white" CLASS="TableRowColor">
664 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
665 <CODE>&nbsp;void</CODE></FONT></TD>
666 <TD><CODE><B><A HREF="../SQLite/Database.html#key(java.lang.String)">key</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;skey)</CODE>
667
668 <BR>
669 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specify key for encrypted database.</TD>
670 </TR>
671 <TR BGCOLOR="white" CLASS="TableRowColor">
672 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
673 <CODE>&nbsp;int</CODE></FONT></TD>
674 <TD><CODE><B><A HREF="../SQLite/Database.html#last_error()">last_error</A></B>()</CODE>
675
676 <BR>
677 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the code of the last error occured in
678 any of the exec() methods.</TD>
679 </TR>
680 <TR BGCOLOR="white" CLASS="TableRowColor">
681 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
682 <CODE>&nbsp;long</CODE></FONT></TD>
683 <TD><CODE><B><A HREF="../SQLite/Database.html#last_insert_rowid()">last_insert_rowid</A></B>()</CODE>
684
685 <BR>
686 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the row identifier of the last inserted
687 row.</TD>
688 </TR>
689 <TR BGCOLOR="white" CLASS="TableRowColor">
690 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
691 <CODE>static&nbsp;long</CODE></FONT></TD>
692 <TD><CODE><B><A HREF="../SQLite/Database.html#long_from_julian(double)">long_from_julian</A></B>(double&nbsp;d)</CODE>
693
694 <BR>
695 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Make long value from julian date for java.lang.Date</TD>
696 </TR>
697 <TR BGCOLOR="white" CLASS="TableRowColor">
698 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
699 <CODE>static&nbsp;long</CODE></FONT></TD>
700 <TD><CODE><B><A HREF="../SQLite/Database.html#long_from_julian(java.lang.String)">long_from_julian</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;s)</CODE>
701
702 <BR>
703 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Make long value from julian date for java.lang.Date</TD>
704 </TR>
705 <TR BGCOLOR="white" CLASS="TableRowColor">
706 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
707 <CODE>&nbsp;void</CODE></FONT></TD>
708 <TD><CODE><B><A HREF="../SQLite/Database.html#open_aux_file(java.lang.String)">open_aux_file</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;filename)</CODE>
709
710 <BR>
711 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open SQLite auxiliary database file for temporary
712 tables.</TD>
713 </TR>
714 <TR BGCOLOR="white" CLASS="TableRowColor">
715 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
716 <CODE>&nbsp;<A HREF="../SQLite/Blob.html" title="class in SQLite">Blob</A></CODE></FONT></TD>
717 <TD><CODE><B><A HREF="../SQLite/Database.html#open_blob(java.lang.String, java.lang.String, java.lang.String, long, boolean)">open_blob</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;db,
718 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;table,
719 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;column,
720 long&nbsp;row,
721 boolean&nbsp;rw)</CODE>
722
723 <BR>
724 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open an SQLite3 blob.</TD>
725 </TR>
726 <TR BGCOLOR="white" CLASS="TableRowColor">
727 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
728 <CODE>&nbsp;void</CODE></FONT></TD>
729 <TD><CODE><B><A HREF="../SQLite/Database.html#open(java.lang.String, int)">open</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;filename,
730 int&nbsp;mode)</CODE>
731
732 <BR>
733 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open an SQLite database file.</TD>
734 </TR>
735 <TR BGCOLOR="white" CLASS="TableRowColor">
736 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
737 <CODE>&nbsp;void</CODE></FONT></TD>
738 <TD><CODE><B><A HREF="../SQLite/Database.html#open(java.lang.String, int, java.lang.String)">open</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;filename,
739 int&nbsp;mode,
740 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;vfs)</CODE>
741
742 <BR>
743 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open an SQLite database file.</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="../SQLite/Database.html#open(java.lang.String, int, java.lang.String, boolean)">open</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;filename,
749 int&nbsp;mode,
750 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;vfs,
751 boolean&nbsp;ver2)</CODE>
752
753 <BR>
754 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open an SQLite database file.</TD>
755 </TR>
756 <TR BGCOLOR="white" CLASS="TableRowColor">
757 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
758 <CODE>&nbsp;<A HREF="../SQLite/Stmt.html" title="class in SQLite">Stmt</A></CODE></FONT></TD>
759 <TD><CODE><B><A HREF="../SQLite/Database.html#prepare(java.lang.String)">prepare</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql)</CODE>
760
761 <BR>
762 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prepare and return SQLite3 statement for SQL.</TD>
763 </TR>
764 <TR BGCOLOR="white" CLASS="TableRowColor">
765 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
766 <CODE>&nbsp;void</CODE></FONT></TD>
767 <TD><CODE><B><A HREF="../SQLite/Database.html#profile(SQLite.Profile)">profile</A></B>(<A HREF="../SQLite/Profile.html" title="interface in SQLite">Profile</A>&nbsp;pr)</CODE>
768
769 <BR>
770 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set profile function.</TD>
771 </TR>
772 <TR BGCOLOR="white" CLASS="TableRowColor">
773 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
774 <CODE>&nbsp;void</CODE></FONT></TD>
775 <TD><CODE><B><A HREF="../SQLite/Database.html#progress_handler(int, SQLite.ProgressHandler)">progress_handler</A></B>(int&nbsp;n,
776 <A HREF="../SQLite/ProgressHandler.html" title="interface in SQLite">ProgressHandler</A>&nbsp;p)</CODE>
777
778 <BR>
779 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Establish a progress callback method which gets called after
780 N SQLite VM opcodes.</TD>
781 </TR>
782 <TR BGCOLOR="white" CLASS="TableRowColor">
783 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
784 <CODE>&nbsp;void</CODE></FONT></TD>
785 <TD><CODE><B><A HREF="../SQLite/Database.html#rekey(byte[])">rekey</A></B>(byte[]&nbsp;ekey)</CODE>
786
787 <BR>
788 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Change the key of a encrypted database.</TD>
789 </TR>
790 <TR BGCOLOR="white" CLASS="TableRowColor">
791 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
792 <CODE>&nbsp;void</CODE></FONT></TD>
793 <TD><CODE><B><A HREF="../SQLite/Database.html#rekey(java.lang.String)">rekey</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;skey)</CODE>
794
795 <BR>
796 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Change the key of a encrypted database.</TD>
797 </TR>
798 <TR BGCOLOR="white" CLASS="TableRowColor">
799 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
800 <CODE>&nbsp;void</CODE></FONT></TD>
801 <TD><CODE><B><A HREF="../SQLite/Database.html#set_authorizer(SQLite.Authorizer)">set_authorizer</A></B>(<A HREF="../SQLite/Authorizer.html" title="interface in SQLite">Authorizer</A>&nbsp;auth)</CODE>
802
803 <BR>
804 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set authorizer function.</TD>
805 </TR>
806 <TR BGCOLOR="white" CLASS="TableRowColor">
807 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
808 <CODE>&nbsp;void</CODE></FONT></TD>
809 <TD><CODE><B><A HREF="../SQLite/Database.html#set_encoding(java.lang.String)">set_encoding</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;enc)</CODE>
810
811 <BR>
812 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set character encoding.</TD>
813 </TR>
814 <TR BGCOLOR="white" CLASS="TableRowColor">
815 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
816 <CODE>protected &nbsp;void</CODE></FONT></TD>
817 <TD><CODE><B><A HREF="../SQLite/Database.html#set_last_error(int)">set_last_error</A></B>(int&nbsp;error_code)</CODE>
818
819 <BR>
820 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internal: set error code.</TD>
821 </TR>
822 <TR BGCOLOR="white" CLASS="TableRowColor">
823 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
824 <CODE>static&nbsp;int</CODE></FONT></TD>
825 <TD><CODE><B><A HREF="../SQLite/Database.html#status(int, int[], boolean)">status</A></B>(int&nbsp;op,
826 int[]&nbsp;info,
827 boolean&nbsp;flag)</CODE>
828
829 <BR>
830 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return information on SQLite runtime status.</TD>
831 </TR>
832 <TR BGCOLOR="white" CLASS="TableRowColor">
833 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
834 <CODE>private &nbsp;void</CODE></FONT></TD>
835 <TD><CODE><B><A HREF="../SQLite/Database.html#stmt_prepare(java.lang.String, SQLite.Stmt)">stmt_prepare</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
836 <A HREF="../SQLite/Stmt.html" title="class in SQLite">Stmt</A>&nbsp;stmt)</CODE>
837
838 <BR>
839 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internal SQLite3 prepare method.</TD>
840 </TR>
841 <TR BGCOLOR="white" CLASS="TableRowColor">
842 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
843 <CODE>&nbsp;void</CODE></FONT></TD>
844 <TD><CODE><B><A HREF="../SQLite/Database.html#trace(SQLite.Trace)">trace</A></B>(<A HREF="../SQLite/Trace.html" title="interface in SQLite">Trace</A>&nbsp;tr)</CODE>
845
846 <BR>
847 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set trace function.</TD>
848 </TR>
849 <TR BGCOLOR="white" CLASS="TableRowColor">
850 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
851 <CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
852 <TD><CODE><B><A HREF="../SQLite/Database.html#version()">version</A></B>()</CODE>
853
854 <BR>
855 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return SQLite version number as string.</TD>
856 </TR>
857 <TR BGCOLOR="white" CLASS="TableRowColor">
858 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
859 <CODE>private &nbsp;void</CODE></FONT></TD>
860 <TD><CODE><B><A HREF="../SQLite/Database.html#vm_compile_args(java.lang.String, SQLite.Vm, java.lang.String[])">vm_compile_args</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
861 <A HREF="../SQLite/Vm.html" title="class in SQLite">Vm</A>&nbsp;vm,
862 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args)</CODE>
863
864 <BR>
865 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internal compile method, SQLite 3.0 only.</TD>
866 </TR>
867 <TR BGCOLOR="white" CLASS="TableRowColor">
868 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
869 <CODE>private &nbsp;void</CODE></FONT></TD>
870 <TD><CODE><B><A HREF="../SQLite/Database.html#vm_compile(java.lang.String, SQLite.Vm)">vm_compile</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
871 <A HREF="../SQLite/Vm.html" title="class in SQLite">Vm</A>&nbsp;vm)</CODE>
872
873 <BR>
874 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internal compile method.</TD>
875 </TR>
876 </TABLE>
877 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
878 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
879 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
880 <TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD>
881 </TR>
882 <TR BGCOLOR="white" CLASS="TableRowColor">
883 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
884 </TR>
885 </TABLE>
886 &nbsp;
887 <P>
888
889 <!-- ============ FIELD DETAIL =========== -->
890
891 <A NAME="field_detail"><!-- --></A>
892 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
893 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
894 <TD COLSPAN=1><FONT SIZE="+2">
895 <B>Field Detail</B></FONT></TD>
896 </TR>
897 </TABLE>
898
899 <A NAME="error_code"><!-- --></A><H3>
900 error_code</H3>
901 <PRE>
902 protected int <B>error_code</B></PRE>
903 <DL>
904 <DD>Internal last error code for exec() methods.
905 <P>
906 <DL>
907 </DL>
908 </DL>
909 <HR>
910
911 <A NAME="handle"><!-- --></A><H3>
912 handle</H3>
913 <PRE>
914 protected long <B>handle</B></PRE>
915 <DL>
916 <DD>Internal handle for the native SQLite API.
917 <P>
918 <DL>
919 </DL>
920 </DL>
921
922 <!-- ========= CONSTRUCTOR DETAIL ======== -->
923
924 <A NAME="constructor_detail"><!-- --></A>
925 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
926 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
927 <TD COLSPAN=1><FONT SIZE="+2">
928 <B>Constructor Detail</B></FONT></TD>
929 </TR>
930 </TABLE>
931
932 <A NAME="Database()"><!-- --></A><H3>
933 Database</H3>
934 <PRE>
935 public <B>Database</B>()</PRE>
936 <DL>
937 </DL>
938
939 <!-- ============ METHOD DETAIL ========== -->
940
941 <A NAME="method_detail"><!-- --></A>
942 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
943 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
944 <TD COLSPAN=1><FONT SIZE="+2">
945 <B>Method Detail</B></FONT></TD>
946 </TR>
947 </TABLE>
948
949 <A NAME="_backup(SQLite.Backup, SQLite.Database, java.lang.String, SQLite.Database, java.lang.String)"><!-- --></A><H3>
950 _backup</H3>
951 <PRE>
952 private static void <B>_backup</B>(<A HREF="../SQLite/Backup.html" title="class in SQLite">Backup</A>&nbsp;b,
953 <A HREF="../SQLite/Database.html" title="class in SQLite">Database</A>&nbsp;dest,
954 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;destName,
955 <A HREF="../SQLite/Database.html" title="class in SQLite">Database</A>&nbsp;src,
956 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;srcName)
957 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
958 <DL>
959 <DD><DL>
960
961 <DT><B>Throws:</B>
962 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
963 </DD>
964 </DL>
965 <HR>
966
967 <A NAME="_busy_handler(SQLite.BusyHandler)"><!-- --></A><H3>
968 _busy_handler</H3>
969 <PRE>
970 private void <B>_busy_handler</B>(<A HREF="../SQLite/BusyHandler.html" title="interface in SQLite">BusyHandler</A>&nbsp;bh)</PRE>
971 <DL>
972 <DD><DL>
973 </DL>
974 </DD>
975 </DL>
976 <HR>
977
978 <A NAME="_busy_timeout(int)"><!-- --></A><H3>
979 _busy_timeout</H3>
980 <PRE>
981 private void <B>_busy_timeout</B>(int&nbsp;ms)</PRE>
982 <DL>
983 <DD><DL>
984 </DL>
985 </DD>
986 </DL>
987 <HR>
988
989 <A NAME="_changes()"><!-- --></A><H3>
990 _changes</H3>
991 <PRE>
992 private long <B>_changes</B>()</PRE>
993 <DL>
994 <DD><DL>
995 </DL>
996 </DD>
997 </DL>
998 <HR>
999
1000 <A NAME="_close()"><!-- --></A><H3>
1001 _close</H3>
1002 <PRE>
1003 private void <B>_close</B>()
1004 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1005 <DL>
1006 <DD><DL>
1007
1008 <DT><B>Throws:</B>
1009 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1010 </DD>
1011 </DL>
1012 <HR>
1013
1014 <A NAME="_complete(java.lang.String)"><!-- --></A><H3>
1015 _complete</H3>
1016 <PRE>
1017 private static boolean <B>_complete</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql)</PRE>
1018 <DL>
1019 <DD><DL>
1020 </DL>
1021 </DD>
1022 </DL>
1023 <HR>
1024
1025 <A NAME="_create_aggregate(java.lang.String, int, SQLite.Function)"><!-- --></A><H3>
1026 _create_aggregate</H3>
1027 <PRE>
1028 private void <B>_create_aggregate</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
1029 int&nbsp;nargs,
1030 <A HREF="../SQLite/Function.html" title="interface in SQLite">Function</A>&nbsp;f)</PRE>
1031 <DL>
1032 <DD><DL>
1033 </DL>
1034 </DD>
1035 </DL>
1036 <HR>
1037
1038 <A NAME="_create_function(java.lang.String, int, SQLite.Function)"><!-- --></A><H3>
1039 _create_function</H3>
1040 <PRE>
1041 private void <B>_create_function</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
1042 int&nbsp;nargs,
1043 <A HREF="../SQLite/Function.html" title="interface in SQLite">Function</A>&nbsp;f)</PRE>
1044 <DL>
1045 <DD><DL>
1046 </DL>
1047 </DD>
1048 </DL>
1049 <HR>
1050
1051 <A NAME="_db_status(int, int[], boolean)"><!-- --></A><H3>
1052 _db_status</H3>
1053 <PRE>
1054 private int <B>_db_status</B>(int&nbsp;op,
1055 int[]&nbsp;info,
1056 boolean&nbsp;flag)</PRE>
1057 <DL>
1058 <DD><DL>
1059 </DL>
1060 </DD>
1061 </DL>
1062 <HR>
1063
1064 <A NAME="_enable_shared_cache(boolean)"><!-- --></A><H3>
1065 _enable_shared_cache</H3>
1066 <PRE>
1067 protected static boolean <B>_enable_shared_cache</B>(boolean&nbsp;onoff)</PRE>
1068 <DL>
1069 <DD>Enable/disable shared cache mode (SQLite 3.x only).
1070 <P>
1071 <DD><DL>
1072 <DT><B>Parameters:</B><DD><CODE>onoff</CODE> - boolean to enable or disable shared cache
1073 <DT><B>Returns:</B><DD>boolean when true, function supported/succeeded</DL>
1074 </DD>
1075 </DL>
1076 <HR>
1077
1078 <A NAME="_errmsg()"><!-- --></A><H3>
1079 _errmsg</H3>
1080 <PRE>
1081 private <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>_errmsg</B>()</PRE>
1082 <DL>
1083 <DD><DL>
1084 </DL>
1085 </DD>
1086 </DL>
1087 <HR>
1088
1089 <A NAME="_exec(java.lang.String, SQLite.Callback)"><!-- --></A><H3>
1090 _exec</H3>
1091 <PRE>
1092 private void <B>_exec</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
1093 <A HREF="../SQLite/Callback.html" title="interface in SQLite">Callback</A>&nbsp;cb)
1094 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1095 <DL>
1096 <DD><DL>
1097
1098 <DT><B>Throws:</B>
1099 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1100 </DD>
1101 </DL>
1102 <HR>
1103
1104 <A NAME="_exec(java.lang.String, SQLite.Callback, java.lang.String[])"><!-- --></A><H3>
1105 _exec</H3>
1106 <PRE>
1107 private void <B>_exec</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
1108 <A HREF="../SQLite/Callback.html" title="interface in SQLite">Callback</A>&nbsp;cb,
1109 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args)
1110 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1111 <DL>
1112 <DD><DL>
1113
1114 <DT><B>Throws:</B>
1115 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1116 </DD>
1117 </DL>
1118 <HR>
1119
1120 <A NAME="_finalize()"><!-- --></A><H3>
1121 _finalize</H3>
1122 <PRE>
1123 private void <B>_finalize</B>()</PRE>
1124 <DL>
1125 <DD><DL>
1126 </DL>
1127 </DD>
1128 </DL>
1129 <HR>
1130
1131 <A NAME="_function_type(java.lang.String, int)"><!-- --></A><H3>
1132 _function_type</H3>
1133 <PRE>
1134 private void <B>_function_type</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
1135 int&nbsp;type)</PRE>
1136 <DL>
1137 <DD><DL>
1138 </DL>
1139 </DD>
1140 </DL>
1141 <HR>
1142
1143 <A NAME="_interrupt()"><!-- --></A><H3>
1144 _interrupt</H3>
1145 <PRE>
1146 private void <B>_interrupt</B>()</PRE>
1147 <DL>
1148 <DD><DL>
1149 </DL>
1150 </DD>
1151 </DL>
1152 <HR>
1153
1154 <A NAME="_key(byte[])"><!-- --></A><H3>
1155 _key</H3>
1156 <PRE>
1157 private void <B>_key</B>(byte[]&nbsp;ekey)</PRE>
1158 <DL>
1159 <DD><DL>
1160 </DL>
1161 </DD>
1162 </DL>
1163 <HR>
1164
1165 <A NAME="_last_insert_rowid()"><!-- --></A><H3>
1166 _last_insert_rowid</H3>
1167 <PRE>
1168 private long <B>_last_insert_rowid</B>()</PRE>
1169 <DL>
1170 <DD><DL>
1171 </DL>
1172 </DD>
1173 </DL>
1174 <HR>
1175
1176 <A NAME="_open_aux_file(java.lang.String)"><!-- --></A><H3>
1177 _open_aux_file</H3>
1178 <PRE>
1179 private void <B>_open_aux_file</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;filename)
1180 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1181 <DL>
1182 <DD><DL>
1183
1184 <DT><B>Throws:</B>
1185 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1186 </DD>
1187 </DL>
1188 <HR>
1189
1190 <A NAME="_open_blob(java.lang.String, java.lang.String, java.lang.String, long, boolean, SQLite.Blob)"><!-- --></A><H3>
1191 _open_blob</H3>
1192 <PRE>
1193 private void <B>_open_blob</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;db,
1194 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;table,
1195 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;column,
1196 long&nbsp;row,
1197 boolean&nbsp;rw,
1198 <A HREF="../SQLite/Blob.html" title="class in SQLite">Blob</A>&nbsp;blob)
1199 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1200 <DL>
1201 <DD>Internal SQLite open blob method.
1202 <P>
1203 <DD><DL>
1204 <DT><B>Parameters:</B><DD><CODE>db</CODE> - database name<DD><CODE>table</CODE> - table name<DD><CODE>column</CODE> - column name<DD><CODE>row</CODE> - row identifier<DD><CODE>rw</CODE> - if true, open for read-write, else read-only<DD><CODE>blob</CODE> - Blob object
1205 <DT><B>Throws:</B>
1206 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1207 </DD>
1208 </DL>
1209 <HR>
1210
1211 <A NAME="_open(java.lang.String, int)"><!-- --></A><H3>
1212 _open</H3>
1213 <PRE>
1214 private void <B>_open</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;filename,
1215 int&nbsp;mode)
1216 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1217 <DL>
1218 <DD><DL>
1219
1220 <DT><B>Throws:</B>
1221 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1222 </DD>
1223 </DL>
1224 <HR>
1225
1226 <A NAME="_open4(java.lang.String, int, java.lang.String, boolean)"><!-- --></A><H3>
1227 _open4</H3>
1228 <PRE>
1229 private void <B>_open4</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;filename,
1230 int&nbsp;mode,
1231 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;vfs,
1232 boolean&nbsp;ver2)
1233 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1234 <DL>
1235 <DD><DL>
1236
1237 <DT><B>Throws:</B>
1238 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1239 </DD>
1240 </DL>
1241 <HR>
1242
1243 <A NAME="_profile(SQLite.Profile)"><!-- --></A><H3>
1244 _profile</H3>
1245 <PRE>
1246 private void <B>_profile</B>(<A HREF="../SQLite/Profile.html" title="interface in SQLite">Profile</A>&nbsp;pr)</PRE>
1247 <DL>
1248 <DD><DL>
1249 </DL>
1250 </DD>
1251 </DL>
1252 <HR>
1253
1254 <A NAME="_progress_handler(int, SQLite.ProgressHandler)"><!-- --></A><H3>
1255 _progress_handler</H3>
1256 <PRE>
1257 private void <B>_progress_handler</B>(int&nbsp;n,
1258 <A HREF="../SQLite/ProgressHandler.html" title="interface in SQLite">ProgressHandler</A>&nbsp;p)</PRE>
1259 <DL>
1260 <DD><DL>
1261 </DL>
1262 </DD>
1263 </DL>
1264 <HR>
1265
1266 <A NAME="_rekey(byte[])"><!-- --></A><H3>
1267 _rekey</H3>
1268 <PRE>
1269 private void <B>_rekey</B>(byte[]&nbsp;ekey)</PRE>
1270 <DL>
1271 <DD><DL>
1272 </DL>
1273 </DD>
1274 </DL>
1275 <HR>
1276
1277 <A NAME="_set_authorizer(SQLite.Authorizer)"><!-- --></A><H3>
1278 _set_authorizer</H3>
1279 <PRE>
1280 private void <B>_set_authorizer</B>(<A HREF="../SQLite/Authorizer.html" title="interface in SQLite">Authorizer</A>&nbsp;auth)</PRE>
1281 <DL>
1282 <DD><DL>
1283 </DL>
1284 </DD>
1285 </DL>
1286 <HR>
1287
1288 <A NAME="_set_encoding(java.lang.String)"><!-- --></A><H3>
1289 _set_encoding</H3>
1290 <PRE>
1291 private void <B>_set_encoding</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;enc)
1292 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1293 <DL>
1294 <DD><DL>
1295
1296 <DT><B>Throws:</B>
1297 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1298 </DD>
1299 </DL>
1300 <HR>
1301
1302 <A NAME="_status(int, int[], boolean)"><!-- --></A><H3>
1303 _status</H3>
1304 <PRE>
1305 private static int <B>_status</B>(int&nbsp;op,
1306 int[]&nbsp;info,
1307 boolean&nbsp;flag)</PRE>
1308 <DL>
1309 <DD><DL>
1310 </DL>
1311 </DD>
1312 </DL>
1313 <HR>
1314
1315 <A NAME="_trace(SQLite.Trace)"><!-- --></A><H3>
1316 _trace</H3>
1317 <PRE>
1318 private void <B>_trace</B>(<A HREF="../SQLite/Trace.html" title="interface in SQLite">Trace</A>&nbsp;tr)</PRE>
1319 <DL>
1320 <DD><DL>
1321 </DL>
1322 </DD>
1323 </DL>
1324 <HR>
1325
1326 <A NAME="backup(SQLite.Database, java.lang.String, java.lang.String)"><!-- --></A><H3>
1327 backup</H3>
1328 <PRE>
1329 public <A HREF="../SQLite/Backup.html" title="class in SQLite">Backup</A> <B>backup</B>(<A HREF="../SQLite/Database.html" title="class in SQLite">Database</A>&nbsp;dest,
1330 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;destName,
1331 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;srcName)
1332 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1333 <DL>
1334 <DD>Initiate a database backup, SQLite 3.x only.
1335 <P>
1336 <DD><DL>
1337 <DT><B>Parameters:</B><DD><CODE>dest</CODE> - destination database<DD><CODE>destName</CODE> - schema of destination database to be backed up<DD><CODE>srcName</CODE> - schema of source database
1338 <DT><B>Returns:</B><DD>Backup object to perform the backup operation
1339 <DT><B>Throws:</B>
1340 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1341 </DD>
1342 </DL>
1343 <HR>
1344
1345 <A NAME="busy_handler(SQLite.BusyHandler)"><!-- --></A><H3>
1346 busy_handler</H3>
1347 <PRE>
1348 public void <B>busy_handler</B>(<A HREF="../SQLite/BusyHandler.html" title="interface in SQLite">BusyHandler</A>&nbsp;bh)</PRE>
1349 <DL>
1350 <DD>Establish a busy callback method which gets called when
1351 an SQLite table is locked.
1352 <P>
1353 <DD><DL>
1354 <DT><B>Parameters:</B><DD><CODE>bh</CODE> - the object implementing the busy callback method</DL>
1355 </DD>
1356 </DL>
1357 <HR>
1358
1359 <A NAME="busy_timeout(int)"><!-- --></A><H3>
1360 busy_timeout</H3>
1361 <PRE>
1362 public void <B>busy_timeout</B>(int&nbsp;ms)</PRE>
1363 <DL>
1364 <DD>Set the timeout for waiting for an SQLite table to become
1365 unlocked.
1366 <P>
1367 <DD><DL>
1368 <DT><B>Parameters:</B><DD><CODE>ms</CODE> - number of millisecond to wait</DL>
1369 </DD>
1370 </DL>
1371 <HR>
1372
1373 <A NAME="changes()"><!-- --></A><H3>
1374 changes</H3>
1375 <PRE>
1376 public long <B>changes</B>()</PRE>
1377 <DL>
1378 <DD>Return the number of changed rows for the last statement.
1379 <P>
1380 <DD><DL>
1381 </DL>
1382 </DD>
1383 </DL>
1384 <HR>
1385
1386 <A NAME="close()"><!-- --></A><H3>
1387 close</H3>
1388 <PRE>
1389 public void <B>close</B>()
1390 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1391 <DL>
1392 <DD>Close the underlying SQLite database file.
1393 <P>
1394 <DD><DL>
1395
1396 <DT><B>Throws:</B>
1397 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1398 </DD>
1399 </DL>
1400 <HR>
1401
1402 <A NAME="compile(java.lang.String)"><!-- --></A><H3>
1403 compile</H3>
1404 <PRE>
1405 public <A HREF="../SQLite/Vm.html" title="class in SQLite">Vm</A> <B>compile</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql)
1406 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1407 <DL>
1408 <DD>Compile and return SQLite VM for SQL statement. Only available
1409 in SQLite 2.8.0 and above, otherwise a no-op.
1410 <P>
1411 <DD><DL>
1412 <DT><B>Parameters:</B><DD><CODE>sql</CODE> - SQL statement to be compiled
1413 <DT><B>Returns:</B><DD>a Vm object
1414 <DT><B>Throws:</B>
1415 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1416 </DD>
1417 </DL>
1418 <HR>
1419
1420 <A NAME="compile(java.lang.String, java.lang.String[])"><!-- --></A><H3>
1421 compile</H3>
1422 <PRE>
1423 public <A HREF="../SQLite/Vm.html" title="class in SQLite">Vm</A> <B>compile</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
1424 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args)
1425 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1426 <DL>
1427 <DD>Compile and return SQLite VM for SQL statement. Only available
1428 in SQLite 3.0 and above, otherwise a no-op.
1429 <P>
1430 <DD><DL>
1431 <DT><B>Parameters:</B><DD><CODE>sql</CODE> - SQL statement to be compiled<DD><CODE>args</CODE> - arguments for the SQL statement, '%q' substitution
1432 <DT><B>Returns:</B><DD>a Vm object
1433 <DT><B>Throws:</B>
1434 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1435 </DD>
1436 </DL>
1437 <HR>
1438
1439 <A NAME="complete(java.lang.String)"><!-- --></A><H3>
1440 complete</H3>
1441 <PRE>
1442 public static boolean <B>complete</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql)</PRE>
1443 <DL>
1444 <DD>See if an SQL statement is complete.
1445 Returns true if the input string comprises
1446 one or more complete SQL statements.
1447 <P>
1448 <DD><DL>
1449 <DT><B>Parameters:</B><DD><CODE>sql</CODE> - the SQL statement to be checked</DL>
1450 </DD>
1451 </DL>
1452 <HR>
1453
1454 <A NAME="create_aggregate(java.lang.String, int, SQLite.Function)"><!-- --></A><H3>
1455 create_aggregate</H3>
1456 <PRE>
1457 public void <B>create_aggregate</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
1458 int&nbsp;nargs,
1459 <A HREF="../SQLite/Function.html" title="interface in SQLite">Function</A>&nbsp;f)</PRE>
1460 <DL>
1461 <DD>Create aggregate function.
1462 <P>
1463 <DD><DL>
1464 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the new function<DD><CODE>nargs</CODE> - number of arguments to function<DD><CODE>f</CODE> - interface of function</DL>
1465 </DD>
1466 </DL>
1467 <HR>
1468
1469 <A NAME="create_function(java.lang.String, int, SQLite.Function)"><!-- --></A><H3>
1470 create_function</H3>
1471 <PRE>
1472 public void <B>create_function</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
1473 int&nbsp;nargs,
1474 <A HREF="../SQLite/Function.html" title="interface in SQLite">Function</A>&nbsp;f)</PRE>
1475 <DL>
1476 <DD>Create regular function.
1477 <P>
1478 <DD><DL>
1479 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the new function<DD><CODE>nargs</CODE> - number of arguments to function<DD><CODE>f</CODE> - interface of function</DL>
1480 </DD>
1481 </DL>
1482 <HR>
1483
1484 <A NAME="db_status(int, int[], boolean)"><!-- --></A><H3>
1485 db_status</H3>
1486 <PRE>
1487 public int <B>db_status</B>(int&nbsp;op,
1488 int[]&nbsp;info,
1489 boolean&nbsp;flag)</PRE>
1490 <DL>
1491 <DD>Return information on SQLite connection status.
1492 Only available in SQLite 3.6 and above,
1493 otherwise a no-op.
1494 <P>
1495 <DD><DL>
1496 <DT><B>Parameters:</B><DD><CODE>op</CODE> - operation code<DD><CODE>info</CODE> - output buffer, must be able to hold two
1497 values (current/highwater)<DD><CODE>flag</CODE> - reset flag
1498 <DT><B>Returns:</B><DD>SQLite error code</DL>
1499 </DD>
1500 </DL>
1501 <HR>
1502
1503 <A NAME="dbversion()"><!-- --></A><H3>
1504 dbversion</H3>
1505 <PRE>
1506 public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>dbversion</B>()</PRE>
1507 <DL>
1508 <DD>Return SQLite version number as string.
1509 If the database is not open, <tt>unknown</tt> is returned.
1510 <P>
1511 <DD><DL>
1512 </DL>
1513 </DD>
1514 </DL>
1515 <HR>
1516
1517 <A NAME="error_message()"><!-- --></A><H3>
1518 error_message</H3>
1519 <PRE>
1520 public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>error_message</B>()</PRE>
1521 <DL>
1522 <DD>Return last error message of SQLite3 engine.
1523 <P>
1524 <DD><DL>
1525
1526 <DT><B>Returns:</B><DD>error string or null</DL>
1527 </DD>
1528 </DL>
1529 <HR>
1530
1531 <A NAME="error_string(int)"><!-- --></A><H3>
1532 error_string</H3>
1533 <PRE>
1534 public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>error_string</B>(int&nbsp;error_code)</PRE>
1535 <DL>
1536 <DD>Return error string given SQLite error code (SQLite2).
1537 <P>
1538 <DD><DL>
1539 <DT><B>Parameters:</B><DD><CODE>error_code</CODE> - the error code
1540 <DT><B>Returns:</B><DD>error string</DL>
1541 </DD>
1542 </DL>
1543 <HR>
1544
1545 <A NAME="exec(java.lang.String, SQLite.Callback)"><!-- --></A><H3>
1546 exec</H3>
1547 <PRE>
1548 public void <B>exec</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
1549 <A HREF="../SQLite/Callback.html" title="interface in SQLite">Callback</A>&nbsp;cb)
1550 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1551 <DL>
1552 <DD>Execute an SQL statement and invoke callback methods
1553 for each row of the result set.<P>
1554
1555 It the method fails, an SQLite.Exception is thrown and
1556 an error code is set, which later can be retrieved by
1557 the last_error() method.
1558 <P>
1559 <DD><DL>
1560 <DT><B>Parameters:</B><DD><CODE>sql</CODE> - the SQL statement to be executed<DD><CODE>cb</CODE> - the object implementing the callback methods
1561 <DT><B>Throws:</B>
1562 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1563 </DD>
1564 </DL>
1565 <HR>
1566
1567 <A NAME="exec(java.lang.String, SQLite.Callback, java.lang.String[])"><!-- --></A><H3>
1568 exec</H3>
1569 <PRE>
1570 public void <B>exec</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
1571 <A HREF="../SQLite/Callback.html" title="interface in SQLite">Callback</A>&nbsp;cb,
1572 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args)
1573 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1574 <DL>
1575 <DD>Execute an SQL statement and invoke callback methods
1576 for each row of the result set. Each '%q' or %Q in the
1577 statement string is substituted by its corresponding
1578 element in the argument vector.
1579 <BR><BR>
1580 Example:<BR>
1581 <PRE>
1582 String args[] = new String[1];
1583 args[0] = "tab%";
1584 db.exec("select * from sqlite_master where type like '%q'",
1585 null, args);
1586 </PRE>
1587
1588 It the method fails, an SQLite.Exception is thrown and
1589 an error code is set, which later can be retrieved by
1590 the last_error() method.
1591 <P>
1592 <DD><DL>
1593 <DT><B>Parameters:</B><DD><CODE>sql</CODE> - the SQL statement to be executed<DD><CODE>cb</CODE> - the object implementing the callback methods<DD><CODE>args</CODE> - arguments for the SQL statement, '%q' substitution
1594 <DT><B>Throws:</B>
1595 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1596 </DD>
1597 </DL>
1598 <HR>
1599
1600 <A NAME="finalize()"><!-- --></A><H3>
1601 finalize</H3>
1602 <PRE>
1603 protected void <B>finalize</B>()</PRE>
1604 <DL>
1605 <DD>Destructor for object.
1606 <P>
1607 <DD><DL>
1608 </DL>
1609 </DD>
1610 </DL>
1611 <HR>
1612
1613 <A NAME="function_type(java.lang.String, int)"><!-- --></A><H3>
1614 function_type</H3>
1615 <PRE>
1616 public void <B>function_type</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
1617 int&nbsp;type)</PRE>
1618 <DL>
1619 <DD>Set function return type. Only available in SQLite 2.6.0 and
1620 above, otherwise a no-op.
1621 <P>
1622 <DD><DL>
1623 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the function whose return type is to be set<DD><CODE>type</CODE> - return type code, e.g. SQLite.Constants.SQLITE_NUMERIC</DL>
1624 </DD>
1625 </DL>
1626 <HR>
1627
1628 <A NAME="get_table(java.lang.String)"><!-- --></A><H3>
1629 get_table</H3>
1630 <PRE>
1631 public <A HREF="../SQLite/TableResult.html" title="class in SQLite">TableResult</A> <B>get_table</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql)
1632 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1633 <DL>
1634 <DD>Convenience method to retrieve an entire result
1635 set into memory.
1636 <P>
1637 <DD><DL>
1638 <DT><B>Parameters:</B><DD><CODE>sql</CODE> - the SQL statement to be executed
1639 <DT><B>Returns:</B><DD>result set
1640 <DT><B>Throws:</B>
1641 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1642 </DD>
1643 </DL>
1644 <HR>
1645
1646 <A NAME="get_table(java.lang.String, int)"><!-- --></A><H3>
1647 get_table</H3>
1648 <PRE>
1649 public <A HREF="../SQLite/TableResult.html" title="class in SQLite">TableResult</A> <B>get_table</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
1650 int&nbsp;maxrows)
1651 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1652 <DL>
1653 <DD>Convenience method to retrieve an entire result
1654 set into memory.
1655 <P>
1656 <DD><DL>
1657 <DT><B>Parameters:</B><DD><CODE>sql</CODE> - the SQL statement to be executed<DD><CODE>maxrows</CODE> - the max. number of rows to retrieve
1658 <DT><B>Returns:</B><DD>result set
1659 <DT><B>Throws:</B>
1660 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1661 </DD>
1662 </DL>
1663 <HR>
1664
1665 <A NAME="get_table(java.lang.String, int, java.lang.String[])"><!-- --></A><H3>
1666 get_table</H3>
1667 <PRE>
1668 public <A HREF="../SQLite/TableResult.html" title="class in SQLite">TableResult</A> <B>get_table</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
1669 int&nbsp;maxrows,
1670 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args)
1671 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1672 <DL>
1673 <DD>Convenience method to retrieve an entire result
1674 set into memory.
1675 <P>
1676 <DD><DL>
1677 <DT><B>Parameters:</B><DD><CODE>sql</CODE> - the SQL statement to be executed<DD><CODE>maxrows</CODE> - the max. number of rows to retrieve<DD><CODE>args</CODE> - arguments for the SQL statement, '%q' substitution
1678 <DT><B>Returns:</B><DD>result set
1679 <DT><B>Throws:</B>
1680 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1681 </DD>
1682 </DL>
1683 <HR>
1684
1685 <A NAME="get_table(java.lang.String, java.lang.String[])"><!-- --></A><H3>
1686 get_table</H3>
1687 <PRE>
1688 public <A HREF="../SQLite/TableResult.html" title="class in SQLite">TableResult</A> <B>get_table</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
1689 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args)
1690 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1691 <DL>
1692 <DD>Convenience method to retrieve an entire result
1693 set into memory.
1694 <P>
1695 <DD><DL>
1696 <DT><B>Parameters:</B><DD><CODE>sql</CODE> - the SQL statement to be executed<DD><CODE>args</CODE> - arguments for the SQL statement, '%q' substitution
1697 <DT><B>Returns:</B><DD>result set
1698 <DT><B>Throws:</B>
1699 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1700 </DD>
1701 </DL>
1702 <HR>
1703
1704 <A NAME="get_table(java.lang.String, java.lang.String[], SQLite.TableResult)"><!-- --></A><H3>
1705 get_table</H3>
1706 <PRE>
1707 public void <B>get_table</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
1708 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args,
1709 <A HREF="../SQLite/TableResult.html" title="class in SQLite">TableResult</A>&nbsp;tbl)
1710 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1711 <DL>
1712 <DD>Convenience method to retrieve an entire result
1713 set into memory.
1714 <P>
1715 <DD><DL>
1716 <DT><B>Parameters:</B><DD><CODE>sql</CODE> - the SQL statement to be executed<DD><CODE>args</CODE> - arguments for the SQL statement, '%q' substitution<DD><CODE>tbl</CODE> - TableResult to receive result set
1717 <DT><B>Throws:</B>
1718 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1719 </DD>
1720 </DL>
1721 <HR>
1722
1723 <A NAME="internal_init()"><!-- --></A><H3>
1724 internal_init</H3>
1725 <PRE>
1726 private static void <B>internal_init</B>()</PRE>
1727 <DL>
1728 <DD>Internal native initializer.
1729 <P>
1730 <DD><DL>
1731 </DL>
1732 </DD>
1733 </DL>
1734 <HR>
1735
1736 <A NAME="interrupt()"><!-- --></A><H3>
1737 interrupt</H3>
1738 <PRE>
1739 public void <B>interrupt</B>()</PRE>
1740 <DL>
1741 <DD>Abort the current SQLite operation.
1742 <P>
1743 <DD><DL>
1744 </DL>
1745 </DD>
1746 </DL>
1747 <HR>
1748
1749 <A NAME="is3()"><!-- --></A><H3>
1750 is3</H3>
1751 <PRE>
1752 public boolean <B>is3</B>()</PRE>
1753 <DL>
1754 <DD>Check type of open database.
1755 <P>
1756 <DD><DL>
1757
1758 <DT><B>Returns:</B><DD>true if SQLite3 database</DL>
1759 </DD>
1760 </DL>
1761 <HR>
1762
1763 <A NAME="julian_from_long(long)"><!-- --></A><H3>
1764 julian_from_long</H3>
1765 <PRE>
1766 public static double <B>julian_from_long</B>(long&nbsp;ms)</PRE>
1767 <DL>
1768 <DD>Make julian date value from java.lang.Date
1769 <P>
1770 <DD><DL>
1771 <DT><B>Parameters:</B><DD><CODE>ms</CODE> - millisecond value of java.lang.Date
1772 <DT><B>Returns:</B><DD>double</DL>
1773 </DD>
1774 </DL>
1775 <HR>
1776
1777 <A NAME="key(byte[])"><!-- --></A><H3>
1778 key</H3>
1779 <PRE>
1780 public void <B>key</B>(byte[]&nbsp;ekey)
1781 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1782 <DL>
1783 <DD>Specify key for encrypted database. To be called
1784 right after open() on SQLite3 databases.
1785 Not available in public releases of SQLite.
1786 <P>
1787 <DD><DL>
1788 <DT><B>Parameters:</B><DD><CODE>ekey</CODE> - the key as byte array
1789 <DT><B>Throws:</B>
1790 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1791 </DD>
1792 </DL>
1793 <HR>
1794
1795 <A NAME="key(java.lang.String)"><!-- --></A><H3>
1796 key</H3>
1797 <PRE>
1798 public void <B>key</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;skey)
1799 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1800 <DL>
1801 <DD>Specify key for encrypted database. To be called
1802 right after open() on SQLite3 databases.
1803 Not available in public releases of SQLite.
1804 <P>
1805 <DD><DL>
1806 <DT><B>Parameters:</B><DD><CODE>skey</CODE> - the key as String
1807 <DT><B>Throws:</B>
1808 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1809 </DD>
1810 </DL>
1811 <HR>
1812
1813 <A NAME="last_error()"><!-- --></A><H3>
1814 last_error</H3>
1815 <PRE>
1816 public int <B>last_error</B>()</PRE>
1817 <DL>
1818 <DD>Return the code of the last error occured in
1819 any of the exec() methods. The value is valid
1820 after an Exception has been reported by one of
1821 these methods. See the <A HREF="Constants.html">Constants</A>
1822 class for possible values.
1823 <P>
1824 <DD><DL>
1825
1826 <DT><B>Returns:</B><DD>SQLite error code</DL>
1827 </DD>
1828 </DL>
1829 <HR>
1830
1831 <A NAME="last_insert_rowid()"><!-- --></A><H3>
1832 last_insert_rowid</H3>
1833 <PRE>
1834 public long <B>last_insert_rowid</B>()</PRE>
1835 <DL>
1836 <DD>Return the row identifier of the last inserted
1837 row.
1838 <P>
1839 <DD><DL>
1840 </DL>
1841 </DD>
1842 </DL>
1843 <HR>
1844
1845 <A NAME="long_from_julian(double)"><!-- --></A><H3>
1846 long_from_julian</H3>
1847 <PRE>
1848 public static long <B>long_from_julian</B>(double&nbsp;d)</PRE>
1849 <DL>
1850 <DD>Make long value from julian date for java.lang.Date
1851 <P>
1852 <DD><DL>
1853 <DT><B>Parameters:</B><DD><CODE>d</CODE> - double value (julian date in SQLite3 format)
1854 <DT><B>Returns:</B><DD>long</DL>
1855 </DD>
1856 </DL>
1857 <HR>
1858
1859 <A NAME="long_from_julian(java.lang.String)"><!-- --></A><H3>
1860 long_from_julian</H3>
1861 <PRE>
1862 public static long <B>long_from_julian</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;s)
1863 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1864 <DL>
1865 <DD>Make long value from julian date for java.lang.Date
1866 <P>
1867 <DD><DL>
1868 <DT><B>Parameters:</B><DD><CODE>s</CODE> - string (double value) (julian date in SQLite3 format)
1869 <DT><B>Returns:</B><DD>long
1870 <DT><B>Throws:</B>
1871 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1872 </DD>
1873 </DL>
1874 <HR>
1875
1876 <A NAME="open_aux_file(java.lang.String)"><!-- --></A><H3>
1877 open_aux_file</H3>
1878 <PRE>
1879 public void <B>open_aux_file</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;filename)
1880 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1881 <DL>
1882 <DD>Open SQLite auxiliary database file for temporary
1883 tables.
1884 <P>
1885 <DD><DL>
1886 <DT><B>Parameters:</B><DD><CODE>filename</CODE> - the name of the auxiliary file or null
1887 <DT><B>Throws:</B>
1888 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1889 </DD>
1890 </DL>
1891 <HR>
1892
1893 <A NAME="open_blob(java.lang.String, java.lang.String, java.lang.String, long, boolean)"><!-- --></A><H3>
1894 open_blob</H3>
1895 <PRE>
1896 public <A HREF="../SQLite/Blob.html" title="class in SQLite">Blob</A> <B>open_blob</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;db,
1897 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;table,
1898 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;column,
1899 long&nbsp;row,
1900 boolean&nbsp;rw)
1901 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1902 <DL>
1903 <DD>Open an SQLite3 blob. Only available in SQLite 3.4.0 and above.
1904 <P>
1905 <DD><DL>
1906 <DT><B>Parameters:</B><DD><CODE>db</CODE> - database name<DD><CODE>table</CODE> - table name<DD><CODE>column</CODE> - column name<DD><CODE>row</CODE> - row identifier<DD><CODE>rw</CODE> - if true, open for read-write, else read-only
1907 <DT><B>Returns:</B><DD>a Blob object
1908 <DT><B>Throws:</B>
1909 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1910 </DD>
1911 </DL>
1912 <HR>
1913
1914 <A NAME="open(java.lang.String, int)"><!-- --></A><H3>
1915 open</H3>
1916 <PRE>
1917 public void <B>open</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;filename,
1918 int&nbsp;mode)
1919 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1920 <DL>
1921 <DD>Open an SQLite database file.
1922 <P>
1923 <DD><DL>
1924 <DT><B>Parameters:</B><DD><CODE>filename</CODE> - the name of the database file<DD><CODE>mode</CODE> - open mode (e.g. SQLITE_OPEN_READONLY)
1925 <DT><B>Throws:</B>
1926 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1927 </DD>
1928 </DL>
1929 <HR>
1930
1931 <A NAME="open(java.lang.String, int, java.lang.String)"><!-- --></A><H3>
1932 open</H3>
1933 <PRE>
1934 public void <B>open</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;filename,
1935 int&nbsp;mode,
1936 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;vfs)
1937 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1938 <DL>
1939 <DD>Open an SQLite database file.
1940 <P>
1941 <DD><DL>
1942 <DT><B>Parameters:</B><DD><CODE>filename</CODE> - the name of the database file<DD><CODE>mode</CODE> - open mode (e.g. SQLITE_OPEN_READONLY)<DD><CODE>vfs</CODE> - VFS name (for SQLite >= 3.5)
1943 <DT><B>Throws:</B>
1944 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1945 </DD>
1946 </DL>
1947 <HR>
1948
1949 <A NAME="open(java.lang.String, int, java.lang.String, boolean)"><!-- --></A><H3>
1950 open</H3>
1951 <PRE>
1952 public void <B>open</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;filename,
1953 int&nbsp;mode,
1954 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;vfs,
1955 boolean&nbsp;ver2)
1956 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1957 <DL>
1958 <DD>Open an SQLite database file.
1959 <P>
1960 <DD><DL>
1961 <DT><B>Parameters:</B><DD><CODE>filename</CODE> - the name of the database file<DD><CODE>mode</CODE> - open mode (e.g. SQLITE_OPEN_READONLY)<DD><CODE>vfs</CODE> - VFS name (for SQLite >= 3.5)<DD><CODE>ver2</CODE> - flag to force version on create (false = SQLite3, true = SQLite2)
1962 <DT><B>Throws:</B>
1963 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1964 </DD>
1965 </DL>
1966 <HR>
1967
1968 <A NAME="prepare(java.lang.String)"><!-- --></A><H3>
1969 prepare</H3>
1970 <PRE>
1971 public <A HREF="../SQLite/Stmt.html" title="class in SQLite">Stmt</A> <B>prepare</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql)
1972 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
1973 <DL>
1974 <DD>Prepare and return SQLite3 statement for SQL. Only available
1975 in SQLite 3.0 and above, otherwise a no-op.
1976 <P>
1977 <DD><DL>
1978 <DT><B>Parameters:</B><DD><CODE>sql</CODE> - SQL statement to be prepared
1979 <DT><B>Returns:</B><DD>a Stmt object
1980 <DT><B>Throws:</B>
1981 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
1982 </DD>
1983 </DL>
1984 <HR>
1985
1986 <A NAME="profile(SQLite.Profile)"><!-- --></A><H3>
1987 profile</H3>
1988 <PRE>
1989 public void <B>profile</B>(<A HREF="../SQLite/Profile.html" title="interface in SQLite">Profile</A>&nbsp;pr)</PRE>
1990 <DL>
1991 <DD>Set profile function. Only available in SQLite 3.6 and above,
1992 otherwise a no-op.
1993 <P>
1994 <DD><DL>
1995 <DT><B>Parameters:</B><DD><CODE>pr</CODE> - the trace function</DL>
1996 </DD>
1997 </DL>
1998 <HR>
1999
2000 <A NAME="progress_handler(int, SQLite.ProgressHandler)"><!-- --></A><H3>
2001 progress_handler</H3>
2002 <PRE>
2003 public void <B>progress_handler</B>(int&nbsp;n,
2004 <A HREF="../SQLite/ProgressHandler.html" title="interface in SQLite">ProgressHandler</A>&nbsp;p)</PRE>
2005 <DL>
2006 <DD>Establish a progress callback method which gets called after
2007 N SQLite VM opcodes.
2008 <P>
2009 <DD><DL>
2010 <DT><B>Parameters:</B><DD><CODE>n</CODE> - number of SQLite VM opcodes until callback is invoked<DD><CODE>p</CODE> - the object implementing the progress callback method</DL>
2011 </DD>
2012 </DL>
2013 <HR>
2014
2015 <A NAME="rekey(byte[])"><!-- --></A><H3>
2016 rekey</H3>
2017 <PRE>
2018 public void <B>rekey</B>(byte[]&nbsp;ekey)
2019 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
2020 <DL>
2021 <DD>Change the key of a encrypted database. The
2022 SQLite3 database must have been open()ed.
2023 Not available in public releases of SQLite.
2024 <P>
2025 <DD><DL>
2026 <DT><B>Parameters:</B><DD><CODE>ekey</CODE> - the key as byte array
2027 <DT><B>Throws:</B>
2028 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
2029 </DD>
2030 </DL>
2031 <HR>
2032
2033 <A NAME="rekey(java.lang.String)"><!-- --></A><H3>
2034 rekey</H3>
2035 <PRE>
2036 public void <B>rekey</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;skey)
2037 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
2038 <DL>
2039 <DD>Change the key of a encrypted database. The
2040 SQLite3 database must have been open()ed.
2041 Not available in public releases of SQLite.
2042 <P>
2043 <DD><DL>
2044 <DT><B>Parameters:</B><DD><CODE>skey</CODE> - the key as String
2045 <DT><B>Throws:</B>
2046 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
2047 </DD>
2048 </DL>
2049 <HR>
2050
2051 <A NAME="set_authorizer(SQLite.Authorizer)"><!-- --></A><H3>
2052 set_authorizer</H3>
2053 <PRE>
2054 public void <B>set_authorizer</B>(<A HREF="../SQLite/Authorizer.html" title="interface in SQLite">Authorizer</A>&nbsp;auth)</PRE>
2055 <DL>
2056 <DD>Set authorizer function. Only available in SQLite 2.7.6 and
2057 above, otherwise a no-op.
2058 <P>
2059 <DD><DL>
2060 <DT><B>Parameters:</B><DD><CODE>auth</CODE> - the authorizer function</DL>
2061 </DD>
2062 </DL>
2063 <HR>
2064
2065 <A NAME="set_encoding(java.lang.String)"><!-- --></A><H3>
2066 set_encoding</H3>
2067 <PRE>
2068 public void <B>set_encoding</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;enc)
2069 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
2070 <DL>
2071 <DD>Set character encoding.
2072 <P>
2073 <DD><DL>
2074 <DT><B>Parameters:</B><DD><CODE>enc</CODE> - name of encoding
2075 <DT><B>Throws:</B>
2076 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
2077 </DD>
2078 </DL>
2079 <HR>
2080
2081 <A NAME="set_last_error(int)"><!-- --></A><H3>
2082 set_last_error</H3>
2083 <PRE>
2084 protected void <B>set_last_error</B>(int&nbsp;error_code)</PRE>
2085 <DL>
2086 <DD>Internal: set error code.
2087 <P>
2088 <DD><DL>
2089 <DT><B>Parameters:</B><DD><CODE>error_code</CODE> - new error code</DL>
2090 </DD>
2091 </DL>
2092 <HR>
2093
2094 <A NAME="status(int, int[], boolean)"><!-- --></A><H3>
2095 status</H3>
2096 <PRE>
2097 public static int <B>status</B>(int&nbsp;op,
2098 int[]&nbsp;info,
2099 boolean&nbsp;flag)</PRE>
2100 <DL>
2101 <DD>Return information on SQLite runtime status.
2102 Only available in SQLite 3.6 and above,
2103 otherwise a no-op.
2104 <P>
2105 <DD><DL>
2106 <DT><B>Parameters:</B><DD><CODE>op</CODE> - operation code<DD><CODE>info</CODE> - output buffer, must be able to hold two
2107 values (current/highwater)<DD><CODE>flag</CODE> - reset flag
2108 <DT><B>Returns:</B><DD>SQLite error code</DL>
2109 </DD>
2110 </DL>
2111 <HR>
2112
2113 <A NAME="stmt_prepare(java.lang.String, SQLite.Stmt)"><!-- --></A><H3>
2114 stmt_prepare</H3>
2115 <PRE>
2116 private void <B>stmt_prepare</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
2117 <A HREF="../SQLite/Stmt.html" title="class in SQLite">Stmt</A>&nbsp;stmt)
2118 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
2119 <DL>
2120 <DD>Internal SQLite3 prepare method.
2121 <P>
2122 <DD><DL>
2123 <DT><B>Parameters:</B><DD><CODE>sql</CODE> - SQL statement<DD><CODE>stmt</CODE> - Stmt object
2124 <DT><B>Throws:</B>
2125 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
2126 </DD>
2127 </DL>
2128 <HR>
2129
2130 <A NAME="trace(SQLite.Trace)"><!-- --></A><H3>
2131 trace</H3>
2132 <PRE>
2133 public void <B>trace</B>(<A HREF="../SQLite/Trace.html" title="interface in SQLite">Trace</A>&nbsp;tr)</PRE>
2134 <DL>
2135 <DD>Set trace function. Only available in SQLite 2.7.6 and above,
2136 otherwise a no-op.
2137 <P>
2138 <DD><DL>
2139 <DT><B>Parameters:</B><DD><CODE>tr</CODE> - the trace function</DL>
2140 </DD>
2141 </DL>
2142 <HR>
2143
2144 <A NAME="version()"><!-- --></A><H3>
2145 version</H3>
2146 <PRE>
2147 public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>version</B>()</PRE>
2148 <DL>
2149 <DD>Return SQLite version number as string.
2150 Don't rely on this when both SQLite 2 and 3 are compiled
2151 into the native part. Use the class method in this case.
2152 <P>
2153 <DD><DL>
2154 </DL>
2155 </DD>
2156 </DL>
2157 <HR>
2158
2159 <A NAME="vm_compile_args(java.lang.String, SQLite.Vm, java.lang.String[])"><!-- --></A><H3>
2160 vm_compile_args</H3>
2161 <PRE>
2162 private void <B>vm_compile_args</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
2163 <A HREF="../SQLite/Vm.html" title="class in SQLite">Vm</A>&nbsp;vm,
2164 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args)
2165 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
2166 <DL>
2167 <DD>Internal compile method, SQLite 3.0 only.
2168 <P>
2169 <DD><DL>
2170 <DT><B>Parameters:</B><DD><CODE>sql</CODE> - SQL statement<DD><CODE>args</CODE> - arguments for the SQL statement, '%q' substitution<DD><CODE>vm</CODE> - Vm object
2171 <DT><B>Throws:</B>
2172 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
2173 </DD>
2174 </DL>
2175 <HR>
2176
2177 <A NAME="vm_compile(java.lang.String, SQLite.Vm)"><!-- --></A><H3>
2178 vm_compile</H3>
2179 <PRE>
2180 private void <B>vm_compile</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;sql,
2181 <A HREF="../SQLite/Vm.html" title="class in SQLite">Vm</A>&nbsp;vm)
2182 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
2183 <DL>
2184 <DD>Internal compile method.
2185 <P>
2186 <DD><DL>
2187 <DT><B>Parameters:</B><DD><CODE>sql</CODE> - SQL statement<DD><CODE>vm</CODE> - Vm object
2188 <DT><B>Throws:</B>
2189 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
2190 </DD>
2191 </DL>
2192 <!-- ========= END OF CLASS DATA ========= -->
2193 <HR>
2194
2195
2196 <!-- ======= START OF BOTTOM NAVBAR ====== -->
2197 <A NAME="navbar_bottom"><!-- --></A>
2198 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
2199 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
2200 <TR>
2201 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
2202 <A NAME="navbar_bottom_firstrow"><!-- --></A>
2203 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
2204 <TR ALIGN="center" VALIGN="top">
2205 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
2206 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
2207 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
2208 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
2209 </TR>
2210 </TABLE>
2211 </TD>
2212 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
2213 </EM>
2214 </TD>
2215 </TR>
2216
2217 <TR>
2218 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
2219 &nbsp;<A HREF="../SQLite/Constants.html" title="class in SQLite"><B>PREV CLASS</B></A>&nbsp;
2220 &nbsp;<A HREF="../SQLite/Exception.html" title="class in SQLite"><B>NEXT CLASS</B></A></FONT></TD>
2221 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
2222 <A HREF="../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
2223 &nbsp;<A HREF="Database.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
2224 &nbsp;<SCRIPT type="text/javascript">
2225 <!--
2226 if(window==top) {
2227 document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
2228 }
2229 //-->
2230 </SCRIPT>
2231 <NOSCRIPT>
2232 <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
2233 </NOSCRIPT>
2234
2235 </FONT></TD>
2236 </TR>
2237 <TR>
2238 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
2239 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>
2240 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
2241 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>
2242 </TR>
2243 </TABLE>
2244 <A NAME="skip-navbar_bottom"></A>
2245 <!-- ======== END OF BOTTOM NAVBAR ======= -->
2246
2247 <HR>
2248 <small>Contact: <a HREF="mailto:[email protected]">Christian Werner</a></small>
2249 </BODY>
2250 </HTML>