fr.paris.lutece.plugins.document.business.category
Interface ICategoryDAO

All Known Implementing Classes:
CategoryDAO

public interface ICategoryDAO

Interface for Category DAO


Method Summary
 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
 java.util.Collection<Category> selectAll()
          Load the list of category
 java.util.Collection<Category> selectByName(java.lang.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
 

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


Copyright © 2010 Mairie de Paris. All Rights Reserved.