setStudent_age(rs.getInt("student_age"));Р return s;Р }Р } catch (SQLException e) {Р // TODO Auto-generated catch blockР e.printStackTrace();Р } finally {Р bd.close(rs, ps, conn);Р }Р return null;Р?}Р}Р// entity.Student.java:Student类及其构造方法Рpackage entity;Рpublic class Student {Р?private Integer student_id;Р?private String student_name;Р?private Integer student_age;Р?public Integer getStudent_id() {Р return student_id;Р?}Р?public void setStudent_id(Integer student_id) {Р this.student_id = student_id;Р?}Р?public String getStudent_name() {Р return student_name;Р?}Р?public void setStudent_name(String student_name) {Р this.student_name = student_name;Р?}Р?public Integer getStudent_age() {Р return student_age;Р?}Р?public void setStudent_age(Integer student_age) {Р this.student_age = student_age;