public class MockNotificationDAO extends Object implements INotificationDAO
INotificationDAO| Constructor and Description |
|---|
MockNotificationDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int id)
delete notification
|
void |
deleteByDemand(String strDemandId,
String strDemandTypeId)
Deletes notifications associated to the specified demand id and demand type id
|
Notification |
insert(Notification notification)
Inserts a notification
|
List<Notification> |
loadByDemand(String strDemandId,
String strDemandTypeId)
Finds notifications associated to the specified demand id and demand type id.
|
List<Notification> |
loadByDemandAndDate(String strDemandId,
String strDemandTypeId,
long lDate)
Get notification by demand ids and notification date
|
List<Notification> |
loadByDemandIdTypeIdCustomerId(String strDemandId,
String strDemandTypeId,
String strCustomerId)
Finds and populate notification by demand id, type id, customer id
|
List<Notification> |
loadByFilter(NotificationFilter notificationFilter)
Finds and populate notification according to the filter
|
Optional<Notification> |
loadById(int nId)
Finds notifications associated to the id
|
List<Notification> |
loadByIds(List<Integer> listIds)
Loads list by Ids
|
List<String> |
loadDistinctDemandTypeIds()
load distinct demand type ids
|
List<Integer> |
loadIdsByFilter(NotificationFilter notificationFilter)
Load the ids of the notification by filter
|
Notification |
loadLastNotifByDemandIdAndDemandTypeId(String strDemandId,
String strDemandTypeId)
Find last notification by demand id and demand type id
|
public List<Notification> loadByDemand(String strDemandId, String strDemandTypeId)
loadByDemand in interface INotificationDAOstrDemandId - the demand idstrDemandTypeId - the demand type idpublic List<Notification> loadByFilter(NotificationFilter notificationFilter)
loadByFilter in interface INotificationDAOnotificationFilter - the filterpublic Notification insert(Notification notification)
insert in interface INotificationDAOnotification - the notification to insertpublic void deleteByDemand(String strDemandId, String strDemandTypeId)
deleteByDemand in interface INotificationDAOstrDemandId - the demand idstrDemandTypeId - the demand type idpublic List<Integer> loadIdsByFilter(NotificationFilter notificationFilter)
loadIdsByFilter in interface INotificationDAOnotificationFilter - The notification filterpublic Optional<Notification> loadById(int nId)
loadById in interface INotificationDAOpublic List<Notification> loadByDemandAndDate(String strDemandId, String strDemandTypeId, long lDate)
INotificationDAOloadByDemandAndDate in interface INotificationDAOpublic List<String> loadDistinctDemandTypeIds()
INotificationDAOloadDistinctDemandTypeIds in interface INotificationDAOpublic List<Notification> loadByIds(List<Integer> listIds)
INotificationDAOloadByIds in interface INotificationDAOpublic void delete(int id)
INotificationDAOdelete in interface INotificationDAOpublic List<Notification> loadByDemandIdTypeIdCustomerId(String strDemandId, String strDemandTypeId, String strCustomerId)
INotificationDAOloadByDemandIdTypeIdCustomerId in interface INotificationDAOpublic Notification loadLastNotifByDemandIdAndDemandTypeId(String strDemandId, String strDemandTypeId)
INotificationDAOloadLastNotifByDemandIdAndDemandTypeId in interface INotificationDAOCopyright © 2024 City of Paris. All rights reserved.