Class DemandTypeHome
java.lang.Object
fr.paris.lutece.plugins.notificationstore.business.DemandTypeHome
This class provides instances management methods (create, find, ...) for DemandType objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic fr.paris.lutece.plugins.grubusiness.business.demand.DemandTypecreate(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType) Create an instance of the demandType classstatic Optional<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType>findByPrimaryKey(int nKey) Returns an instance of a demandType whose identifier is specified in parameterstatic Optional<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType>getDemandType(String type_id) Returns an instance of a demandType whose identifier is specified in parameterstatic List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType>Load the data of all the demandType objects and returns them as a liststatic List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType>getDemandTypesListByCategoryCode(String strCategoryCode) Load the data of all the demandType objects by category code and returns them as a liststatic List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType>getDemandTypesListByIds(List<Integer> listIds) Load the data of all the avant objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListget a reference list of demand typesLoad the id of all the demandType objects and returns them as a liststatic voidremove(int nKey) Remove the demandType whose identifier is specified in parametersearchItemsIdList(Map<String, String> mapFilterCriteria, String strColumnToOrder, String strSortMode) static fr.paris.lutece.plugins.grubusiness.business.demand.DemandTypeupdate(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType) Update of the demandType which is specified in parameter
-
Method Details
-
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 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 Optional<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getDemandType(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 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
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 List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getDemandTypesListByIds(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
-
getDemandTypesReferenceList
public static fr.paris.lutece.util.ReferenceList getDemandTypesReferenceList()get a reference list of demand types- Returns:
- the reference list
-
getDemandTypesListByCategoryCode
public static List<fr.paris.lutece.plugins.grubusiness.business.demand.DemandType> getDemandTypesListByCategoryCode(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
-