Class NotificationDAO

  • All Implemented Interfaces:
    fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO

    public final class NotificationDAO
    extends java.lang.Object
    implements fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
    This class provides Data Access methods for Notification objects stored in SQL database
    • Constructor Summary

      Constructors 
      Constructor Description
      NotificationDAO()
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int id)
      void deleteByDemand​(java.lang.String strDemandId, java.lang.String strDemandTypeId, java.lang.String strCustomerId)
      boolean existsNotificationWithDemandTypeId​(int nDemandTypeId)
      fr.paris.lutece.plugins.grubusiness.business.notification.Notification insert​(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification)
      java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByDemand​(java.lang.String strDemandId, java.lang.String strDemandTypeId, java.lang.String strCustomerId)
      java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByDemandAndDate​(java.lang.String strDemandId, java.lang.String strDemandTypeId, long lDate)
      java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByDemandIdTypeIdCustomerId​(java.lang.String strDemandId, java.lang.String strDemandTypeId, java.lang.String strCustomerId, fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)  
      java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByFilter​(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)
      java.util.Optional<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadById​(int id)
      java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByIds​(java.util.List<java.lang.Integer> listIds)
      java.util.List<java.lang.String> loadDistinctDemandTypeIds()
      java.util.List<java.lang.Integer> loadIdsByFilter​(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)
      fr.paris.lutece.plugins.grubusiness.business.notification.Notification loadLastNotifByDemandIdAndDemandTypeId​(java.lang.String strDemandId, java.lang.String strDemandTypeId)  
      void reassignNotifications​(java.lang.String strOldCustomerId, java.lang.String strNewCustomerId)
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NotificationDAO

        public NotificationDAO()
        Constructor
    • Method Detail

      • loadByDemand

        public java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByDemand​(java.lang.String strDemandId,
                                                                                                                   java.lang.String strDemandTypeId,
                                                                                                                   java.lang.String strCustomerId)
        Specified by:
        loadByDemand in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
      • loadByFilter

        public java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByFilter​(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)
        Specified by:
        loadByFilter in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
      • loadIdsByFilter

        public java.util.List<java.lang.Integer> loadIdsByFilter​(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)
        Specified by:
        loadIdsByFilter in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
      • insert

        public fr.paris.lutece.plugins.grubusiness.business.notification.Notification insert​(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification)
        Specified by:
        insert in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
      • reassignNotifications

        public void reassignNotifications​(java.lang.String strOldCustomerId,
                                          java.lang.String strNewCustomerId)
        Specified by:
        reassignNotifications in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
      • delete

        public void delete​(int id)
        Specified by:
        delete in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
      • deleteByDemand

        public void deleteByDemand​(java.lang.String strDemandId,
                                   java.lang.String strDemandTypeId,
                                   java.lang.String strCustomerId)
        Specified by:
        deleteByDemand in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
      • loadById

        public java.util.Optional<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadById​(int id)
        Specified by:
        loadById in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
      • loadByIds

        public java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByIds​(java.util.List<java.lang.Integer> listIds)
        Specified by:
        loadByIds in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
      • loadByDemandAndDate

        public java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByDemandAndDate​(java.lang.String strDemandId,
                                                                                                                          java.lang.String strDemandTypeId,
                                                                                                                          long lDate)
        Specified by:
        loadByDemandAndDate in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
      • loadDistinctDemandTypeIds

        public java.util.List<java.lang.String> loadDistinctDemandTypeIds()
        Specified by:
        loadDistinctDemandTypeIds in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
      • loadByDemandIdTypeIdCustomerId

        public java.util.List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByDemandIdTypeIdCustomerId​(java.lang.String strDemandId,
                                                                                                                                     java.lang.String strDemandTypeId,
                                                                                                                                     java.lang.String strCustomerId,
                                                                                                                                     fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)
        Specified by:
        loadByDemandIdTypeIdCustomerId in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
      • loadLastNotifByDemandIdAndDemandTypeId

        public fr.paris.lutece.plugins.grubusiness.business.notification.Notification loadLastNotifByDemandIdAndDemandTypeId​(java.lang.String strDemandId,
                                                                                                                             java.lang.String strDemandTypeId)
        Specified by:
        loadLastNotifByDemandIdAndDemandTypeId in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
      • existsNotificationWithDemandTypeId

        public boolean existsNotificationWithDemandTypeId​(int nDemandTypeId)
        Specified by:
        existsNotificationWithDemandTypeId in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO