protected void CreateCase() { ConnectDb condb = new ConnectDb(); Connection con = condb.getConnection(); InsertCase(con); if (bInsert) { bInsert = CreateStore(casetemplate.getCase_path(), casetemplate.getCase_id()); } getWizard().getContainer().updateButtons(); }
private boolean updateCasePath(String path, int caseId) { ConnectDb condb = new ConnectDb(); Connection con = condb.getConnection(); String query = "UPDATE Androspy_Case SET case_path = '" + path + "/', case_created = 1 WHERE case_id = " + caseId; try { Statement stmt = con.createStatement(); int count = stmt.executeUpdate(query); return count == 1; } catch (SQLException e) { e.printStackTrace(); return false; } }