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

All Known Implementing Classes:
KeywordDaoDerby

public interface KeywordDao

Author:
_mizu_

Method Summary
 void addKeyword(java.lang.Integer questionID, Keyword toAdd)
           
 void addKeywords(java.lang.Integer questionID, java.util.ArrayList<Keyword> toAdd)
           
 void deleteAllKeywordsFromQuestion(java.lang.Integer questionID)
           
 void deleteKeyword(Keyword toDelete)
           
 void deleteKeywords(java.util.ArrayList<Keyword> toDelete)
           
 java.util.ArrayList<Keyword> getAllKeywords()
           
 Keyword getKeywordByID(java.lang.Integer keywordID)
           
 java.util.ArrayList<Keyword> getKeywordsByQuestionID(java.lang.Integer questionID)
           
 void updateKeyword(Keyword toUpdate)
           
 

Method Detail

getKeywordByID

Keyword getKeywordByID(java.lang.Integer keywordID)
                       throws java.sql.SQLException
Throws:
java.sql.SQLException

getKeywordsByQuestionID

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

addKeyword

void addKeyword(java.lang.Integer questionID,
                Keyword toAdd)
                throws java.sql.SQLException
Throws:
java.sql.SQLException

addKeywords

void addKeywords(java.lang.Integer questionID,
                 java.util.ArrayList<Keyword> toAdd)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

updateKeyword

void updateKeyword(Keyword toUpdate)
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

deleteKeyword

void deleteKeyword(Keyword toDelete)
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

deleteAllKeywordsFromQuestion

void deleteAllKeywordsFromQuestion(java.lang.Integer questionID)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

deleteKeywords

void deleteKeywords(java.util.ArrayList<Keyword> toDelete)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

getAllKeywords

java.util.ArrayList<Keyword> getAllKeywords()
                                            throws java.sql.SQLException
Throws:
java.sql.SQLException


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