Class MockCustomerDAO

    • Constructor Summary

      Constructors 
      Constructor Description
      MockCustomerDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Customer load​(java.lang.String strCustomerId)
      Return a customer from its id
      java.util.List<Customer> selectByFilter​(java.util.Map<java.lang.String,​java.lang.String> mapFilter)
      Load all the customers corresponding to the specified filter
      java.util.List<Customer> selectByName​(java.lang.String strFirstName, java.lang.String strLastName)
      Load all the customers with the specified first name and last name
      void store​(Customer customer)
      Stores a customer
      • Methods inherited from class java.lang.Object

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

      • MockCustomerDAO

        public MockCustomerDAO()
    • Method Detail

      • selectByFilter

        public java.util.List<Customer> selectByFilter​(java.util.Map<java.lang.String,​java.lang.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 java.util.List<Customer> selectByName​(java.lang.String strFirstName,
                                                     java.lang.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​(java.lang.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