📄 testcommand.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 + -