U - the user entity class.public abstract class AbstractJpaUserDao<U extends UserEntity<?>> extends GenericDao<U,Long> implements UserDao<U>
UserDao interface, backed by JPA entities
and queries.| Constructor and Description |
|---|
AbstractJpaUserDao(Class<U> cls,
javax.inject.Provider<javax.persistence.EntityManager> inEMProvider)
Create an object with the give entity manager.
|
| Modifier and Type | Method and Description |
|---|---|
U |
getByHttpServletRequest(javax.servlet.http.HttpServletRequest request) |
U |
getByName(String username) |
U |
getByPrincipal(Principal principal) |
create, getAll, getDatabaseSupport, getEntityClass, getEntityManager, getListAsc, getListByAttribute, getListByAttribute, getListByAttributeIn, getListByAttributeIn, getUniqueByAttribute, getUniqueByAttribute, refresh, remove, retrieve, updatepublic U getByHttpServletRequest(javax.servlet.http.HttpServletRequest request)
getByHttpServletRequest in interface UserDao<U extends UserEntity<?>>public U getByPrincipal(Principal principal)
getByPrincipal in interface UserDao<U extends UserEntity<?>>public U getByName(String username)
getByName in interface DaoWithUniqueName<U extends UserEntity<?>,Long>Copyright © 2016–2018 Emory University. All rights reserved.