public final class CategoryHome extends Object
Modifier and Type | Method and Description |
---|---|
static void |
create(Category category)
Create a new Category
|
static Category |
find(int nIdCategory)
Find the data of Category from the table
|
static Collection<Category> |
findAll()
Returns the category list
|
static Collection<Category> |
findByName(String strCategoryName)
Find the data of Category from the table
|
static int |
findCountIdDocuments(int nIdCategory)
Find the number of documents linked to a category
|
static fr.paris.lutece.portal.service.image.ImageResource |
getImageResource(int nCategoryId)
Return the image resource for the specified category id
|
static void |
remove(int nIdCategory)
Remove a record from the table
|
static void |
update(Category category)
Update the record in the table
|
public static Collection<Category> findAll()
public static void create(Category category)
category
- The new Categorypublic static Category find(int nIdCategory)
nIdCategory
- The id of the categorypublic static Collection<Category> findByName(String strCategoryName)
strCategoryName
- The id of the categorypublic static void remove(int nIdCategory)
nIdCategory
- The identifier of the object Categorypublic static void update(Category category)
category
- The instance of the Category to updatepublic static int findCountIdDocuments(int nIdCategory)
nIdCategory
- The category idpublic static fr.paris.lutece.portal.service.image.ImageResource getImageResource(int nCategoryId)
nCategoryId
- The identifier of Category objectCopyright © 2020 City of Paris. All rights reserved.