sk.stuba.fiit.foo07.genex.dao
Interface AnswerDao

All Known Implementing Classes:
AnswerDaoDerby

public interface AnswerDao

Author:
_mizu_

Method Summary
 void addAnswersToQuestion(java.lang.Integer questionID, java.util.ArrayList<Answer> answers)
           
 void addAnswerToQuestion(java.lang.Integer questionID, Answer toAdd)
           
 void deleteAnswer(Answer toDelete)
           
 Answer getAnswerByID(java.lang.Integer answerID)
           
 java.util.ArrayList<Answer> getAnswersByQuestionID(java.lang.Integer questionID)
           
 void updateAnswer(Answer toUpdate)
           
 

Method Detail

getAnswerByID

Answer getAnswerByID(java.lang.Integer answerID)
                     throws java.sql.SQLException
Throws:
java.sql.SQLException

getAnswersByQuestionID

java.util.ArrayList<Answer> getAnswersByQuestionID(java.lang.Integer questionID)
                                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

addAnswerToQuestion

void addAnswerToQuestion(java.lang.Integer questionID,
                         Answer toAdd)
                         throws java.sql.SQLException
Throws:
java.sql.SQLException

addAnswersToQuestion

void addAnswersToQuestion(java.lang.Integer questionID,
                          java.util.ArrayList<Answer> answers)
                          throws java.sql.SQLException
Throws:
java.sql.SQLException

updateAnswer

void updateAnswer(Answer toUpdate)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

deleteAnswer

void deleteAnswer(Answer toDelete)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException


Copyright © 2008 Faculty of Informatics and Information Technologies, STU Bratislava. All Rights Reserved.