SubjectDao.java
资源名称:ssh+ext.rar [点击查看]
上传用户:ouhalaa
上传日期:2016-03-17
资源大小:10210k
文件大小:1k
源码类别:
Web服务器
开发平台:
Java
- package com.lhq.prj.bms.dao.impl;
- import java.util.List;
- import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
- import com.lhq.prj.bms.dao.ISubjectDao;
- import com.lhq.prj.bms.po.Subject;
- /**
- * SubjectDao.java Create on 2008-9-18 下午08:20:57
- *
- * 科目管理持久层
- *
- * Copyright (c) 2008 by MTA.
- *
- * @author 廖瀚卿
- * @version 1.0
- */
- public class SubjectDao extends SqlMapClientDaoSupport implements ISubjectDao {
- public Integer deleteById(Integer subjectId) {
- return getSqlMapClientTemplate().delete("Subject.deleteById", subjectId);
- }
- public List findAll() {
- return getSqlMapClientTemplate().queryForList("Subject.findAll");
- }
- public Object saveSubject(Subject subject) {
- return getSqlMapClientTemplate().insert("Subject.save", subject);
- }
- public Integer update(Subject subject) throws Exception {
- return getSqlMapClientTemplate().update("Subject.update", subject);
- }
- }