Debian Codegraph @

lang/sql/jdbc/doc/SQLite/Vm.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:01 CET 2012 -->
6 <TITLE>
7 Vm (SQLite Java Wrapper)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="SQLite.Vm 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="Vm (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/Trace.html" title="interface in SQLite"><B>PREV CLASS</B></A>&nbsp;
50 &nbsp;NEXT CLASS</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="Vm.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 Vm</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.Vm</B>
87 </PRE>
88 <HR>
89 <DL>
90 <DT>public class <B>Vm</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 Class to represent compiled SQLite VM.
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/Vm.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 compile()/step() methods.</TD>
118 </TR>
119 <TR BGCOLOR="white" CLASS="TableRowColor">
120 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
121 <CODE>private &nbsp;long</CODE></FONT></TD>
122 <TD><CODE><B><A HREF="../SQLite/Vm.html#handle">handle</A></B></CODE>
123
124 <BR>
125 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internal handle for the compiled SQLite VM.</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/Vm.html#Vm()">Vm</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>&nbsp;boolean</CODE></FONT></TD>
156 <TD><CODE><B><A HREF="../SQLite/Vm.html#compile()">compile</A></B>()</CODE>
157
158 <BR>
159 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compile the next SQL statement for the SQLite VM instance.</TD>
160 </TR>
161 <TR BGCOLOR="white" CLASS="TableRowColor">
162 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
163 <CODE>protected &nbsp;void</CODE></FONT></TD>
164 <TD><CODE><B><A HREF="../SQLite/Vm.html#finalize()">finalize</A></B>()</CODE>
165
166 <BR>
167 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Destructor for object.</TD>
168 </TR>
169 <TR BGCOLOR="white" CLASS="TableRowColor">
170 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171 <CODE>private static&nbsp;void</CODE></FONT></TD>
172 <TD><CODE><B><A HREF="../SQLite/Vm.html#internal_init()">internal_init</A></B>()</CODE>
173
174 <BR>
175 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Internal native initializer.</TD>
176 </TR>
177 <TR BGCOLOR="white" CLASS="TableRowColor">
178 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
179 <CODE>&nbsp;boolean</CODE></FONT></TD>
180 <TD><CODE><B><A HREF="../SQLite/Vm.html#step(SQLite.Callback)">step</A></B>(<A HREF="../SQLite/Callback.html" title="interface in SQLite">Callback</A>&nbsp;cb)</CODE>
181
182 <BR>
183 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Perform one step on compiled SQLite VM.</TD>
184 </TR>
185 <TR BGCOLOR="white" CLASS="TableRowColor">
186 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187 <CODE>&nbsp;void</CODE></FONT></TD>
188 <TD><CODE><B><A HREF="../SQLite/Vm.html#stop()">stop</A></B>()</CODE>
189
190 <BR>
191 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Abort the compiled SQLite VM.</TD>
192 </TR>
193 </TABLE>
194 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
195 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
196 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
197 <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>
198 </TR>
199 <TR BGCOLOR="white" CLASS="TableRowColor">
200 <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>
201 </TR>
202 </TABLE>
203 &nbsp;
204 <P>
205
206 <!-- ============ FIELD DETAIL =========== -->
207
208 <A NAME="field_detail"><!-- --></A>
209 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
210 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
211 <TD COLSPAN=1><FONT SIZE="+2">
212 <B>Field Detail</B></FONT></TD>
213 </TR>
214 </TABLE>
215
216 <A NAME="error_code"><!-- --></A><H3>
217 error_code</H3>
218 <PRE>
219 protected int <B>error_code</B></PRE>
220 <DL>
221 <DD>Internal last error code for compile()/step() methods.
222 <P>
223 <DL>
224 </DL>
225 </DL>
226 <HR>
227
228 <A NAME="handle"><!-- --></A><H3>
229 handle</H3>
230 <PRE>
231 private long <B>handle</B></PRE>
232 <DL>
233 <DD>Internal handle for the compiled SQLite VM.
234 <P>
235 <DL>
236 </DL>
237 </DL>
238
239 <!-- ========= CONSTRUCTOR DETAIL ======== -->
240
241 <A NAME="constructor_detail"><!-- --></A>
242 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
243 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
244 <TD COLSPAN=1><FONT SIZE="+2">
245 <B>Constructor Detail</B></FONT></TD>
246 </TR>
247 </TABLE>
248
249 <A NAME="Vm()"><!-- --></A><H3>
250 Vm</H3>
251 <PRE>
252 public <B>Vm</B>()</PRE>
253 <DL>
254 </DL>
255
256 <!-- ============ METHOD DETAIL ========== -->
257
258 <A NAME="method_detail"><!-- --></A>
259 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
260 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
261 <TD COLSPAN=1><FONT SIZE="+2">
262 <B>Method Detail</B></FONT></TD>
263 </TR>
264 </TABLE>
265
266 <A NAME="compile()"><!-- --></A><H3>
267 compile</H3>
268 <PRE>
269 public boolean <B>compile</B>()
270 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
271 <DL>
272 <DD>Compile the next SQL statement for the SQLite VM instance.
273 <P>
274 <DD><DL>
275
276 <DT><B>Returns:</B><DD>true when SQL statement has been compiled, false
277 on end of statement sequence.
278 <DT><B>Throws:</B>
279 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
280 </DD>
281 </DL>
282 <HR>
283
284 <A NAME="finalize()"><!-- --></A><H3>
285 finalize</H3>
286 <PRE>
287 protected void <B>finalize</B>()</PRE>
288 <DL>
289 <DD>Destructor for object.
290 <P>
291 <DD><DL>
292 </DL>
293 </DD>
294 </DL>
295 <HR>
296
297 <A NAME="internal_init()"><!-- --></A><H3>
298 internal_init</H3>
299 <PRE>
300 private static void <B>internal_init</B>()</PRE>
301 <DL>
302 <DD>Internal native initializer.
303 <P>
304 <DD><DL>
305 </DL>
306 </DD>
307 </DL>
308 <HR>
309
310 <A NAME="step(SQLite.Callback)"><!-- --></A><H3>
311 step</H3>
312 <PRE>
313 public boolean <B>step</B>(<A HREF="../SQLite/Callback.html" title="interface in SQLite">Callback</A>&nbsp;cb)
314 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
315 <DL>
316 <DD>Perform one step on compiled SQLite VM.
317 The result row is passed to the given callback interface.<BR><BR>
318
319 Example:<BR>
320 <PRE>
321 ...
322 try {
323 Vm vm = db.compile("select * from x; select * from y;");
324 while (vm.step(cb)) {
325 ...
326 }
327 while (vm.compile()) {
328 while (vm.step(cb)) {
329 ...
330 }
331 }
332 } catch (SQLite.Exception e) {
333 }
334 </PRE>
335 <P>
336 <DD><DL>
337 <DT><B>Parameters:</B><DD><CODE>cb</CODE> - the object implementing the callback methods.
338 <DT><B>Returns:</B><DD>true as long as more row data can be retrieved,
339 false, otherwise.
340 <DT><B>Throws:</B>
341 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
342 </DD>
343 </DL>
344 <HR>
345
346 <A NAME="stop()"><!-- --></A><H3>
347 stop</H3>
348 <PRE>
349 public void <B>stop</B>()
350 throws <A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></PRE>
351 <DL>
352 <DD>Abort the compiled SQLite VM.
353 <P>
354 <DD><DL>
355
356 <DT><B>Throws:</B>
357 <DD><CODE><A HREF="../SQLite/Exception.html" title="class in SQLite">Exception</A></CODE></DL>
358 </DD>
359 </DL>
360 <!-- ========= END OF CLASS DATA ========= -->
361 <HR>
362
363
364 <!-- ======= START OF BOTTOM NAVBAR ====== -->
365 <A NAME="navbar_bottom"><!-- --></A>
366 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
367 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
368 <TR>
369 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
370 <A NAME="navbar_bottom_firstrow"><!-- --></A>
371 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
372 <TR ALIGN="center" VALIGN="top">
373 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
374 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
375 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
376 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
377 </TR>
378 </TABLE>
379 </TD>
380 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
381 </EM>
382 </TD>
383 </TR>
384
385 <TR>
386 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
387 &nbsp;<A HREF="../SQLite/Trace.html" title="interface in SQLite"><B>PREV CLASS</B></A>&nbsp;
388 &nbsp;NEXT CLASS</FONT></TD>
389 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
390 <A HREF="../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
391 &nbsp;<A HREF="Vm.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
392 &nbsp;<SCRIPT type="text/javascript">
393 <!--
394 if(window==top) {
395 document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
396 }
397 //-->
398 </SCRIPT>
399 <NOSCRIPT>
400 <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
401 </NOSCRIPT>
402
403 </FONT></TD>
404 </TR>
405 <TR>
406 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
407 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>
408 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
409 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>
410 </TR>
411 </TABLE>
412 <A NAME="skip-navbar_bottom"></A>
413 <!-- ======== END OF BOTTOM NAVBAR ======= -->
414
415 <HR>
416 <small>Contact: <a HREF="mailto:[email protected]">Christian Werner</a></small>
417 </BODY>
418 </HTML>