试试插入代码的效果
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 Object private StudentBizService service; // Service Delegate Object private StudentBizDelegate delegate; // init public StudentClient() { service = new StudentBizService(); delegate = service.getStudentBizPort(); } // print student private 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 id public void showStudentInfo(Integer ID) { Student s = delegate.getStudentInfoByStuID(ID); printStudent(s); } // get students by sex public void showStudentBySex(boolean isMale) { List list = delegate.getStudentsInfoBySex(isMale); for (Student s : list) { printStudent(s); } } // update public void updateStudent(Integer id, String pwd, Student stu) { boolean suc = delegate.updateStudentInfo(id, pwd, stu); System.out.println(" Update result:" + suc); } // Main test public 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.5 sc.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 - Male sc.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 ...... } }
试试插入地图的功能
试试超链接
如何使用live writer客户端来发布CSDN的博客文章
试试更新功能