409410411412413414415416417418419
"WHERE " + "projectId = " + projectId; SQLiteStatement st = Db.getInstance().query(sql); while(st.step()) { exclude.add(st.columnString(0)); } return exclude;
116117118119120121122123124125126
st.bind(1, this.getType()); st.bind(2, this.getName()); st.bind(3, serialize(this.getConfig())); st.step(); } public void update() throws Exception { String sql = "UPDATE " +
136137138139140141142143144145146
st.bind(1, this.getType()); st.bind(2, this.getName()); st.bind(3, serialize(this.getConfig())); st.step(); } public void delete() throws Exception { String sql = "DELETE FROM " +
163164165166167168169170171172173
"WHERE " + "id = " + id; SQLiteStatement st = Db.getInstance().query(sql); st.step(); if(st.hasRow()) { Resource resource = new Resource();
193194195196197198199200201202203
"FROM " + "resources"; SQLiteStatement st = Db.getInstance().query(sql); while(st.step()) { resources.add(Resource.getResourceById(st.columnInt(0))); } return resources;
93949596979899100101102103
SQLiteStatement st = Db.getInstance().query(sql); st.bind(1, this.getProjectId()); st.bind(2, this.getPattern()); st.step(); } public void update() throws Exception { String sql = "UPDATE " +
111112113114115116117118119120121
SQLiteStatement st = Db.getInstance().query(sql); st.bind(1, this.getProjectId()); st.bind(2, this.getPattern()); st.step(); } public void delete() throws Exception { String sql = "DELETE FROM " +
137138139140141142143144145146147
"WHERE " + "id = " + id; SQLiteStatement st = Db.getInstance().query(sql); st.step(); if(st.hasRow()) { Exclude exclude = new Exclude();
187188189190191192193194195196197
sql+= " LIMIT " + limit; } SQLiteStatement st = Db.getInstance().query(sql); while(st.step()) { releases.add(Release.getReleaseById(st.columnInt(0))); } return releases;
213214215216217218219220221222223
"ORDER BY " + "id DESC"; SQLiteStatement st = Db.getInstance().query(sql); while(st.step()) { excludes.add(Exclude.getExcludeById(st.columnInt(0))); } return excludes;