Class MockCustomerDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.grubusiness.business.mock.MockCustomerDAO
-
- All Implemented Interfaces:
ICustomerDAO
public class MockCustomerDAO extends java.lang.Object implements ICustomerDAO
This class is a mock implementation ofICustomerDAO
-
-
Constructor Summary
Constructors Constructor Description MockCustomerDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Customerload(java.lang.String strCustomerId)Return a customer from its idjava.util.List<Customer>selectByFilter(java.util.Map<java.lang.String,java.lang.String> mapFilter)Load all the customers corresponding to the specified filterjava.util.List<Customer>selectByName(java.lang.String strFirstName, java.lang.String strLastName)Load all the customers with the specified first name and last namevoidstore(Customer customer)Stores a customer
-
-
-
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:
selectByFilterin interfaceICustomerDAO- 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:
selectByNamein interfaceICustomerDAO- Parameters:
strFirstName- the customer first namestrLastName- 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:
loadin interfaceICustomerDAO- 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
-
-