examdao.java

来自「struts在线考试系统. 自己还没看」· Java 代码 · 共 43 行

JAVA
43
字号
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 + =
减小字号Ctrl + -
显示快捷键?