fr.paris.lutece.plugins.pluginwizard.business
Interface IModelDAO

All Known Implementing Classes:
ModelDAO

public interface IModelDAO

IModelDAO Interface


Method Summary
 void delete(int nIdModel, 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 nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 List<Model> selectModelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the model objects and returns them as a List
 void store(Model model, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

insert

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

Parameters:
model - instance of the Model object to inssert
plugin - the Plugin

store

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

Parameters:
model - the reference of the Model
plugin - the Plugin

delete

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

Parameters:
nIdModel - int identifier of the Model to delete
plugin - the Plugin

load

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

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

selectModelsList

List<Model> selectModelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the model objects and returns them as a List

Parameters:
plugin - the Plugin
Returns:
The List which contains the data of all the model objects


Copyright © 2013 Mairie de Paris. All Rights Reserved.