public class JPAAccountDAO extends Object implements AccountDAO
Modifier and Type | Field and Description |
---|---|
private EntityManager |
em |
Constructor and Description |
---|
JPAAccountDAO() |
Modifier and Type | Method and Description |
---|---|
void |
createAccount(Account account) |
List<Account> |
getAccounts(int index,
int count) |
void |
setEntityManager(EntityManager em) |
private EntityManager em
public void setEntityManager(EntityManager em)
public void createAccount(Account account)
createAccount
in interface AccountDAO
public List<Account> getAccounts(int index, int count)
getAccounts
in interface AccountDAO
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.