コード例 #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);
 }