public class CustomerMgmtEJB extends Object implements CustomerMgmtLocal, CustomerMgmtRemote
Modifier and Type | Field and Description |
---|---|
private CustomerDAO |
dao |
private static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
CustomerMgmtEJB() |
Modifier and Type | Method and Description |
---|---|
Customer |
addCustomer(Customer customer) |
void |
deleteCustomer(int id) |
Customers |
findCustomersByName(String firstName,
String lastName,
int offset,
int limit) |
Customer |
getCustomer(int id) |
private static final org.apache.commons.logging.Log log
@Inject private CustomerDAO dao
public Customer addCustomer(Customer customer)
addCustomer
in interface CustomerMgmt
public Customers findCustomersByName(String firstName, String lastName, int offset, int limit)
findCustomersByName
in interface CustomerMgmt
public Customer getCustomer(int id)
getCustomer
in interface CustomerMgmt
public void deleteCustomer(int id)
deleteCustomer
in interface CustomerMgmt
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.