📄 testdelegate.java
字号:
/*
* Created on 24-ene-2005 15:01:18
*
*/
package com.martincuervo.javatest.business.delegate;
import java.util.List;
import com.martincuervo.javatest.business.service.TestManager;
import com.martincuervo.javatest.business.vo.AnswerVO;
import com.martincuervo.javatest.business.vo.CategoryVO;
import com.martincuervo.javatest.business.vo.QuestionVO;
/**
* @author Jorge Martin Cuervo <jorge@martincuervo.com>
*
*/
public class TestDelegate {
private TestManager testManager = new TestManager();
/*
* preguntas
*/
public void addQuestion(QuestionVO question) {
testManager.addQuestion(question);
}
public void modQuestion(QuestionVO question) {
testManager.modQuestion(question);
}
public QuestionVO getQuestion(QuestionVO question) {
return testManager.getQuestion(question);
}
public List getQuestions() {
return testManager.getQuestions();
}
public void delQuestion(QuestionVO question) {
testManager.delQuestion(question);
}
public QuestionVO getQuestion(AnswerVO answer) {
return testManager.getQuestion(answer);
}
/*
* respuestas
*/
public List getAnswers(QuestionVO question) {
return testManager.getAnswers(question);
}
public void delAnswer(AnswerVO answer) {
testManager.delAnswer(answer);
}
public void addAnswer(AnswerVO answer,QuestionVO question) {
testManager.addAnswer(answer, question);
}
/*
* categorias
*/
public void addCategory(CategoryVO category) {
testManager.addCategory(category);
}
public void modCategory(CategoryVO category) {
testManager.modCategory(category);
}
public void delCategory(CategoryVO category) {
testManager.delCategory(category);
}
public List getCategories() {
return testManager.getCategories();
}
public CategoryVO getCategory(CategoryVO category) {
return testManager.getCategory(category);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -