Class MockCustomerDAO

    • Constructor Detail

      • MockCustomerDAO

        public MockCustomerDAO()
    • Method Detail

      • selectByFilter

        public List<Customer> selectByFilter​(Map<String,​String> mapFilter)
        Load all the customers corresponding to the specified filter
        Specified by:
        selectByFilter in interface ICustomerDAO
        Parameters:
        mapFilter - the filter
        Returns:
        the list of customers
      • selectByName

        public List<Customer> selectByName​(String strFirstName,
                                           String strLastName)
        Load all the customers with the specified first name and last name
        Specified by:
        selectByName in interface ICustomerDAO
        Parameters:
        strFirstName - the customer first name
        strLastName - the customer last name
        Returns:
        the list of customers
      • load

        public Customer load​(String strCustomerId)
        Return a customer from its id
        Specified by:
        load in interface ICustomerDAO
        Parameters:
        strCustomerId - the customer id
        Returns:
        the customer associated with the id specified
      • store

        public void store​(Customer customer)
        Stores a customer
        Parameters:
        customer - the customer to store