Interface ICategoryDAO
- All Known Implementing Classes:
CategoryDAO
public interface ICategoryDAO
Interface for Category DAO
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdCategory) Delete a record from the tablevoidinsert a new Categoryload(int nIdCategory) Load the data of Category from the tablefr.paris.lutece.portal.service.image.ImageResourceloadImageResource(int nCategoryId) Return the image resource corresponding to the category idLoad the list of categoryselectByName(String strCategoryName) Load the data of Category from the tableintselectCountIdDocuments(int nIdCategory) Return the number of documents linked to a categoryvoidUpdate the record in the table
-
Method Details
-
selectAll
Collection<Category> selectAll()Load the list of category- Returns:
- The Collection of category
-
insert
insert a new Category- Parameters:
category- the new Category object
-
load
Load the data of Category from the table- Parameters:
nIdCategory- The id of the category- Returns:
- The Instance of the object Category
-
selectByName
Load the data of Category from the table- Parameters:
strCategoryName- The name of the category- Returns:
- The Collection of Category
-
delete
void delete(int nIdCategory) Delete a record from the table- Parameters:
nIdCategory- The identifier of the object Category
-
store
Update the record in the table- Parameters:
category- The instance of the Category to update
-
selectCountIdDocuments
int selectCountIdDocuments(int nIdCategory) Return the number of documents linked to a category- Parameters:
nIdCategory- The category id- Returns:
- count of id document
-
loadImageResource
fr.paris.lutece.portal.service.image.ImageResource loadImageResource(int nCategoryId) Return the image resource corresponding to the category id- Parameters:
nCategoryId- The Category id- Returns:
- The image resource
-