Class CustomerMgmtEJB
- java.lang.Object
-
- ejava.examples.ejbwar.customer.ejb.CustomerMgmtEJB
-
- All Implemented Interfaces:
CustomerMgmt,CustomerMgmtLocal,CustomerMgmtRemote
public class CustomerMgmtEJB extends Object implements CustomerMgmtLocal, CustomerMgmtRemote
-
-
Field Summary
Fields Modifier and Type Field Description private CustomerDAOdaoprivate static org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description CustomerMgmtEJB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomeraddCustomer(Customer customer)voiddeleteCustomer(int id)CustomersfindCustomersByName(String firstName, String lastName, int offset, int limit)CustomergetCustomer(int id)
-
-
-
Field Detail
-
log
private static final org.slf4j.Logger log
-
dao
@Inject private CustomerDAO dao
-
-
Method Detail
-
addCustomer
public Customer addCustomer(Customer customer)
- Specified by:
addCustomerin interfaceCustomerMgmt
-
findCustomersByName
public Customers findCustomersByName(String firstName, String lastName, int offset, int limit)
- Specified by:
findCustomersByNamein interfaceCustomerMgmt
-
getCustomer
public Customer getCustomer(int id)
- Specified by:
getCustomerin interfaceCustomerMgmt
-
deleteCustomer
public void deleteCustomer(int id)
- Specified by:
deleteCustomerin interfaceCustomerMgmt
-
-