Class CustomerService


  • public class CustomerService
    extends Object
    Service used to find customer
    • Constructor Detail

      • CustomerService

        public CustomerService​(ICustomerDAO daoCustomer)
        Constructor
        Parameters:
        daoCustomer - the customer DAO used by this service
    • Method Detail

      • findbyFilter

        public List<Customer> findbyFilter​(Map<String,​String> mapFilter)
        Find all the customers corresponding to the specified filter
        Parameters:
        mapFilter - the filter
        Returns:
        the list of customers
      • findbyName

        public List<Customer> findbyName​(String strFirstName,
                                         String strLastName)
        Find all the customers with the specified first name and last name
        Parameters:
        strFirstName - the customer first name
        strLastName - the customer last name
        Returns:
        the list of customers
      • findById

        public Customer findById​(String strCustomerId)
        Find a customer by its id
        Parameters:
        strCustomerId - the customer id
        Returns:
        the customer with the specified id