Class MockCustomerDAO
java.lang.Object
fr.paris.lutece.plugins.grubusiness.business.mock.MockCustomerDAO
- All Implemented Interfaces:
ICustomerDAO
This class is a mock implementation of
ICustomerDAO-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn a customer from its idselectByFilter(Map<String, String> mapFilter) Load all the customers corresponding to the specified filterselectByName(String strFirstName, String strLastName) Load all the customers with the specified first name and last namevoidStores a customer
-
Constructor Details
-
MockCustomerDAO
public MockCustomerDAO()
-
-
Method Details
-
selectByFilter
Load all the customers corresponding to the specified filter- Specified by:
selectByFilterin interfaceICustomerDAO- Parameters:
mapFilter- the filter- Returns:
- the list of customers
-
selectByName
Load all the customers with the specified first name and last name- Specified by:
selectByNamein interfaceICustomerDAO- Parameters:
strFirstName- the customer first namestrLastName- the customer last name- Returns:
- the list of customers
-
load
Return a customer from its id- Specified by:
loadin interfaceICustomerDAO- Parameters:
strCustomerId- the customer id- Returns:
- the customer associated with the id specified
-
store
Stores a customer- Parameters:
customer- the customer to store
-