Class TemporaryStatusHome
java.lang.Object
fr.paris.lutece.plugins.notificationstore.business.TemporaryStatusHome
This class provides instances management methods (create, find, ...) for Status objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatuscreate(fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus status) Create an instance of the status classstatic Optional<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus>findByPrimaryKey(int nKey) Returns an instance of a status whose identifier is specified in parameterstatic Optional<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus>findByStatus(String strStatus) Load the data from the table using a like '%strStatus%'static Optional<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus>findByStatusId(int nStatusId) Returns an instance of a statusLoad the id of all the status objects and returns them as a liststatic List<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus>Load the data of all the status objects and returns them as a liststatic List<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus>getStatusListByIds(List<Integer> listIds) Load the data of all the avant objects and returns them as a liststatic voidremove(int nKey) Remove the status whose identifier is specified in parametersearchItemsIdList(Map<String, String> mapFilterCriteria, String strColumnToOrder, String strSortMode) static fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatusupdate(fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus status) Update of the status which is specified in parameter
-
Method Details
-
create
public static fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus create(fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus status) Create an instance of the status class- Parameters:
status- The instance of the Status which contains the informations to store- Returns:
- The instance of status which has been created with its primary key.
-
update
public static fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus update(fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus status) Update of the status which is specified in parameter- Parameters:
status- The instance of the Status which contains the data to store- Returns:
- The instance of the status which has been updated
-
remove
public static void remove(int nKey) Remove the status whose identifier is specified in parameter- Parameters:
nKey- The status Id
-
findByPrimaryKey
public static Optional<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus> findByPrimaryKey(int nKey) Returns an instance of a status whose identifier is specified in parameter- Parameters:
nKey- The status primary key- Returns:
- an instance of Status
-
findByStatusId
public static Optional<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus> findByStatusId(int nStatusId) Returns an instance of a status- Parameters:
strStatus- The status name- Returns:
- an instance of Status
-
findByStatus
public static Optional<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus> findByStatus(String strStatus) Load the data from the table using a like '%strStatus%'- Parameters:
strStatus-- Returns:
- Only the first status found returned
-
getStatusList
public static List<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus> getStatusList()Load the data of all the status objects and returns them as a list- Returns:
- the list which contains the data of all the status objects
-
getIdStatusList
Load the id of all the status objects and returns them as a list- Returns:
- the list which contains the id of all the status objects
-
getStatusListByIds
public static List<fr.paris.lutece.plugins.grubusiness.business.demand.TemporaryStatus> getStatusListByIds(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
-
searchItemsIdList
-