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 PersonDAO
public Person createPerson(Person person)
createPerson
in interface PersonDAO
public void removePerson(Person person)
removePerson
in interface PersonDAO
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.