public final class ScenarioHome extends Object
Modifier and Type | Method and Description |
---|---|
static Scenario |
create(Scenario scenario)
Create an instance of the scenario class
|
static Scenario |
findByPrimaryKey(int nKey)
Returns an instance of a scenario whose identifier is specified in parameter
|
static List<Integer> |
getIdScenariosList()
Load the id of all the scenario objects and returns them as a list
|
static List<Scenario> |
getScenariosList()
Load the data of all the scenario objects and returns them as a list
|
static List<Scenario> |
getScenariosListByBotKey(String botKey)
Load the data of all the scenario objects and returns them as a list
|
static fr.paris.lutece.util.ReferenceList |
getScenariosReferenceList()
Load the data of all the scenario objects and returns them as a referenceList
|
static void |
remove(int nKey)
Remove the scenario whose identifier is specified in parameter
|
static Scenario |
update(Scenario scenario)
Update of the scenario which is specified in parameter
|
public static Scenario create(Scenario scenario)
scenario
- The instance of the Scenario which contains the informations to storepublic static Scenario update(Scenario scenario)
scenario
- The instance of the Scenario which contains the data to storepublic static void remove(int nKey)
nKey
- The scenario Idpublic static Scenario findByPrimaryKey(int nKey)
nKey
- The scenario primary keypublic static List<Scenario> getScenariosList()
public static List<Scenario> getScenariosListByBotKey(String botKey)
public static List<Integer> getIdScenariosList()
public static fr.paris.lutece.util.ReferenceList getScenariosReferenceList()
Copyright © 2020 City of Paris. All rights reserved.