public class MockDemandDAO extends Object implements IDemandDAO
IDemandDAO| Constructor and Description |
|---|
MockDemandDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String strDemandId,
String strDemandTypeId)
Deletes a demand with the specified id and type id
|
Demand |
insert(Demand demand)
Insert a demand
|
Demand |
load(String strDemandId,
String strDemandTypeId)
Finds a demand with the specified id and type id
|
Collection<Demand> |
loadAllDemands()
Finds all the demands in the table
|
Collection<Demand> |
loadByCustomerId(String strCustomerId)
Finds the demands associated to the specified customer id
|
Collection<Demand> |
loadByReference(String strReference)
Finds the demands associated to the specified reference
|
Demand |
store(Demand demand)
Stores a demand
|
public Collection<Demand> loadByCustomerId(String strCustomerId)
loadByCustomerId in interface IDemandDAOstrCustomerId - the customer idpublic Collection<Demand> loadByReference(String strReference)
loadByReference in interface IDemandDAOstrReference - the referencepublic Collection<Demand> loadAllDemands()
loadAllDemands in interface IDemandDAOpublic Demand load(String strDemandId, String strDemandTypeId)
load in interface IDemandDAOstrDemandId - the demand idstrDemandTypeId - the demand type idnull otherwisepublic Demand insert(Demand demand)
insert in interface IDemandDAOdemand - the demand to insertpublic Demand store(Demand demand)
store in interface IDemandDAOdemand - the demand to storepublic void delete(String strDemandId, String strDemandTypeId)
delete in interface IDemandDAOstrDemandId - the demand idstrDemandTypeId - the demand type idCopyright © 2019 City of Paris. All rights reserved.