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 fillOutSurveyDate,
int idUserAnswer,
int idSurvey)
Burn token.
|
void |
burnTokenAnonymousSurvey(String fillOutSurveyDate,
String UUID,
int idSurvey)
Burn token anonymous survey.
|
void |
create(Invitationtoken invitationtoken)
Creates the.
|
void |
destroy(Integer id)
Destroy.
|
void |
edit(Invitationtoken invitationtoken)
Edits the.
|
List<String> |
findEmailUsersByIdSurvey(int idSurvey)
Find email users by id survey.
|
int |
findIdSurveyByUUID(String UUID)
Find id survey by UUID.
|
int |
findIdSurveyByUUIDAndUserId(String UUID,
int userId)
Find id survey by UUID and user id.
|
Invitationtoken |
findInvitationtoken(Integer id)
Find invitationtoken.
|
List<Invitationtoken> |
findInvitationtokenByUserAnswerId(int iduseranswer)
Find invitationtoken by user answer id.
|
List<Invitationtoken> |
findInvitationtokenByUUID(String UUID)
Find invitationtoken by UUID.
|
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.
|
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 int findIdSurveyByUUID(String UUID)
UUID - the uuidpublic int findIdSurveyByUUIDAndUserId(String UUID, int userId)
UUID - the uuiduserId - the user idpublic List<Invitationtoken> findInvitationtokenByUUID(String UUID)
UUID - the uuidpublic List<String> findEmailUsersByIdSurvey(int idSurvey)
idSurvey - the id surveypublic void burnToken(String fillOutSurveyDate, int idUserAnswer, int idSurvey)
fillOutSurveyDate - the fill out survey dateidUserAnswer - the id user answeridSurvey - the id surveyCopyright © 2018. All Rights Reserved.