public class InvitationtokenJpaController extends Object implements Serializable
| Constructor and Description |
|---|
InvitationtokenJpaController(javax.persistence.EntityManagerFactory emf)
Instantiates a new invitationtoken jpa controller.
|
| Modifier and Type | Method and Description |
|---|---|
void |
burnToken(String tokenToBurn,
String fillOutSurveyDate,
int idUserAnswer,
int idSurvey)
Burn token.
|
void |
create(Invitationtoken invitationtoken)
Creates the.
|
void |
destroy(Integer id)
Destroy.
|
void |
edit(Invitationtoken invitationtoken)
Edits the.
|
Invitationtoken |
findInvitationtoken(Integer id)
Find invitationtoken.
|
List<Invitationtoken> |
findInvitationtokenByUserAnswerId(int iduseranswer)
Find invitationtoken by user answer id.
|
List<Invitationtoken> |
findInvitationtokenEntities()
Find invitationtoken entities.
|
List<Invitationtoken> |
findInvitationtokenEntities(int maxResults,
int firstResult)
Find invitationtoken entities.
|
javax.persistence.EntityManager |
getEntityManager()
Gets the entity manager.
|
int |
getInvitationtokenCount()
Gets the invitationtoken count.
|
List<Integer> |
getListUserAnsweredSurvey(int idSurveySelected)
Gets the list user answered survey.
|
List<Integer> |
getUserAnsweredSurveyCount()
Gets the user answered survey count.
|
public InvitationtokenJpaController(javax.persistence.EntityManagerFactory emf)
emf - the emfpublic javax.persistence.EntityManager getEntityManager()
public void create(Invitationtoken invitationtoken)
invitationtoken - the invitationtokenpublic void edit(Invitationtoken invitationtoken) throws NonexistentEntityException, Exception
invitationtoken - the invitationtokenNonexistentEntityException - the nonexistent entity exceptionException - the exceptionpublic void destroy(Integer id) throws NonexistentEntityException
id - the idNonexistentEntityException - the nonexistent entity exceptionpublic List<Invitationtoken> findInvitationtokenEntities()
public List<Invitationtoken> findInvitationtokenEntities(int maxResults, int firstResult)
maxResults - the max resultsfirstResult - the first resultpublic Invitationtoken findInvitationtoken(Integer id)
id - the idpublic int getInvitationtokenCount()
public List<Invitationtoken> findInvitationtokenByUserAnswerId(int iduseranswer)
iduseranswer - the iduseranswerpublic List<Integer> getListUserAnsweredSurvey(int idSurveySelected)
idSurveySelected - the id survey selectedpublic List<Integer> getUserAnsweredSurveyCount()
Copyright © 2018. All Rights Reserved.