@PermitAll public class JpaRoleDao extends com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<Role,Long> implements RoleDao
RoleDao
DAO interface.Constructor and Description |
---|
JpaRoleDao()
Creates new instance.
|
JpaRoleDao(javax.persistence.EntityManager em)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
Collection<Role> |
findAll()
Returns a collection of all
Role instances that exist in the
persistent storage or an empty collection if there is no such instance. |
Collection<Role> |
findForPerson(String personId)
Returns a collection of
Role instances for a person. |
protected javax.persistence.EntityManager |
getEntityManager() |
clear, contains, findById, findById, findByIds, flush, getColName, getEntityClass, getEntityName, getReferenceById, merge, persist, refresh, refresh, remove, setEntityClass, setLockMode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public JpaRoleDao()
public JpaRoleDao(javax.persistence.EntityManager em)
em
- the entity managerprotected javax.persistence.EntityManager getEntityManager()
public Collection<Role> findAll()
RoleDao
Role
instances that exist in the
persistent storage or an empty collection if there is no such instance.public Collection<Role> findForPerson(String personId)
RoleDao
Role
instances for a person.findForPerson
in interface RoleDao
Role
instances for a person.Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.