View Javadoc

1   /**
2    * 
3    */
4   package sk.stuba.fiit.foo07.genex.dao;
5   
6   import java.sql.SQLException;
7   import java.util.ArrayList;
8   
9   import sk.stuba.fiit.foo07.genex.beans.Answer;
10  
11  /**
12   * @author _mizu_
13   * 
14   */
15  public interface AnswerDao {
16  
17      public Answer getAnswerByID(Integer answerID) throws SQLException;
18  
19      public ArrayList<Answer> getAnswersByQuestionID(Integer questionID)
20              throws SQLException;
21  
22      public void addAnswerToQuestion(Integer questionID, Answer toAdd)
23              throws SQLException;
24  
25      public void addAnswersToQuestion(Integer questionID,
26              ArrayList<Answer> answers) throws SQLException;
27  
28      public void updateAnswer(Answer toUpdate) throws SQLException;
29  
30      public void deleteAnswer(Answer toDelete) throws SQLException;
31  }