SQLite
public class Vm extends Object
Field Summary | |
---|---|
protected int | error_code
Internal last error code for compile()/step() methods. |
long | handle
Internal handle for the compiled SQLite VM. |
Method Summary | |
---|---|
boolean | compile()
Compile the next SQL statement for the SQLite VM instance. |
protected void | finalize()
Destructor for object. |
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. |
Returns: true when SQL statement has been compiled, false on end of statement sequence.
... 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) { }
Parameters: cb the object implementing the callback methods.
Returns: true as long as more row data can be retrieved, false, otherwise.