?? 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);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -