Class DemandDAO

  • All Implemented Interfaces:
    fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO

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

      Constructors 
      Constructor Description
      DemandDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(java.lang.String strDemandId, java.lang.String strDemandTypeId, java.lang.String strCustomerId)
      void deleteByUid​(int nUid)
      fr.paris.lutece.plugins.grubusiness.business.demand.Demand insert​(fr.paris.lutece.plugins.grubusiness.business.demand.Demand demand)
      fr.paris.lutece.plugins.grubusiness.business.demand.Demand load​(int nId)
      java.util.List<java.lang.String> loadAllIds()
      java.util.Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByCustomerId​(java.lang.String strCustomerId)
      fr.paris.lutece.plugins.grubusiness.business.demand.Demand loadByDemandId​(java.lang.String strDemandId)
      fr.paris.lutece.plugins.grubusiness.business.demand.Demand loadByDemandIdAndTypeIdAndCustomerId​(java.lang.String strDemandId, java.lang.String strDemandTypeId, java.lang.String strCustomerId)  
      java.util.Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByFilter​(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)
      java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByIds​(java.util.List<java.lang.Integer> listIds)
      java.util.Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByReference​(java.lang.String strReference)
      java.util.List<java.lang.Integer> loadIdsByCustomerIdAndIdDemandType​(java.lang.String strCustomerId, java.lang.String strNotificationType, java.lang.String strIdDemandType)  
      java.util.List<java.lang.Integer> loadIdsByCustomerIdAndIdDemandType​(java.lang.String strCustomerId, java.lang.String strNotificationType, java.lang.String strIdDemandType, java.lang.String strDirectionDateOrderBy)  
      java.util.List<java.lang.Integer> loadIdsByFilter​(fr.paris.lutece.plugins.grubusiness.business.notification.NotificationFilter filter)
      java.util.List<java.lang.Integer> loadIdsByStatus​(java.lang.String strCustomerId, java.util.List<java.lang.String> listStatus, java.lang.String strNotificationType, java.lang.String strIdDemandType)  
      void reassignDemands​(java.lang.String strOldCustomerId, java.lang.String strNewCustomerId)
      fr.paris.lutece.plugins.grubusiness.business.demand.Demand store​(fr.paris.lutece.plugins.grubusiness.business.demand.Demand demand)
      void updateDemandsStatusId​(int nNewStatusId, int nTemporaryStatusId)  
      • Methods inherited from class java.lang.Object

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

      • DemandDAO

        public DemandDAO()
    • Method Detail

      • 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 java.util.Collection<fr.paris.lutece.plugins.grubusiness.business.demand.Demand> loadByCustomerId​(java.lang.String strCustomerId)
        Specified by:
        loadByCustomerId in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
      • loadByIds

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

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

        public java.util.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 java.util.List<java.lang.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​(java.lang.String strOldCustomerId,
                                    java.lang.String strNewCustomerId)
        Specified by:
        reassignDemands in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
      • delete

        public void delete​(java.lang.String strDemandId,
                           java.lang.String strDemandTypeId,
                           java.lang.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 java.util.List<java.lang.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​(java.lang.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​(java.lang.String strDemandId,
                                                                                                               java.lang.String strDemandTypeId,
                                                                                                               java.lang.String strCustomerId)
        Specified by:
        loadByDemandIdAndTypeIdAndCustomerId in interface fr.paris.lutece.plugins.grubusiness.business.demand.IDemandDAO
      • loadIdsByCustomerIdAndIdDemandType

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

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

        public java.util.List<java.lang.Integer> loadIdsByStatus​(java.lang.String strCustomerId,
                                                                 java.util.List<java.lang.String> listStatus,
                                                                 java.lang.String strNotificationType,
                                                                 java.lang.String strIdDemandType)
        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