public final class CategoryDAO extends Object implements ICategoryDAO
Constructor and Description |
---|
CategoryDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdCategory)
Delete a record from the table
|
void |
deleteLinkCategoryDocument(int nIdCategory,
int nIdDocument)
Delete a link between category and document
|
void |
deleteLinksCategory(int nIdCategory)
Delete all links for a category
|
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
|
int[] |
selectAllIdDocument(int nIdCategory)
Select a list of Id Documents for a specified 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
|
public Collection<Category> selectAll()
selectAll
in interface ICategoryDAO
public void insert(Category category)
insert
in interface ICategoryDAO
category
- The object category to insertpublic Category load(int nIdCategory)
load
in interface ICategoryDAO
nIdCategory
- The identifier of the categorypublic void delete(int nIdCategory)
delete
in interface ICategoryDAO
nIdCategory
- The identifier of the object Categorypublic void store(Category category)
store
in interface ICategoryDAO
category
- The instance of the Category to updatepublic Collection<Category> selectByName(String strCategoryName)
selectByName
in interface ICategoryDAO
strCategoryName
- The name of the categorypublic void deleteLinkCategoryDocument(int nIdCategory, int nIdDocument)
nIdCategory
- The identifier of the object CategorynIdDocument
- The id of documentpublic int[] selectAllIdDocument(int nIdCategory)
nIdCategory
- The category namepublic void deleteLinksCategory(int nIdCategory)
nIdCategory
- The identifier of the object Categorypublic int selectCountIdDocuments(int nIdCategory)
selectCountIdDocuments
in interface ICategoryDAO
nIdCategory
- The category namepublic fr.paris.lutece.portal.service.image.ImageResource loadImageResource(int nCategoryId)
loadImageResource
in interface ICategoryDAO
nCategoryId
- The identifier of Category objectCopyright © 2020 City of Paris. All rights reserved.