testcommand.java

来自「简单的在线考试系统 提供添加修改 考试等操作」· Java 代码 · 共 38 行

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