Class DemandTypeHome


  • public final class DemandTypeHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for DemandType objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static fr.paris.lutece.plugins.grubusiness.business.demand.DemandType create​(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType)
      Create an instance of the demandType class
      static java.util.Optional<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> findByPrimaryKey​(int nKey)
      Returns an instance of a demandType whose identifier is specified in parameter
      static java.util.Optional<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getDemandType​(java.lang.String type_id)
      Returns an instance of a demandType whose identifier is specified in parameter
      static java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getDemandTypesList()
      Load the data of all the demandType objects and returns them as a list
      static java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getDemandTypesListByCategoryCode​(java.lang.String strCategoryCode)
      Load the data of all the demandType objects by category code and returns them as a list
      static java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getDemandTypesListByIds​(java.util.List<java.lang.Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      static fr.paris.lutece.util.ReferenceList getDemandTypesReferenceList()
      get a reference list of demand types
      static java.util.List<java.lang.Integer> getIdDemandTypesList()
      Load the id of all the demandType objects and returns them as a list
      static void remove​(int nKey)
      Remove the demandType whose identifier is specified in parameter
      static java.util.List<java.lang.Integer> searchItemsIdList​(java.util.Map<java.lang.String,​java.lang.String> mapFilterCriteria, java.lang.String strColumnToOrder, java.lang.String strSortMode)  
      static fr.paris.lutece.plugins.grubusiness.business.demand.DemandType update​(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType)
      Update of the demandType which is specified in parameter
      • Methods inherited from class java.lang.Object

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

      • create

        public static fr.paris.lutece.plugins.grubusiness.business.demand.DemandType create​(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType)
        Create an instance of the demandType class
        Parameters:
        demandType - The instance of the DemandType which contains the informations to store
        Returns:
        The instance of demandType which has been created with its primary key.
      • update

        public static fr.paris.lutece.plugins.grubusiness.business.demand.DemandType update​(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType)
        Update of the demandType which is specified in parameter
        Parameters:
        demandType - The instance of the DemandType which contains the data to store
        Returns:
        The instance of the demandType which has been updated
      • remove

        public static void remove​(int nKey)
        Remove the demandType whose identifier is specified in parameter
        Parameters:
        nKey - The demandType Id
      • findByPrimaryKey

        public static java.util.Optional<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> findByPrimaryKey​(int nKey)
        Returns an instance of a demandType whose identifier is specified in parameter
        Parameters:
        nKey - The demandType primary key
        Returns:
        an instance of DemandType
      • getDemandType

        public static java.util.Optional<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getDemandType​(java.lang.String type_id)
        Returns an instance of a demandType whose identifier is specified in parameter
        Parameters:
        nKey - The demandType primary key
        Returns:
        an instance of DemandType
      • getDemandTypesList

        public static java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getDemandTypesList()
        Load the data of all the demandType objects and returns them as a list
        Returns:
        the list which contains the data of all the demandType objects
      • getIdDemandTypesList

        public static java.util.List<java.lang.Integer> getIdDemandTypesList()
        Load the id of all the demandType objects and returns them as a list
        Returns:
        the list which contains the id of all the demandType objects
      • getDemandTypesListByIds

        public static java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getDemandTypesListByIds​(java.util.List<java.lang.Integer> listIds)
        Load the data of all the avant objects and returns them as a list
        Parameters:
        listIds - liste of ids
        Returns:
        the list which contains the data of all the avant objects
      • getDemandTypesReferenceList

        public static fr.paris.lutece.util.ReferenceList getDemandTypesReferenceList()
        get a reference list of demand types
        Returns:
        the reference list
      • getDemandTypesListByCategoryCode

        public static java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getDemandTypesListByCategoryCode​(java.lang.String strCategoryCode)
        Load the data of all the demandType objects by category code and returns them as a list
        Parameters:
        strCategoryCode -
        Returns:
        the list which contains the data of all the demandType objects by category code
      • searchItemsIdList

        public static java.util.List<java.lang.Integer> searchItemsIdList​(java.util.Map<java.lang.String,​java.lang.String> mapFilterCriteria,
                                                                          java.lang.String strColumnToOrder,
                                                                          java.lang.String strSortMode)