fr.paris.lutece.plugins.pluginwizard.business.model
Interface IPluginModelDAO

All Known Implementing Classes:
PluginModelDAO

public interface IPluginModelDAO

IPluginModelDAO Interface


Method Summary
 void delete(int nIdPluginModel, 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 nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 boolean pluginExists(String strPluginName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 int selectPluginModelByName(fr.paris.lutece.portal.service.plugin.Plugin plugin, String strName)
          The identifier of the generated plugin
 Collection<PluginModel> selectPluginModelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the pluginModel objects and returns them as a collection
 void store(PluginModel pluginModel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

insert

void insert(PluginModel pluginModel,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
pluginModel - instance of the PluginModel object to inssert
plugin - the Plugin

store

void store(PluginModel pluginModel,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
pluginModel - the reference of the PluginModel
plugin - the Plugin

delete

void delete(int nIdPluginModel,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdPluginModel - int identifier of the PluginModel to delete
plugin - the Plugin

load

PluginModel load(int nKey,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Parameters:
nKey - The id of the plugin model
plugin - the Plugin
Returns:
The instance of the pluginModel

selectPluginModelsList

Collection<PluginModel> selectPluginModelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the pluginModel objects and returns them as a collection

Parameters:
plugin - the Plugin
Returns:
The collection which contains the data of all the pluginModel objects

selectPluginModelByName

int selectPluginModelByName(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                            String strName)
The identifier of the generated plugin

Parameters:
plugin - The plugin
strName - The generated plugin name
Returns:
The identifier of the plugin generated

pluginExists

boolean pluginExists(String strPluginName,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Parameters:
strPluginName - The plugin name
plugin - The plugin
Returns:
a Boolean


Copyright © 2013 Mairie de Paris. All Rights Reserved.