View Javadoc
1   package ejava.examples.ejbwar.customer.dao;
2   
3   import java.util.List;
4   
5   import ejava.examples.ejbwar.customer.bo.Customer;
6   
7   /**
8    * This interface defines basic DAO capabilities for the customer domain.
9    */
10  public interface CustomerDAO {
11  	void createCustomer(Customer customer);
12  	List<Customer> findCustomerByName(String firstName, String lastName,
13  			int offset, int limit);
14  	Customer getCustomer(int id);
15  	Customer update(Customer customer);
16  	void deleteCustomer(Customer customer);
17  }