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.Keyword;
10  
11  /**
12   * @author _mizu_
13   * 
14   */
15  public interface KeywordDao {
16  
17      public Keyword getKeywordByID(Integer keywordID) throws SQLException;
18  
19      public ArrayList<Keyword> getKeywordsByQuestionID(Integer questionID)
20              throws SQLException;
21  
22      public void addKeyword(Integer questionID, Keyword toAdd)
23              throws SQLException;
24  
25      public void addKeywords(Integer questionID, ArrayList<Keyword> toAdd)
26              throws SQLException;
27  
28      public void updateKeyword(Keyword toUpdate) throws SQLException;
29  
30      public void deleteKeyword(Keyword toDelete) throws SQLException;
31  
32      public void deleteAllKeywordsFromQuestion(Integer questionID)
33              throws SQLException;
34  
35      public void deleteKeywords(ArrayList<Keyword> toDelete) throws SQLException;
36  
37      public ArrayList<Keyword> getAllKeywords() throws SQLException;
38  }