JavaEE 3层架构的 DAO, Service, Web 简单封装
2009-11-17 00:00:00 来源:WEB开发网具体 DAO 实现.
XtyhbDAO
1: import Xtyhb;
2:
3: /**
4: * @author Hacker-TTAO
5: * @version 1.0
6: * Create Date : Nov 11, 2009 1:34:16 PM
7: * Change List:
8: */
9: public interface XtyhbDAO extends GeneralDAO<Xtyhb, Integer> {
10: Xtyhb findByNameAndPwd(String username, String password);
11: }
XtyhbDAOImpl
1: import java.util.List;
2:
3: /**
4: *
5: * @author Hacker-TTAO
6: * @version 0.0.1
7: * Create Date : Nov 11, 2009 1:35:10 PM
8: * Change List:
9: */
10: @SuppressWarnings("unchecked")
11: public class XtyhbDAOImpl extends AbstractSpringDAO<Xtyhb, Integer> implements XtyhbDAO {
12:
13: public Xtyhb findByNameAndPwd(String username, String password) {
14: // implement
15: return null;
16: }
17:
18: public PagingVO getPagingData(int currentPage, int pageSize) {
19: return null;
20: }
21: }
更多精彩
赞助商链接