SubList分页-013-SubListStudentServiceImpl类
来源:互联网 发布:hz是什么意思网络用语 编辑:程序博客网 时间:2024/06/05 16:33
1.实现接口StudentService,返回Pager
2.添加成员:SubListStudentDAOImpl对象
package top.itcourse.page.service;import top.itcourse.page.dao.StudentDAO;import top.itcourse.page.dao.SubListStudentDAOImpl;import top.itcourse.page.model.Pager;import top.itcourse.page.model.Student;/* * SubListStudentServiceImpl类: * 1.实现接口StudentService,返回Pager<Student> * 2.添加成员:SubListStudentDAOImpl对象 */public class SubListStudentServiceImpl implements StudentService { private StudentDAO studentDAO; public SubListStudentServiceImpl() { // 初始化studentDAO studentDAO = new SubListStudentDAOImpl(); } @Override public Pager<Student> findStudent(Student searchModel, int currentPage, int pageSize) {// System.out.println("currentPage: " + currentPage); // 获取查询到的Pager<Student> Pager<Student> result = studentDAO.findStudent(searchModel, currentPage, pageSize); return result; } public StudentDAO getStudentDAO() { return studentDAO; } public void setStudentDAO(StudentDAO studentDAO) { this.studentDAO = studentDAO; }}
源码下载
关注下方的微信公众号,回复:java_div_page.code
欢迎加入交流群:451826376
更多信息:www.itcourse.top
阅读全文
0 0
- SubList分页-013-SubListStudentServiceImpl类
- SubList分页-004-Student类
- SubList分页-006-jdbcUtils类
- SubList分页-007-Dao类
- SubList分页-009-SubListStudentDAOImpl类
- SubList分页-010-Pager类
- SubList分页-011-Constant类
- SubList分页-014-SubListServlet类
- SubList分页-015-InputParameter类
- List内置分页sublist
- SubList分页-002-需求
- SubList分页_001_分页概述
- SubList分页-003-中文处理
- SubList分页-005-创建数据表
- SubList分页-008-StudentDao接口
- SubList分页-012-StudentService接口
- 分页技术--sublist分页的实例
- SubList分页-016-index.jsp(完结)
- Atom常用package记录
- SubList分页-012-StudentService接口
- Xhttp——RecyclerView——MVP
- 创投圈饭局指南,如何撩到投资人?
- 今日头条10亿美元全资收购短视频社区 musical.ly
- SubList分页-013-SubListStudentServiceImpl类
- JVM之执行引擎(二)
- SubList分页-014-SubListServlet类
- 唯快不破:Linux 进程间通信 --- 信号通信
- SubList分页-015-InputParameter类
- 【头条】英特尔:画个同“芯”圆,圈出大生态
- SubList分页-016-index.jsp(完结)
- Lintcode71 Binary Tree Zigzag Level Order Traversal solution 题解
- OKHttp异常java.lang.IllegalStateException: closed与debug时遇到的坑