| Modifier and Type | Field and Description |
|---|---|
private EntityManager |
em |
private static String |
GET_ALL_PEOPLE |
private static String |
GET_PEOPLE_BY_USERID |
| Constructor and Description |
|---|
JPAPersonDAO() |
| Modifier and Type | Method and Description |
|---|---|
Person |
createPerson(Person person) |
List<Person> |
getPeople(int index,
int count) |
List<Person> |
getPeople(String queryString,
Map<String,Object> params,
int index,
int count) |
Person |
getPerson(long personId) |
Person |
getPersonByUserId(String userId) |
void |
removePerson(Person person) |
void |
setEntityManager(EntityManager em) |
private static final String GET_ALL_PEOPLE
private static final String GET_PEOPLE_BY_USERID
private EntityManager em
public void setEntityManager(EntityManager em)
public Person getPersonByUserId(String userId)
getPersonByUserId in interface PersonDAOpublic Person createPerson(Person person)
createPerson in interface PersonDAOpublic void removePerson(Person person)
removePerson in interface PersonDAOCopyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.