public class ChoicequestionJpaController extends Object implements Serializable
| Constructor and Description |
|---|
ChoicequestionJpaController(javax.persistence.EntityManagerFactory emf)
Instantiates a new choicequestion jpa controller.
|
| Modifier and Type | Method and Description |
|---|---|
int |
deleteQuestions(int idSurveyQuestion)
Delete questions.
|
List<String> |
findSurveyQuestionChoiceByIdSurveyAndNumberQuestion(int idSurvey,
int numberQuestion)
Find survey question choice by id survey and number question.
|
javax.persistence.EntityManager |
getEntityManager()
Gets the entity manager.
|
void |
insertMultipleChoice(Survey survey,
SurveyQuestionModel surveyQuestionModel)
Insert multiple choice.
|
public ChoicequestionJpaController(javax.persistence.EntityManagerFactory emf)
emf - the emfpublic javax.persistence.EntityManager getEntityManager()
public void insertMultipleChoice(Survey survey, SurveyQuestionModel surveyQuestionModel)
survey - the surveysurveyQuestionModel - the survey question modelpublic int deleteQuestions(int idSurveyQuestion)
idSurveyQuestion - the id survey questionpublic List<String> findSurveyQuestionChoiceByIdSurveyAndNumberQuestion(int idSurvey, int numberQuestion)
idSurvey - the id surveynumberQuestion - the number questionCopyright © 2018. All Rights Reserved.