public interface ICategoryDAO
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdCategory)
Delete a record from the table
|
void |
insert(Category category)
insert a new Category
|
Category |
load(int nIdCategory)
Load the data of Category from the table
|
fr.paris.lutece.portal.service.image.ImageResource |
loadImageResource(int nCategoryId)
Return the image resource corresponding to the category id
|
Collection<Category> |
selectAll()
Load the list of category
|
Collection<Category> |
selectByName(String strCategoryName)
Load the data of Category from the table
|
int |
selectCountIdDocuments(int nIdCategory)
Return the number of documents linked to a category
|
void |
store(Category category)
Update the record in the table
|
Collection<Category> selectAll()
void insert(Category category)
category
- the new Category objectCategory load(int nIdCategory)
nIdCategory
- The id of the categoryCollection<Category> selectByName(String strCategoryName)
strCategoryName
- The name of the categoryvoid delete(int nIdCategory)
nIdCategory
- The identifier of the object Categoryvoid store(Category category)
category
- The instance of the Category to updateint selectCountIdDocuments(int nIdCategory)
nIdCategory
- The category idfr.paris.lutece.portal.service.image.ImageResource loadImageResource(int nCategoryId)
nCategoryId
- The Category idCopyright © 2020 City of Paris. All rights reserved.