FileDocCategorySizeDatePackage
Vm.javaAPI DocAndroid 1.5 API1630Wed May 06 22:41:06 BST 2009SQLite

Vm

public class Vm extends Object
Class to represent compiled SQLite VM.

Fields Summary
private long
handle
Internal handle for the compiled SQLite VM.
protected int
error_code
Internal last error code for compile()/step() methods.
Constructors Summary
Methods Summary
public native booleancompile()
Compile the next SQL statement for the SQLite VM instance.

return
true when SQL statement has been compiled, false on end of statement sequence.

protected native voidfinalize()
Destructor for object.

private static native voidinternal_init()
Internal native initializer.

public native booleanstep(Callback cb)
Perform one step on compiled SQLite VM. The result row is passed to the given callback interface.

Example:
...
try {
Vm vm = db.compile("select * from x; select * from y;");
while (vm.step(cb)) {
...
}
while (vm.compile()) {
while (vm.step(cb)) {
...
}
}
} catch (SQLite.Exception e) {
}

param
cb the object implementing the callback methods.
return
true as long as more row data can be retrieved, false, otherwise.

public native voidstop()
Abort the compiled SQLite VM.