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 CustomerDAO
dao
private static org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description CustomerMgmtEJB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Customer
addCustomer(Customer customer)
void
deleteCustomer(int id)
Customers
findCustomersByName(String firstName, String lastName, int offset, int limit)
Customer
getCustomer(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:
addCustomer
in interfaceCustomerMgmt
-
findCustomersByName
public Customers findCustomersByName(String firstName, String lastName, int offset, int limit)
- Specified by:
findCustomersByName
in interfaceCustomerMgmt
-
getCustomer
public Customer getCustomer(int id)
- Specified by:
getCustomer
in interfaceCustomerMgmt
-
deleteCustomer
public void deleteCustomer(int id)
- Specified by:
deleteCustomer
in interfaceCustomerMgmt
-
-