📄 examdao.java
字号:
package com.lili.exam.dao;
import java.util.List;
import com.lili.exam.pojo.CChoice;
import com.lili.exam.pojo.SelectOne;
import com.lili.exam.pojo.Student;
import com.lili.exam.pojo.Subject;
import com.lili.exam.pojo.Teacher;
public interface ExamDao {
void saveOrUpdateStudent(Student student)throws Exception;
void savaOrUpdateTeacher(Teacher teacher)throws Exception;
void saveOrUpdateChoice (CChoice choice)throws Exception;
void saveOrUpdateSelectOne(SelectOne selectOne)throws Exception;
Student getStudentByName(String name)throws Exception;
Student getStudentByXuehao(String xuehao)throws Exception;
Teacher getTeacherByName(String name)throws Exception;
List<Student> listStudents() throws Exception;
Subject getSubjectByName(String name) throws Exception;
void saveOrUpdateSubject (Subject subject)throws Exception;
void changeState() throws Exception;
int getSelectOneNum(Subject subject) throws Exception;;
int getChoiceOneNum(Subject subject) throws Exception;
SelectOne getSelectOne(int num) throws Exception;
CChoice getChoice (int num)throws Exception;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -