public class CustomerDAOImpl extends Object implements CustomerDAO
| Modifier and Type | Field and Description |
|---|---|
private EntityManager |
em |
| Constructor and Description |
|---|
CustomerDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
createCustomer(Customer customer) |
void |
deleteCustomer(Customer customer) |
List<Customer> |
findCustomerByName(String firstName,
String lastName,
int offset,
int limit) |
Customer |
getCustomer(int id) |
Customer |
update(Customer customer) |
@Inject private EntityManager em
public void createCustomer(Customer customer)
createCustomer in interface CustomerDAOpublic List<Customer> findCustomerByName(String firstName, String lastName, int offset, int limit)
findCustomerByName in interface CustomerDAOpublic Customer getCustomer(int id)
getCustomer in interface CustomerDAOpublic Customer update(Customer customer)
update in interface CustomerDAOpublic void deleteCustomer(Customer customer)
deleteCustomer in interface CustomerDAOCopyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.