Interface INotificationEventDAO

All Known Implementing Classes:
MockNotificationEventDAO

public interface INotificationEventDAO
This interface represents a data access object for Notification object
  • Method Details

    • loadById

      Optional<NotificationEvent> loadById(int nId)
      Finds notifications associated to the id
      Parameters:
      nId -
      Returns:
      the notification corresponding to given id.
    • loadByDemand

      List<NotificationEvent> loadByDemand(String strDemandId, String strDemandTypeId)
      Finds notification events associated to the specified demand id and demand type id.
      Parameters:
      strDemandId - the demand id
      strDemandTypeId - 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

      List<NotificationEvent> loadByFilter(NotificationFilter notificationFilter)
      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

      NotificationEvent insert(NotificationEvent notificationEvent)
      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

      void deleteByCustomerId(String strCustomerId)
      Delete by customer id
      Parameters:
      strCustomerId -
    • loadIdsByFilter

      List<Integer> loadIdsByFilter(NotificationFilter notificationFilter)
      Load the ids of the notification events by filter
      Parameters:
      notificationFilter - The notification filter
      Returns:
      The list of notification event ids
    • loadByIds

      List<NotificationEvent> loadByIds(List<Integer> listIds)
      load the events for an id list
      Returns:
      The list of notification events
    • deleteBeforeDate

      String deleteBeforeDate(long lDate)
      purge the events after N days
      Parameters:
      nbDays -
      Returns: