public final class FeatureHome extends Object
Modifier and Type | Method and Description |
---|---|
static Feature |
create(Feature feature)
Create an instance of the feature class
|
static Feature |
findByPrimaryKey(int nKey)
Returns an instance of a feature whose identifier is specified in parameter
|
static List<Feature> |
getFeaturesList()
Load the data of all the feature objects and returns them in form of a collection
|
static List<Feature> |
getFeaturesListByCategory(int nCategory)
Gets all features for a given category
|
static List<Integer> |
getIdFeaturesList()
Load the id of all the feature objects and returns them in form of a collection
|
static void |
remove(int nKey)
Remove the feature whose identifier is specified in parameter
|
static Feature |
update(Feature feature)
Update of the feature which is specified in parameter
|
public static Feature create(Feature feature)
feature
- The instance of the Feature which contains the informations to storepublic static Feature update(Feature feature)
feature
- The instance of the Feature which contains the data to storepublic static void remove(int nKey)
nKey
- The feature Idpublic static Feature findByPrimaryKey(int nKey)
nKey
- The feature primary keypublic static List<Feature> getFeaturesList()
public static List<Feature> getFeaturesListByCategory(int nCategory)
nCategory
- The categoryCopyright © 2016 City of Paris. All rights reserved.