Guest User

Untitled

a guest
Jun 19th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class SQLite {
  2.  
  3. private JavaScriptObject con;
  4. private String name;
  5.  
  6. public SQLite(Strig name) {
  7. this.name = name;
  8. init();
  9. }
  10.  
  11. public native JavaScriptObject execute(String stmt) /* --{
  12. return this.@th.ac.sut.SQLite::con.execute(stmt);
  13. }-- */;
  14.  
  15. public native void init() /* --{
  16. this.@th.ac.sut.SQLite::con = new SQLite(this.@th.ac.sut.SQLite::name);
  17. }-- */;
  18. }
Add Comment
Please, Sign In to add comment