Package com.ubs.backend.demo
Class DBData
java.lang.Object
com.ubs.backend.demo.DBData
- Since:
- 17.07.2021
- Author:
- Marc, Magnus, Tim Irmler, Sarah
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DBData
public DBData()
-
-
Method Details
-
getTypeTags
- Returns:
- all set type tags
- Since:
- 05.08.2021
-
getTypeTagAnswers
- Returns:
- all set type tag answers, like jokes
-
getResults
- Returns:
- all set results with their corresponding tags and answers
- Since:
- 17.07.202
-
getBlackList
- Returns:
- all words that should be blacklisted, read from a file (every line one word)
- Since:
- 17.07.202
-
getUserLogins
- Returns:
- all set user logins
- Since:
- 17.07.202
-
getDefaultQuestions
- Returns:
- all set default questions
- Since:
- 17.07.202
-
readFileLines
- Parameters:
filepath- the path to the file- Returns:
- a list of words, every line in the file is one entry in the list
- Throws:
FileNotFoundException- if the file cannot be foundIOException- if something went wrong
-