|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.pluginwizard.business.ModelHome
public final class ModelHome
This class provides instances management methods (create, find, ...) for Model objects
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int exists(String strPluginName)
strPluginName
- The plugin name
public static Model create(Model model)
model
- The instance of the Model which contains the informations to store
public static Model update(Model model)
model
- The instance of the Model which contains the data to store
public static void remove(int nModelId)
nModelId
- The model Idpublic static Model findByPrimaryKey(int nKey)
nKey
- The model primary key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |