Class DemandCategoryHome


  • public final class DemandCategoryHome
    extends Object
    This class provides instances management methods (create, find, ...) for DemandCategory objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory create​(fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory demandCategory)
      Create an instance of the demandCategory class
      static Optional<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory> findByPrimaryKey​(int nKey)
      Returns an instance of a demandCategory whose identifier is specified in parameter
      static List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory> getDemandCategoriesList()
      Load the data of all the demandCategory objects and returns them as a list
      static List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory> getDemandCategoriesListByIds​(List<Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      static fr.paris.lutece.util.ReferenceList getDemandCategoriesReferenceList()
      get categories as reference list
      static List<Integer> getIdDemandCategoriesList()
      Load the id of all the demandCategory objects and returns them as a list
      static void remove​(int nKey)
      Remove the demandCategory whose identifier is specified in parameter
      static fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory update​(fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory demandCategory)
      Update of the demandCategory which is specified in parameter
    • Method Detail

      • create

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

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

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

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

        public static List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory> getDemandCategoriesList()
        Load the data of all the demandCategory objects and returns them as a list
        Returns:
        the list which contains the data of all the demandCategory objects
      • getIdDemandCategoriesList

        public static List<Integer> getIdDemandCategoriesList()
        Load the id of all the demandCategory objects and returns them as a list
        Returns:
        the list which contains the id of all the demandCategory objects
      • getDemandCategoriesListByIds

        public static List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory> getDemandCategoriesListByIds​(List<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
      • getDemandCategoriesReferenceList

        public static fr.paris.lutece.util.ReferenceList getDemandCategoriesReferenceList()
        get categories as reference list
        Returns: