Interface QuestionRepositoryReadOnly

All Known Implementing Classes:
QuestionRepositoryImpl

public interface QuestionRepositoryReadOnly
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int id)
    Finds the question identified by id in the database
  • Method Details

    • get

      Question get(int id) throws NotFoundException
      Finds the question identified by id in the database
      Parameters:
      id - the id of the question to be found
      Returns:
      an instance of Question if there is a question identified by id, null otherwise
      Throws:
      NotFoundException - if no question identified by id has been found