QuestionRepository

class QuestionRepository

Functions

categoryQuestionsCount
Link copied to clipboard
fun categoryQuestionsCount(categoryId: Int): Int
contains
Link copied to clipboard
fun contains(questionId: Long): Boolean
decrementOrders
Link copied to clipboard
fun decrementOrders(categoryId: Int, oldOrder: Int): Int
delete
Link copied to clipboard
fun delete(id: Long, userId: String): Int
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getAllByCategory
Link copied to clipboard
fun getAllByCategory(categoryId: Int): List<GetQuestionDto>
getAllIdsByCategory
Link copied to clipboard
fun getAllIdsByCategory(categoryId: Int): List<Long>
getNumberOfQuestionsInCategory
Link copied to clipboard
fun getNumberOfQuestionsInCategory(categoryId: Int): Int
getQuestion
Link copied to clipboard
fun getQuestion(id: Long): GetQuestionDto
hashCode
Link copied to clipboard
open fun hashCode(): Int
incrementOrders
Link copied to clipboard
fun incrementOrders(categoryId: Int, newOrder: Int): Int
insert
Link copied to clipboard
fun insert(question: Question): Long
insertByUser
Link copied to clipboard
fun insertByUser(question: PostQuestionDto, userId: String): Long
search
Link copied to clipboard
fun search(pattern: String): List<GetQuestionDto>
toString
Link copied to clipboard
open fun toString(): String
updateQuestion
Link copied to clipboard
fun updateQuestion(question: PutQuestionDto, userId: String): Int