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

📄 testcommand.java

📁 简单的在线考试系统 提供添加修改 考试等操作
💻 JAVA
字号:
package olts;

public interface TestCommand {
	/**this is a interface that specify the methods for 
	 * database command such as insert,updata,search and delete
	 */
	
	//locate specify question in the database
	public TestQuestionEntry searchQusetion(String id);
	
	//search question in the database and 
	//return an boolean value
	public boolean singleQuestionFound(String num)
	throws TestException;
	
	/*public boolean truefalseQuestionFound(String num)
	throws TestException;
	
	public boolean blankQuestionFound(String num)
	throws TestException;*/
	
	//updata the specify question informatin in the database
	//and return a boolean value
	public boolean saveQuestion(TestQuestionEntry question)
	throws TestException;
	
	//insert a new question and return a boolean value
	public boolean insertQuestion(TestQuestionEntry question)
	throws TestException;
	
	//delete a available question in the database  
	//and return a boolean value
	public void deleteQusetion(String num)
	throws TestException;
	

}

⌨️ 快捷键说明

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