LoanLogDao.java
资源名称:ssh+ext.rar [点击查看]
上传用户:ouhalaa
上传日期:2016-03-17
资源大小:10210k
文件大小:1k
源码类别:
Web服务器
开发平台:
Java
- /*
- * @(#)LoanLogDao.java 2008-10-11
- *
- * Copyright LHQ. All rights reserved.
- */
- package com.lhq.prj.bms.dao.impl;
- import java.util.List;
- import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
- import com.lhq.prj.bms.core.Page;
- import com.lhq.prj.bms.dao.ILoanLogDao;
- import com.lhq.prj.bms.po.LoanLog;
- /**
- * Create on 2008-10-11 下午06:58:31
- *
- * 借还书持久层实现类
- *
- * @author 廖瀚卿
- * @version
- */
- public class LoanLogDao extends SqlMapClientDaoSupport implements ILoanLogDao {
- public Integer deleteById(Integer logId) {
- return getSqlMapClientTemplate().delete("LoanLog.deleteById", logId);
- }
- public int findByCount(Page page) {
- return (Integer) getSqlMapClientTemplate().queryForObject("LoanLog.findByCount", page);
- }
- public List findByPage(Page page) {
- return getSqlMapClientTemplate().queryForList("LoanLog.findByPage", page);
- }
- public Object saveLoanLog(LoanLog loanlog) {
- return getSqlMapClientTemplate().insert("LoanLog.save", loanlog);
- }
- public Integer update(LoanLog loanlog) throws Exception {
- return getSqlMapClientTemplate().update("LoanLog.update", loanlog);
- }
- }