Class DemandTypeHome
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.business.DemandTypeHome
-
public final class DemandTypeHome extends java.lang.ObjectThis 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.DemandTypecreate(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType)Create an instance of the demandType classstatic 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 parameterstatic 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 parameterstatic 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 liststatic 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 liststatic 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 liststatic fr.paris.lutece.util.ReferenceListgetDemandTypesReferenceList()get a reference list of demand typesstatic java.util.List<java.lang.Integer>getIdDemandTypesList()Load the id of all the demandType objects and returns them as a liststatic voidremove(int nKey)Remove the demandType whose identifier is specified in parameterstatic 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.DemandTypeupdate(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType)Update of the demandType which is specified in parameter
-
-
-
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)
-
-