@Override public void addNewStudent(StudentBean student) { // TODO Auto-generated method stub StringBuilder builder = new StringBuilder(); builder.append("insert into rm_inf_student "); builder.append("values ("); builder.append(student.getString() + ")"); studentDAO.deleteOrUpdate(builder.toString()); }
/** ÏÈɾ³ý£¬ºó²åÈë */ @Override public void updateStudent(StudentBean student) { // TODO Auto-generated method stub deleteStudent(student.getStu_no()); addNewStudent(student); }