public class MockCustomerDAO extends Object implements ICustomerDAO
ICustomerDAO| Constructor and Description |
|---|
MockCustomerDAO() |
| Modifier and Type | Method and Description |
|---|---|
Customer |
load(String strCustomerId)
Return a customer from its id
|
List<Customer> |
selectByFilter(Map<String,String> mapFilter)
Load all the customers corresponding to the specified filter
|
List<Customer> |
selectByName(String strFirstName,
String strLastName)
Load all the customers with the specified first name and last name
|
void |
store(Customer customer)
Stores a customer
|
public List<Customer> selectByFilter(Map<String,String> mapFilter)
selectByFilter in interface ICustomerDAOmapFilter - the filterpublic List<Customer> selectByName(String strFirstName, String strLastName)
selectByName in interface ICustomerDAOstrFirstName - the customer first namestrLastName - the customer last namepublic Customer load(String strCustomerId)
load in interface ICustomerDAOstrCustomerId - the customer idpublic void store(Customer customer)
customer - the customer to storeCopyright © 2021 City of Paris. All rights reserved.