public class Vm
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
error_code
Internal last error code for compile()/step() methods.
|
private long |
handle
Internal handle for the compiled SQLite VM.
|
Constructor and Description |
---|
Vm() |
Modifier and Type | Method and Description |
---|---|
boolean |
compile()
Compile the next SQL statement for the SQLite VM instance.
|
protected void |
finalize()
Destructor for object.
|
private static void |
internal_init()
Internal native initializer.
|
boolean |
step(Callback cb)
Perform one step on compiled SQLite VM.
|
void |
stop()
Abort the compiled SQLite VM.
|
protected int error_code
private long handle
public boolean compile() throws Exception
Exception
- indicating SQLite errorprotected void finalize()
finalize
in class java.lang.Object
private static void internal_init()
public boolean step(Callback cb) throws Exception
... 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) { }
cb
- the object implementing the callback methods.Exception
- indicating SQLite errorContact: Christian Werner