Try inserting code
StudentClientpackage com.test.clienttest;import java.util.List;import com.lk.test.client.Student;import com.lk.test.client.StudentBizDelegate;import com.lk.test.client.StudentBizService;public class StudentClient {// Service Objectprivate StudentBizService service;// Service Delegate Objectprivate StudentBizDelegate delegate;// initpublic StudentClient() {service = new StudentBizService();delegate = service.getStudentBizPort();}// print studentprivate void printStudent(Student s) {System.out.println("/nID:" + s.getId() + "/tName:" + s.getName()+ "/tPWD:" + s.getPassword() + "/tAge:" + s.getAge()+ "/tBirth day:" + s.getBirthDay() + "/tHeight:"+ s.getHeight());}// get student by idpublic void showStudentInfo(Integer ID) {Student s = delegate.getStudentInfoByStuID(ID);printStudent(s);}// get students by sexpublic void showStudentBySex(boolean isMale) {List
list = delegate.getStudentsInfoBySex(isMale);for (Student s : list) {printStudent(s);}}// updatepublic void updateStudent(Integer id, String pwd, Student stu) {boolean suc = delegate.updateStudentInfo(id, pwd, stu);System.out.println("Update result:" + suc);}// Main testpublic static void main(String[] args) {StudentClient sc = new StudentClient();// 1.Get a student information by student's id.sc.showStudentInfo(1001);// print result// ID:1001 Name:zhangSan PWD:111111 Age:21 Birth// day:2010-06-27T20:09:14.437+08:00 Height:175.5sc.showStudentInfo(1003);// print result// ID:1002 Name:liSi PWD:222222 Age:25 Birth// day:2010-06-27T20:09:44.250+08:00 Height:185.5// 2.Get all students - Malesc.showStudentBySex(true);// print result/** * * ID:1002 Name:liSi PWD:222222 Age:25 Birth * day:2010-06-27T20:10:45.390+08:00 Height:181.5 * * ID:1002 Name:wangWu PWD:222222 Age:25 Birth * day:2010-06-27T20:10:45.390+08:00 Height:182.5 */// 3. omit ..update ......}}
Try the map insertion function.
Try hyperlink
How to Use the live writer client to publish csdn blog articles
Try the UPDATE function