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 CustomerMgmtpublic Customers findCustomersByName(String firstName, String lastName, int offset, int limit)
findCustomersByName in interface CustomerMgmtpublic Customer getCustomer(int id)
getCustomer in interface CustomerMgmtpublic void deleteCustomer(int id)
deleteCustomer in interface CustomerMgmtCopyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.