public final class FeatureDAO extends Object implements IFeatureDAO
| Constructor and Description |
|---|
FeatureDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Feature feature,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Feature |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
List<Feature> |
selectFeaturesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the feature objects and returns them as a collection
|
List<Feature> |
selectFeaturesListByCategory(int nCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets all features for a given category
|
List<Integer> |
selectIdFeaturesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the feature objects and returns them as a collection
|
void |
store(Feature feature,
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(Feature feature, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IFeatureDAOfeature - instance of the Feature object to insertplugin - the Pluginpublic Feature load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IFeatureDAOnKey - The identifier of the featureplugin - the Pluginpublic void delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IFeatureDAOnKey - The identifier of the Feature to deleteplugin - the Pluginpublic void store(Feature feature, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IFeatureDAOfeature - the reference of the Featureplugin - the Pluginpublic List<Feature> selectFeaturesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFeaturesList in interface IFeatureDAOplugin - the Pluginpublic List<Feature> selectFeaturesListByCategory(int nCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFeaturesListByCategory in interface IFeatureDAOnCategory - The categoryplugin - The pluginpublic List<Integer> selectIdFeaturesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdFeaturesList in interface IFeatureDAOplugin - the PluginCopyright © 2017 City of Paris. All rights reserved.