Class DemandCategoryHome
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.business.DemandCategoryHome
-
public final class DemandCategoryHome extends java.lang.ObjectThis 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.DemandCategorycreate(fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory demandCategory)Create an instance of the demandCategory classstatic java.util.Optional<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory>findByPrimaryKey(int nKey)Returns an instance of a demandCategory whose identifier is specified in parameterstatic java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory>getDemandCategoriesList()Load the data of all the demandCategory objects and returns them as a liststatic java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory>getDemandCategoriesListByIds(java.util.List<java.lang.Integer> listIds)Load the data of all the avant objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetDemandCategoriesReferenceList()get categories as reference liststatic java.util.List<java.lang.Integer>getIdDemandCategoriesList()Load the id of all the demandCategory objects and returns them as a liststatic voidremove(int nKey)Remove the demandCategory whose identifier is specified in parameterstatic fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategoryupdate(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 java.util.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 java.util.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 java.util.List<java.lang.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 java.util.List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandCategory> getDemandCategoriesListByIds(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
-
getDemandCategoriesReferenceList
public static fr.paris.lutece.util.ReferenceList getDemandCategoriesReferenceList()
get categories as reference list- Returns:
-
-