Uses of Enum Class
com.ubs.backend.classes.enums.AnswerType
Packages that use AnswerType
Package
Description
-
Uses of AnswerType in com.ubs.backend.classes.database
Fields in com.ubs.backend.classes.database declared as AnswerTypeModifier and TypeFieldDescriptionprivate AnswerTypeAnswer.answerTypethe type of this answerprivate AnswerTypeTypeTag.answerTypethe type of the tag, defined by the answersMethods in com.ubs.backend.classes.database that return AnswerTypeMethods in com.ubs.backend.classes.database with parameters of type AnswerTypeModifier and TypeMethodDescriptionvoidAnswer.setAnswerType(AnswerType answerType)voidTypeTag.setAnswerType(AnswerType answerType)Constructors in com.ubs.backend.classes.database with parameters of type AnswerTypeModifierConstructorDescriptionAnswer(String answer, AnswerType answerType)Constructor with only the answerAnswer(String answer, AnswerType answerType, boolean isHidden)Answer(String title, String answer, AnswerType answerType)Constructor with Title and AnswerAnswer(String title, String answer, AnswerType answerType, boolean isHidden)TypeTag(Tag tag, AnswerType answerType)TypeTag(Tag tag, AnswerType answerType, int upvotes, int downvotes)All-args constructor -
Uses of AnswerType in com.ubs.backend.classes.database.dao
Methods in com.ubs.backend.classes.database.dao with parameters of type AnswerTypeModifier and TypeMethodDescriptionintAnswerDAO.countByType(AnswerType type, javax.persistence.EntityManager em)Count how many answers there are per typeintAnswerDAO.countByTypeAndTag(long tagID, AnswerType type, javax.persistence.EntityManager em)counts how many answers there are per type and tagvoidTypeTagDAO.removeByTagIdAndType(long tagId, AnswerType type)voidTypeTagDAO.removeByTagIdAndType(long tagId, AnswerType type, javax.persistence.EntityManager em)voidTypeTagDAO.removeReferences(long tagId, AnswerType answerType, javax.persistence.EntityManager em)ResultDAO.selectByAnswerAndType(long id, AnswerType type, javax.persistence.EntityManager em)selects all result sets that have the specified answer, with the specified typeResultDAO.selectByTagAndType(long tagId, AnswerType type, javax.persistence.EntityManager em)TypeTagDAO.selectByTagAndType(AnswerType type, long tagId, javax.persistence.EntityManager em)TypeTagDAO.selectByTagNameAndType(AnswerType type, String tagName)TypeTagDAO.selectByTagNameAndType(AnswerType type, String tagName, javax.persistence.EntityManager em)AnswerDAO.selectByType(AnswerType type)Select all answers with a set TypeAnswerDAO.selectByType(AnswerType type, javax.persistence.EntityManager em)Select all answers with a set Type with a preset EntityManagerResultDAO.selectByType(AnswerType type, javax.persistence.EntityManager em)Select by type list.TypeTagDAO.selectByType(AnswerType type)TypeTagDAO.selectByType(AnswerType type, int max, javax.persistence.EntityManager em)TypeTagDAO.selectByType(AnswerType type, javax.persistence.EntityManager em)select all typedTags by their typeAnswerDAO.selectByTypeAndTag(long tagID, AnswerType type, javax.persistence.EntityManager em)Method to select a List of everyAnswerwith a certain type and tagAnswerDAO.selectRandomByType(AnswerType type, int max)AnswerDAO.selectRandomByType(AnswerType type, int max, javax.persistence.EntityManager em)voidTypeTagDAO.vote(AnswerType type, long tagID, boolean isUpvote, boolean revert, String question, javax.persistence.EntityManager em) -
Uses of AnswerType in com.ubs.backend.classes.database.dao.questions
Methods in com.ubs.backend.classes.database.dao.questions with parameters of type AnswerTypeModifier and TypeMethodDescriptionvoidAnsweredQuestionDAO.removeResultByTagAndType(long tagId, AnswerType answerType, javax.persistence.EntityManager em)AnsweredQuestionDAO.selectResultByTagAndType(long tagId, AnswerType type, javax.persistence.EntityManager em) -
Uses of AnswerType in com.ubs.backend.classes.enums
Fields in com.ubs.backend.classes.enums declared as AnswerTypeMethods in com.ubs.backend.classes.enums that return AnswerTypeModifier and TypeMethodDescriptionstatic AnswerTypeAnswerType.getAnswerTypeByName(String name)method to get an answerType by its namestatic AnswerType[]AnswerType.getValues()static AnswerTypeReturns the enum constant of this class with the specified name.static AnswerType[]AnswerType.values()Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of AnswerType in com.ubs.backend.services
Methods in com.ubs.backend.services with parameters of type AnswerTypeModifier and TypeMethodDescriptionprivate voidAdminTool.addTypeTag(AnswerType type, Tag tag, List<TypeTag> typeTags, TypeTagDAO typeTagDAO, javax.persistence.EntityManager em)method to add tag to type tags if tag doesn't already exist with this typeprivate StringGet.generateJSONResponseAnswerTypes(AnswerType neededAnswerType)Get.getAllTagsWithExtraInformationsByType(AnswerType type, javax.persistence.EntityManager em)Get.getAllTagsWithExtraInformationsFromGroupedTypeTagByType(AnswerType type, javax.persistence.EntityManager em)Get.getAllTagsWithExtraInformationsFromResultByType(AnswerType type, javax.persistence.EntityManager em)private TempTagGet.getSingleTagWithExtraInformations(long tagID, AnswerType type, boolean withAnswers, javax.persistence.EntityManager em)private TempTagGet.getSingleTagWithExtraInformationsFromGroupedTypeTagByType(long tagID, AnswerType type, boolean withAnswers, javax.persistence.EntityManager em)get one specific tag with a specific type and all its additional informationsprivate TempTagGet.getSingleTagWithExtraInformationsFromResultByType(long tagID, AnswerType type, boolean withAnswers, javax.persistence.EntityManager em)get single result with specified type and tag