Constructor and Description |
---|
ModelDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nModelId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Model model,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Model |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the model from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
List<Model> |
selectModelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the models and returns them as a List
|
void |
store(Model model,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Pluginpublic void insert(Model model, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public Model load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void delete(int nModelId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void store(Model model, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public List<Model> selectModelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectModelsList
in interface IModelDAO
plugin
- The pluginCopyright © 2020 City of Paris. All rights reserved.