📄 courseservice.java
字号:
/*
* CourseService.java
*
* Created on 2006年5月18日, 下午7:15
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package enova.service;
import java.util.List;
import enova.pojo.*;
/**
*
* @author vlinux
*/
public interface CourseService {
/*通过课程ID获取课程*/
public Course get(Integer id) throws StoreException;
/*更新或者创建一个课程,如果课程名称、年份、学期、教师组合存在的话则抛出重复异常*/
public void updateOrCreate(Course course) throws UniqueException, StoreException;
/*通过课程ID删除课程*/
public void delete(Integer id) throws NotExistException, StoreException;
/*通过课程开设年份、学期获取课程*/
public List getByYearAndTerm(Integer year,String term) throws StoreException;
/*通过课程开设年份按照学期排序获取课程*/
public List getByYear(Integer year) throws StoreException;
/*通过课程开设年份、学期、教师ID获取课程*/
public List getByYearAndTermAndTeacherId(Integer year,String term,Integer teacherId) throws StoreException;
public List getByClassIdAndYearAndTerm(Integer classId,Integer year,String term)throws StoreException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -