Class CustomerService


  • public class CustomerService
    extends java.lang.Object
    Service used to find customer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Customer> findbyFilter​(java.util.Map<java.lang.String,​java.lang.String> mapFilter)
      Find all the customers corresponding to the specified filter
      Customer findById​(java.lang.String strCustomerId)
      Find a customer by its id
      java.util.List<Customer> findbyName​(java.lang.String strFirstName, java.lang.String strLastName)
      Find all the customers with the specified first name and last name
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomerService

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

      • findbyFilter

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

        public java.util.List<Customer> findbyName​(java.lang.String strFirstName,
                                                   java.lang.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​(java.lang.String strCustomerId)
        Find a customer by its id
        Parameters:
        strCustomerId - the customer id
        Returns:
        the customer with the specified id