Class NotificationDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.business.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 Summary
Constructors Constructor Description NotificationDAO()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int id)voiddeleteByDemand(String strDemandId, String strDemandTypeId, String strCustomerId)fr.paris.lutece.plugins.grubusiness.business.notification.Notificationinsert(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification)List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification>loadByDemand(String strDemandId, String strDemandTypeId, String strCustomerId)List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification>loadByDemandAndDate(String strDemandId, String strDemandTypeId, long lDate)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)List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification>loadByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)Optional<fr.paris.lutece.plugins.grubusiness.business.notification.Notification>loadById(int id)List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification>loadByIds(List<Integer> listIds)List<String>loadDistinctDemandTypeIds()List<Integer>loadIdsByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)fr.paris.lutece.plugins.grubusiness.business.notification.NotificationloadLastNotifByDemandIdAndDemandTypeId(String strDemandId, String strDemandTypeId)
-
-
-
Method Detail
-
loadByDemand
public List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByDemand(String strDemandId, String strDemandTypeId, String strCustomerId)
- Specified by:
loadByDemandin interfacefr.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:
loadByFilterin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
loadIdsByFilter
public List<Integer> loadIdsByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter notificationFilter)
- Specified by:
loadIdsByFilterin interfacefr.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:
insertin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
delete
public void delete(int id)
- Specified by:
deletein interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
deleteByDemand
public void deleteByDemand(String strDemandId, String strDemandTypeId, String strCustomerId)
- Specified by:
deleteByDemandin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
loadById
public Optional<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadById(int id)
- Specified by:
loadByIdin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
loadByIds
public List<fr.paris.lutece.plugins.grubusiness.business.notification.Notification> loadByIds(List<Integer> listIds)
- Specified by:
loadByIdsin interfacefr.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:
loadByDemandAndDatein interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
loadDistinctDemandTypeIds
public List<String> loadDistinctDemandTypeIds()
- Specified by:
loadDistinctDemandTypeIdsin interfacefr.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:
loadByDemandIdTypeIdCustomerIdin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
loadLastNotifByDemandIdAndDemandTypeId
public fr.paris.lutece.plugins.grubusiness.business.notification.Notification loadLastNotifByDemandIdAndDemandTypeId(String strDemandId, String strDemandTypeId)
- Specified by:
loadLastNotifByDemandIdAndDemandTypeIdin interfacefr.paris.lutece.plugins.grubusiness.business.notification.INotificationDAO
-
-