Interface ICategoryDAO
-
- All Known Implementing Classes:
CategoryDAO
public interface ICategoryDAOInterface for Category DAO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nIdCategory)Delete a record from the tablevoidinsert(Category category)insert a new CategoryCategoryload(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 idjava.util.Collection<Category>selectAll()Load the list of categoryjava.util.Collection<Category>selectByName(java.lang.String strCategoryName)Load the data of Category from the tableintselectCountIdDocuments(int nIdCategory)Return the number of documents linked to a categoryvoidstore(Category category)Update the record in the table
-
-
-
Method Detail
-
selectAll
java.util.Collection<Category> selectAll()
Load the list of category- Returns:
- The Collection of category
-
insert
void insert(Category category)
insert a new Category- Parameters:
category- the new Category object
-
load
Category load(int nIdCategory)
Load the data of Category from the table- Parameters:
nIdCategory- The id of the category- Returns:
- The Instance of the object Category
-
selectByName
java.util.Collection<Category> selectByName(java.lang.String strCategoryName)
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
void store(Category category)
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
-
-