java.lang.Object
fr.paris.lutece.plugins.notificationstore.business.DemandDAO
All Implemented Interfaces:
fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO

public final class DemandDAO extends Object implements fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
This class provides Data Access methods for Demand objects stored in SQL database
  • Constructor Details

    • DemandDAO

      public DemandDAO()
  • Method Details

    • load

      public fr.paris.lutece.plugins.grubusiness.business.demand.Demand load(int nId)
      Specified by:
      load in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • loadByCustomerId

      public Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByCustomerId(String strCustomerId)
      Specified by:
      loadByCustomerId in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • loadByIds

      public List<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByIds(List<Integer> listIds)
      Specified by:
      loadByIds in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • loadByReference

      public Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByReference(String strReference)
      Specified by:
      loadByReference in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • loadByFilter

      public Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)
      Specified by:
      loadByFilter in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • loadIdsByFilter

      public List<Integer> loadIdsByFilter(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)
      Specified by:
      loadIdsByFilter in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • insert

      public fr.paris.lutece.plugins.grubusiness.business.demand.Demand insert(fr.paris.lutece.plugins.grubusiness.business.demand.Demand demand)
      Specified by:
      insert in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • store

      public fr.paris.lutece.plugins.grubusiness.business.demand.Demand store(fr.paris.lutece.plugins.grubusiness.business.demand.Demand demand)
      Specified by:
      store in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • reassignDemands

      public void reassignDemands(String strOldCustomerId, String strNewCustomerId)
      Specified by:
      reassignDemands in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • delete

      public void delete(String strDemandId, String strDemandTypeId, String strCustomerId)
      Specified by:
      delete in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • deleteByUid

      public void deleteByUid(int nUid)
      Specified by:
      deleteByUid in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • loadAllIds

      public List<String> loadAllIds()
      Specified by:
      loadAllIds in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • loadByDemandId

      public fr.paris.lutece.plugins.grubusiness.business.demand.Demand loadByDemandId(String strDemandId)
      Specified by:
      loadByDemandId in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • loadByDemandIdAndTypeIdAndCustomerId

      public fr.paris.lutece.plugins.grubusiness.business.demand.Demand loadByDemandIdAndTypeIdAndCustomerId(String strDemandId, String strDemandTypeId, String strCustomerId)
      Specified by:
      loadByDemandIdAndTypeIdAndCustomerId in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • loadIdsByCustomerIdAndIdDemandType

      public List<Integer> loadIdsByCustomerIdAndIdDemandType(String strCustomerId, String strNotificationType, String strIdDemandType)
      Specified by:
      loadIdsByCustomerIdAndIdDemandType in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • loadIdsByCustomerIdAndIdDemandType

      public List<Integer> loadIdsByCustomerIdAndIdDemandType(String strCustomerId, String strNotificationType, String strIdDemandType, String strDirectionDateOrderBy)
      Specified by:
      loadIdsByCustomerIdAndIdDemandType in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • loadIdsByStatus

      public List<Integer> loadIdsByStatus(String strCustomerId, List<String> listStatus, String strNotificationType, String strIdDemandTypes)
      Specified by:
      loadIdsByStatus in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
    • updateDemandsStatusId

      public void updateDemandsStatusId(int nNewStatusId, int nTemporaryStatusId)
      Specified by:
      updateDemandsStatusId in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO