public final class PluginModelDAO extends Object implements IPluginModelDAO
Constructor and Description |
---|
PluginModelDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nPluginModelId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(PluginModel pluginModel,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
PluginModel |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the pluginModel from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
boolean |
pluginExists(String strPluginName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Verifies whether the plugin exists
|
int |
selectPluginModelByName(fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strPluginName)
Returns the identifier of the generated plugin
|
Collection<PluginModel> |
selectPluginModelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the pluginModels and returns them as a collection
|
void |
store(PluginModel pluginModel,
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(PluginModel pluginModel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IPluginModelDAO
pluginModel
- instance of the PluginModel object to insertplugin
- The pluginpublic PluginModel load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IPluginModelDAO
nId
- The identifier of the pluginModelplugin
- The pluginpublic void delete(int nPluginModelId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IPluginModelDAO
nPluginModelId
- The identifier of the pluginModelplugin
- The pluginpublic void store(PluginModel pluginModel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IPluginModelDAO
pluginModel
- The reference of the pluginModelplugin
- The pluginpublic Collection<PluginModel> selectPluginModelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPluginModelsList
in interface IPluginModelDAO
plugin
- The pluginpublic int selectPluginModelByName(fr.paris.lutece.portal.service.plugin.Plugin plugin, String strPluginName)
selectPluginModelByName
in interface IPluginModelDAO
plugin
- The PluginstrPluginName
- The name of the generated pluginpublic boolean pluginExists(String strPluginName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
pluginExists
in interface IPluginModelDAO
strPluginName
- The name given to the pluginplugin
- The pluginCopyright © 2020 City of Paris. All rights reserved.