Class UnansweredQuestionDAO

java.lang.Object
com.ubs.backend.classes.database.dao.DAO<UnansweredQuestion>
com.ubs.backend.classes.database.dao.questions.UnansweredQuestionDAO

public class UnansweredQuestionDAO extends DAO<UnansweredQuestion>
DAO for com.ubs.backend.classes.database.question.UnansweredQuestion
Since:
17.07.2021
Author:
Tim Irmler
  • Constructor Details

    • UnansweredQuestionDAO

      public UnansweredQuestionDAO()
  • Method Details

    • selectByQuestion

      public UnansweredQuestion selectByQuestion(String question, javax.persistence.EntityManager em)
    • selectByQuestion

      public UnansweredQuestion selectByQuestion(String question)
    • remove

      public void remove(long id)
      Removes an UnansweredQuestion in the Database by it's ID
      Overrides:
      remove in class DAO<UnansweredQuestion>
      Parameters:
      id - the id of the object which is going to be removed
    • remove

      public void remove(UnansweredQuestion unansweredQuestion)
    • remove

      public void remove(long id, javax.persistence.EntityManager em)
      Overrides:
      remove in class DAO<UnansweredQuestion>
    • doRemove

      public boolean doRemove(UnansweredQuestion unansweredQuestion, javax.persistence.EntityManager em)
    • removeAllReferences

      public boolean removeAllReferences(long id, javax.persistence.EntityManager em)
    • removeByQuestion

      public boolean removeByQuestion(String question, javax.persistence.EntityManager em)