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 CustomerDAO
public List<Customer> findCustomerByName(String firstName, String lastName, int offset, int limit)
findCustomerByName
in interface CustomerDAO
public Customer getCustomer(int id)
getCustomer
in interface CustomerDAO
public Customer update(Customer customer)
update
in interface CustomerDAO
public void deleteCustomer(Customer customer)
deleteCustomer
in interface CustomerDAO
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.