|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SQLite.Vm
Class to represent compiled SQLite VM.
Field Summary | |
protected int |
error_code
Internal last error code for compile()/step() methods. |
private long |
handle
Internal handle for the compiled SQLite VM. |
Constructor Summary | |
Vm()
|
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int error_code
private long handle
Constructor Detail |
public Vm()
Method Detail |
public boolean compile() throws Exception
Exception
- indicating SQLite errorprotected void finalize()
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 errorpublic void stop() throws Exception
Exception
- indicating SQLite error
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |