Interface ICustomerDAO

  • All Known Implementing Classes:
    MockCustomerDAO

    public interface ICustomerDAO
    Interface DAO for customer
    • Method Summary

      All Methods Instance Methods Abstract 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
    • Method Detail

      • selectByFilter

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

        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
        Parameters:
        strFirstName - the customer first name
        strLastName - the customer last name
        Returns:
        the list of customers
      • load

        Customer load​(java.lang.String strCustomerId)
        Return a customer from its id
        Parameters:
        strCustomerId - the customer id
        Returns:
        the customer associated with the id specified