package bridge; import java.sql.SQLException;import java.sql.Statement; public class SQLUpdateCommand extends SQLCommand { public SQLUpdateCommand(Statement stmt, String query) { super(stmt, query); } @Override public boolean Exec() { super.Exec(); try { stmt.executeUpdate(query); } catch (SQLException e) { errMess = e.getMessage(); return false; } return true; }}