public class JPAAuthorDAO extends Object implements AuthorDAO
| Modifier and Type | Field and Description |
|---|---|
private EntityManager |
em |
private static org.apache.commons.logging.Log |
log_ |
| Constructor and Description |
|---|
JPAAuthorDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(Author author) |
Author |
get(long id) |
Author |
getByQuery(long id) |
void |
remove(Author author) |
void |
setEntityManager(EntityManager em) |
Author |
update(Author author) |
Author |
updateByMerge(Author author) |
private static org.apache.commons.logging.Log log_
private EntityManager em
public void setEntityManager(EntityManager em)
public Author getByQuery(long id)
getByQuery in interface AuthorDAOpublic Author updateByMerge(Author author)
updateByMerge in interface AuthorDAOCopyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.