public final class CategoryHome extends Object
Modifier and Type | Method and Description |
---|---|
static int |
create(Category category)
Create an instance of the category class
|
static Category |
findByPrimaryKey(int nKey)
Returns an instance of a category whose identifier is specified in parameter
|
static Category |
findFirstCategory()
Find the first category
|
static fr.paris.lutece.util.ReferenceList |
getCategories()
Load the data of all the category objects and returns them in form of a ReferenceList
|
static Collection<Category> |
getCategoriesList()
Load the data of all the category objects and returns them in form of a collection
|
static int |
newPrimaryKey()
Generates a new primary key
|
static void |
remove(int nCategoryId)
Remove the category whose identifier is specified in parameter
|
static Category |
update(Category category)
Update of the category which is specified in parameter
|
public static int newPrimaryKey()
public static int create(Category category)
category
- The instance of the Category which contains the informations to storepublic static Category update(Category category)
category
- The instance of the Category which contains the data to storepublic static void remove(int nCategoryId)
nCategoryId
- The category Idpublic static Category findByPrimaryKey(int nKey)
nKey
- The category primary keypublic static Collection<Category> getCategoriesList()
public static fr.paris.lutece.util.ReferenceList getCategories()
Copyright © 2019 City of Paris. All rights reserved.