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
|
List<String> |
loadAllIds()
Load the ids of the demands
|
Collection<Demand> |
loadByCustomerId(String strCustomerId)
Finds the demands associated to the specified customer id
|
Collection<Demand> |
loadByFilter(NotificationFilter filter)
Search demands by filter
|
Demand |
loadById(String strId)
Finds demands associated to the id
|
List<Demand> |
loadByIds(List<Integer> listIds)
load demands corresponding to the id list
|
Collection<Demand> |
loadByReference(String strReference)
Finds the demands associated to the specified reference
|
List<Integer> |
loadIdsByCustomerIdAndIdDemandType(String strCustomerId,
String strNotificationType,
String strIdDemandType)
Load demand ids ordered by date notification
|
List<Integer> |
loadIdsByFilter(NotificationFilter filter)
Search demands by filter
|
List<Integer> |
loadIdsByStatus(String strCustomerId,
List<String> listStatus,
String strNotificationType,
String strIdDemandType)
Load demand ids by status
|
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 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 idpublic List<String> loadAllIds()
loadAllIds in interface IDemandDAOpublic Demand loadById(String strId)
loadById in interface IDemandDAOpublic Collection<Demand> loadByFilter(NotificationFilter filter)
IDemandDAOloadByFilter in interface IDemandDAOpublic List<Integer> loadIdsByFilter(NotificationFilter filter)
IDemandDAOloadIdsByFilter in interface IDemandDAOpublic List<Demand> loadByIds(List<Integer> listIds)
IDemandDAOloadByIds in interface IDemandDAOpublic List<Integer> loadIdsByCustomerIdAndIdDemandType(String strCustomerId, String strNotificationType, String strIdDemandType)
IDemandDAOloadIdsByCustomerIdAndIdDemandType in interface IDemandDAOstrIdDemandType - (Optional can be null)public List<Integer> loadIdsByStatus(String strCustomerId, List<String> listStatus, String strNotificationType, String strIdDemandType)
IDemandDAOloadIdsByStatus in interface IDemandDAOstrIdDemandType - (Optional can be null)Copyright © 2024 City of Paris. All rights reserved.