@PermitAll public class JpaPersonDao extends com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<Person,java.lang.String> implements PersonDao
PersonDao
DAO interface.Constructor and Description |
---|
JpaPersonDao()
Creates new instance.
|
JpaPersonDao(javax.persistence.EntityManager em,
RoleNameDao roleNameDao)
Creates new instance of
JpaPersonDao . |
Modifier and Type | Method and Description |
---|---|
boolean |
checkActivePersonWithLoginExists(java.lang.String login)
Check if active person with given loginName exists.
|
java.util.Collection<Person> |
findAll()
Returns a collection of all
Person instances that exist in the
persistent storage or an empty collection if there is no such instance. |
QueryResult<Person> |
findAll(PersonCriteria criteria)
Returns a result of the query specified by given
personCriteria . |
Person |
findByLoginName(java.lang.String login)
Returns person with the login name.
|
java.util.Collection<Person> |
findForSecuirityRole(SecurityRole securityRole)
Returns all persons that save assigned the security role.
|
java.util.Collection<java.lang.String> |
findLikeId(java.lang.String pattern)
Returns all ids matching the pattern.
|
protected javax.persistence.EntityManager |
getEntityManager() |
void |
removeDetail(PersonDetail personDetail)
Removes a person detail.
|
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 JpaPersonDao()
public JpaPersonDao(javax.persistence.EntityManager em, RoleNameDao roleNameDao)
JpaPersonDao
.em
- the entity managerroleNameDao
- the role name daoprotected javax.persistence.EntityManager getEntityManager()
getEntityManager
in class com.whitestein.lsps.common.jpa.AbstractJpaBasicDao<Person,java.lang.String>
public void removeDetail(PersonDetail personDetail)
PersonDao
removeDetail
in interface PersonDao
public Person findByLoginName(java.lang.String login)
PersonDao
findByLoginName
in interface PersonDao
public boolean checkActivePersonWithLoginExists(java.lang.String login)
PersonDao
checkActivePersonWithLoginExists
in interface PersonDao
login
- of the personpublic java.util.Collection<java.lang.String> findLikeId(java.lang.String pattern)
PersonDao
findLikeId
in interface PersonDao
public java.util.Collection<Person> findAll()
PersonDao
Person
instances that exist in the
persistent storage or an empty collection if there is no such instance.public QueryResult<Person> findAll(PersonCriteria criteria)
PersonDao
personCriteria
.public java.util.Collection<Person> findForSecuirityRole(SecurityRole securityRole)
PersonDao
findForSecuirityRole
in interface PersonDao
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.