274275276277278279280281282283284
"?" + ")"; SQLiteStatement st = Db.getInstance().query(sql); st.bind(1, this.getName()); st.bind(2, this.getLeftPath()); st.bind(3, this.getLeftResourceId()); st.bind(4, this.getRightPath()); st.bind(5, this.getRightResourceId());
275276277278279280281282283284285
")"; SQLiteStatement st = Db.getInstance().query(sql); st.bind(1, this.getName()); st.bind(2, this.getLeftPath()); st.bind(3, this.getLeftResourceId()); st.bind(4, this.getRightPath()); st.bind(5, this.getRightResourceId()); st.step();
276277278279280281282283284285286
SQLiteStatement st = Db.getInstance().query(sql); st.bind(1, this.getName()); st.bind(2, this.getLeftPath()); st.bind(3, this.getLeftResourceId()); st.bind(4, this.getRightPath()); st.bind(5, this.getRightResourceId()); st.step(); }
277278279280281282283284285286287
278279280281282283284285286287288
st.bind(1, this.getName()); st.bind(2, this.getLeftPath()); st.bind(3, this.getLeftResourceId()); st.bind(4, this.getRightPath()); st.bind(5, this.getRightResourceId()); st.step(); } public void update() throws Exception
299300301302303304305306307308309
"WHERE " + "id = " + this.getId(); SQLiteStatement st = Db.getInstance().query(sql); st.bind(1, this.getName()); st.bind(2, this.getLeftPath()); st.bind(3, this.getLeftResourceId()); st.bind(4, this.getRightPath()); st.bind(5, this.getRightResourceId());
300301302303304305306307308309310
"id = " + this.getId(); SQLiteStatement st = Db.getInstance().query(sql); st.bind(1, this.getName()); st.bind(2, this.getLeftPath()); st.bind(3, this.getLeftResourceId()); st.bind(4, this.getRightPath()); st.bind(5, this.getRightResourceId()); st.step();
301302303304305306307308309310311
302303304305306307308309310311312
303304305306307308309310311312313
st.bind(1, this.getName()); st.bind(2, this.getLeftPath()); st.bind(3, this.getLeftResourceId()); st.bind(4, this.getRightPath()); st.bind(5, this.getRightResourceId()); st.step(); } public void delete() throws Exception