Interface INotificationEventDAO
- All Known Implementing Classes:
MockNotificationEventDAO
public interface INotificationEventDAO
This interface represents a data access object for Notification object
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nId) delete a notification eventdeleteBeforeDate(long lDate) purge the events after N daysvoiddeleteByCustomerId(String strCustomerId) Delete by customer idinsert(NotificationEvent notificationEvent) Inserts a notification eventloadByDemand(String strDemandId, String strDemandTypeId) Finds notification events associated to the specified demand id and demand type id.loadByFilter(NotificationFilter notificationFilter) Finds and populate notification according to the filterloadById(int nId) Finds notifications associated to the idload the events for an id listloadByNotification(String strDemandId, String strDemandTypeId, long lNotificationDate) Finds notification events associated to the specified notificationloadIdsByFilter(NotificationFilter notificationFilter) Load the ids of the notification events by filter
-
Method Details
-
loadById
Finds notifications associated to the id- Parameters:
nId-- Returns:
- the notification corresponding to given id.
-
loadByDemand
Finds notification events associated to the specified demand id and demand type id.- Parameters:
strDemandId- the demand idstrDemandTypeId- the demand type id- Returns:
- the notification event list
-
loadByNotification
List<NotificationEvent> loadByNotification(String strDemandId, String strDemandTypeId, long lNotificationDate) Finds notification events associated to the specified notification- Parameters:
strDemandId-strDemandTypeId-lNotificationDate-- Returns:
- the notification event list
-
loadByFilter
Finds and populate notification according to the filter- Parameters:
notificationFilter- the filter- Returns:
- the notification events. An empty list is returned if no notificationevent has been found.
-
insert
Inserts a notification event- Parameters:
notificationEvent- the notification event to insert- Returns:
- the inserted notification event
-
delete
void delete(int nId) delete a notification event- Parameters:
nId-
-
deleteByCustomerId
Delete by customer id- Parameters:
strCustomerId-
-
loadIdsByFilter
Load the ids of the notification events by filter- Parameters:
notificationFilter- The notification filter- Returns:
- The list of notification event ids
-
loadByIds
load the events for an id list- Returns:
- The list of notification events
-
deleteBeforeDate
purge the events after N days- Parameters:
nbDays-- Returns:
-