Пример #1
0
 @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());
 }
Пример #2
0
 /** ÏÈɾ³ý£¬ºó²åÈë */
 @Override
 public void updateStudent(StudentBean student) {
   // TODO Auto-generated method stub
   deleteStudent(student.getStu_no());
   addNewStudent(student);
 }