public class JpaLocalUserDao extends org.eurekaclinical.standardapis.dao.GenericDao<LocalUserEntity,Long> implements LocalUserDao
UserDao interface, backed by JPA entities
and queries.| Constructor and Description |
|---|
JpaLocalUserDao(com.google.inject.Provider<javax.persistence.EntityManager> inEMProvider)
Create an object with the give entity manager.
|
| Modifier and Type | Method and Description |
|---|---|
LocalUserEntity |
getByName(String name)
Get a user object, given the user name.
|
LocalUserEntity |
getByVerificationCode(String inCode)
Get a user by the verification code.
|
create, getAll, getEntityManager, getListAsc, getListByAttribute, getListByAttribute, getListByAttribute, getUniqueByAttribute, getUniqueByAttribute, refresh, remove, retrieve, update@Inject public JpaLocalUserDao(com.google.inject.Provider<javax.persistence.EntityManager> inEMProvider)
inEMProvider - The entity manager to be used for communication with
the data store.public LocalUserEntity getByName(String name)
LocalUserDaogetByName in interface LocalUserDaoname - The name of the user to retrieve.public LocalUserEntity getByVerificationCode(String inCode)
LocalUserDaogetByVerificationCode in interface LocalUserDaoinCode - The verification code to search for.Copyright © 2012–2016 Emory University. All rights reserved.