⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classcourseserviceimpl.java

📁 are are are are are are are are are are are are
💻 JAVA
字号:
/* * ClassCourseServiceImpl.java * * Created on 2006年5月19日, 下午7:42 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */package enova.service.impl;import java.util.List;import enova.service.*;import enova.pojo.*;import enova.dao.*;/** * * @author vlinux */public class ClassCourseServiceImpl implements ClassCourseService {        private ClassCourseDao classCourseDao;        /** Creates a new instance of ClassCourseServiceImpl */    public ClassCourseServiceImpl(ClassCourseDao ccDao) {        this.classCourseDao = ccDao;    }        public ClassCourse get(Integer classId,Integer courseId) throws StoreException {        try{            return classCourseDao.get(classId,courseId);        }catch(DataAccessException dae){            throw new StoreException();        }    }        public void create(ClassCourse cc) throws UniqueException, StoreException {        try{            classCourseDao.create(cc);        }catch(DataAccessException dae){            throw new StoreException();        }catch(RecordExistException ree){            throw new UniqueException();        }    }        public void delete(Integer classId,Integer courseId) throws StoreException, NotExistException {        try{            //如果不存在要删除的记录,则抛出记录不存在异常            if( get(classId,courseId)==null )                throw new NotExistException();            classCourseDao.delete(classId,courseId);        }catch(DataAccessException dae){            throw new StoreException();        }    }        /*作用:可以查看一个班在某一学年某一学期的所有课程安排*/    public List getByClassIdAndYearAndTerm(Integer classId,Integer year,String term) throws StoreException{        try{            return classCourseDao.getByClassIdAndYearAndTerm(classId,year,term);        }catch(DataAccessException dae){            throw new StoreException();        }    }        /*作用:可以查看一个专业的所有班在某一学年某一学期的所有课程安排,按照班级ID排序*/    public List getBySpecialIdAndYearAndTerm(Integer specialId,Integer year,String term) throws StoreException{        try{            return classCourseDao.getBySpecialIdAndYearAndTermSortClassId(specialId,year,term);        }catch(DataAccessException dae){            throw new StoreException();        }    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -