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 IFeatureDAO
feature
- instance of the Feature object to insertplugin
- the Pluginpublic Feature load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IFeatureDAO
nKey
- The identifier of the featureplugin
- the Pluginpublic void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IFeatureDAO
nKey
- The identifier of the Feature to deleteplugin
- the Pluginpublic void store(Feature feature, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IFeatureDAO
feature
- the reference of the Featureplugin
- the Pluginpublic List<Feature> selectFeaturesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFeaturesList
in interface IFeatureDAO
plugin
- the Pluginpublic List<Feature> selectFeaturesListByCategory(int nCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFeaturesListByCategory
in interface IFeatureDAO
nCategory
- The categoryplugin
- The pluginpublic List<Integer> selectIdFeaturesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdFeaturesList
in interface IFeatureDAO
plugin
- the PluginCopyright © 2016 City of Paris. All rights reserved.