fr.paris.lutece.plugins.pluginwizard.business.model
Class FeatureDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.pluginwizard.business.model.FeatureDAO
All Implemented Interfaces:
IFeatureDAO

public final class FeatureDAO
extends Object
implements IFeatureDAO

This class provides Data Access methods for PluginFeature objects


Constructor Summary
FeatureDAO()
           
 
Method Summary
 void delete(int nPluginFeatureId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(Feature pluginFeature, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Feature load(int nIdFeature, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the pluginFeature from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 Collection<Feature> selectFeatureByPlugin(int nPluginId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the pluginFeatures and returns them as a collection
 fr.paris.lutece.util.ReferenceList selectFeatureByPluginCombo(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of features which are available for specific plugins
 void store(Feature pluginFeature, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureDAO

public FeatureDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

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

Specified by:
insert in interface IFeatureDAO
Parameters:
pluginFeature - instance of the PluginFeature object to insert
plugin - The plugin

load

public Feature load(int nIdFeature,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the pluginFeature from the table

Specified by:
load in interface IFeatureDAO
Parameters:
nIdFeature - The identifier of the pluginFeature
plugin - The plugin
Returns:
the instance of the PluginFeature

delete

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

Specified by:
delete in interface IFeatureDAO
Parameters:
nPluginFeatureId - The identifier of the pluginFeature
plugin - The plugin

store

public void store(Feature pluginFeature,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Specified by:
store in interface IFeatureDAO
Parameters:
pluginFeature - The reference of the pluginFeature
plugin - The plugin

selectFeatureByPlugin

public Collection<Feature> selectFeatureByPlugin(int nPluginId,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the pluginFeatures and returns them as a collection

Specified by:
selectFeatureByPlugin in interface IFeatureDAO
Parameters:
nPluginId - The identifier of the plugin
plugin - The plugin
Returns:
The Collection which contains the data of all the pluginFeatures

selectFeatureByPluginCombo

public fr.paris.lutece.util.ReferenceList selectFeatureByPluginCombo(int nIdPlugin,
                                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of features which are available for specific plugins

Specified by:
selectFeatureByPluginCombo in interface IFeatureDAO
Parameters:
nIdPlugin - The id of the plugin
plugin - The plugin
Returns:
The Collection of the features for the plugin


Copyright © 2013 Mairie de Paris. All Rights Reserved.