Package ejava.projects.esales.jpa
Class JPAAccountDAO
- java.lang.Object
- 
- ejava.projects.esales.jpa.JPAAccountDAO
 
- 
- All Implemented Interfaces:
- AccountDAO
 
 public class JPAAccountDAO extends Object implements AccountDAO This class provides a sparse example of a JPA DAO for the class project. It is put in place here to demonstrate some of the end-to-end use cases,
- 
- 
Field SummaryFields Modifier and Type Field Description private EntityManagerem
 - 
Constructor SummaryConstructors Constructor Description JPAAccountDAO()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateAccount(Account account)List<Account>getAccounts(int index, int count)voidsetEntityManager(EntityManager em)
 
- 
- 
- 
Field Detail- 
emprivate EntityManager em 
 
- 
 - 
Method Detail- 
setEntityManagerpublic void setEntityManager(EntityManager em) 
 - 
createAccountpublic void createAccount(Account account) - Specified by:
- createAccountin interface- AccountDAO
 
 - 
getAccountspublic List<Account> getAccounts(int index, int count) - Specified by:
- getAccountsin interface- AccountDAO
 
 
- 
 
-