public class ChoiceanswerJpaController extends Object implements Serializable
| Constructor and Description |
|---|
ChoiceanswerJpaController(javax.persistence.EntityManagerFactory emf)
Instantiates a new choiceanswer jpa controller.
|
| Modifier and Type | Method and Description |
|---|---|
int |
deleteQuestions(int idSurveyQuestion)
Delete questions.
|
List<String> |
findSurveyChoiceAnswerByIdSurveyAndNumberQuestion(int idSurvey,
int idUserAnswer,
int numberQuestion)
Find survey choice answer by id survey and number question.
|
javax.persistence.EntityManager |
getEntityManager()
Gets the entity manager.
|
public ChoiceanswerJpaController(javax.persistence.EntityManagerFactory emf)
emf - the emfpublic javax.persistence.EntityManager getEntityManager()
public List<String> findSurveyChoiceAnswerByIdSurveyAndNumberQuestion(int idSurvey, int idUserAnswer, int numberQuestion)
idSurvey - the id surveyidUserAnswer - the id user answernumberQuestion - the number questionpublic int deleteQuestions(int idSurveyQuestion)
idSurveyQuestion - the id survey questionCopyright © 2017. All Rights Reserved.