1 package ejava.examples.ejbwar.customer.client;
2
3 import ejava.examples.ejbwar.customer.bo.Customer;
4 import ejava.examples.ejbwar.customer.bo.Customers;
5
6 /**
7 * Defines an interface to the customer business logic using JAX-RS
8 * resources.
9 */
10 public interface CustomerClient {
11 Customer addCustomer(Customer customer) throws Exception;
12 Customers findCustomersByName(String firstName, String lastName, int offset, int limit) throws Exception;
13 Customer getCustomer(int id) throws Exception;
14 boolean deleteCustomer(int id) throws Exception;
15 }