package bridge; public class SQLCommand extends CommandImpl { Statement stmt; String query; super(); this.stmt = stmt; this.query = query; } public boolean Exec() { super.Exec(); try { stmt.execute(query); stmt.close(); errMess = e.getMessage(); return false; } return true; } List<Integer> res; try { res = new ArrayList<Integer>(); while (keys.next()) { res.add(keys.getInt(1)); } e.printStackTrace(); } return null; } }