public final class ModelHome extends Object
Modifier and Type | Method and Description |
---|---|
static Model |
create(Model model)
Create an instance of the model class
|
static int |
exists(String strPluginName)
Check if a plugin already exists
|
static Model |
findByPrimaryKey(int nKey)
Returns an instance of a model whose identifier is specified in parameter
|
static void |
remove(int nModelId)
Remove the model whose identifier is specified in parameter
|
static Model |
update(Model model)
Update of the model which is specified in parameter
|
public static int exists(String strPluginName)
strPluginName
- The plugin namepublic static Model create(Model model)
model
- The instance of the Model which contains the informations to storepublic static Model update(Model model)
model
- The instance of the Model which contains the data to storepublic static void remove(int nModelId)
nModelId
- The model Idpublic static Model findByPrimaryKey(int nKey)
nKey
- The model primary keyCopyright © 2020 City of Paris. All rights reserved.