Class NotificationDAO

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

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

      • NotificationDAO

        public NotificationDAO()
        Constructor
    • Method Detail

      • loadByDemand

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

        public 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 List<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
      • delete

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

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

        public 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 List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByIds​(List<Integer> listIds)
        Specified by:
        loadByIds in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
      • loadByDemandAndDate

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

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

        public List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByDemandIdTypeIdCustomerId​(String strDemandId,
                                                                                                                           String strDemandTypeId,
                                                                                                                           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​(String strDemandId,
                                                                                                                             String strDemandTypeId)
        Specified by:
        loadLastNotifByDemandIdAndDemandTypeId in interface fr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO