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

All Known Implementing Classes:
CategoryDAO

public interface ICategoryDAO

Interface for Category DAO


Method Summary
 void delete(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          insert a new Category
 Category load(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of Category from the table
 fr.paris.lutece.portal.service.image.ImageResource loadImageResource(int nCategoryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return the image resource corresponding to the category id
 Collection<Category> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of category
 Collection<Category> selectByEvent(int nIdEvent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of Category for an event from the table
 Collection<Category> selectByName(String strCategoryName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of Category from the table
 int selectCountIdEvents(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return the number of Events linked to a category
 void store(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

selectAll

Collection<Category> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of category

Parameters:
plugin - Plugin
Returns:
The Collection of category

insert

void insert(Category category,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert a new Category

Parameters:
plugin - Plugin
category - the new Category object

load

Category load(int nIdCategory,
              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Category from the table

Parameters:
nIdCategory - The id of the category
plugin - Plugin
Returns:
The Instance of the object Category

selectByName

Collection<Category> selectByName(String strCategoryName,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Category from the table

Parameters:
strCategoryName - The name of the category
plugin - Plugin
Returns:
The Collection of Category

delete

void delete(int nIdCategory,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdCategory - The identifier of the object Category
plugin - Plugin

store

void store(Category category,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
category - The instance of the Category to update
plugin - Plugin

selectCountIdEvents

int selectCountIdEvents(int nIdCategory,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the number of Events linked to a category

Parameters:
nIdCategory - The category id
plugin - Plugin
Returns:
count of id Event

loadImageResource

fr.paris.lutece.portal.service.image.ImageResource loadImageResource(int nCategoryId,
                                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the image resource corresponding to the category id

Parameters:
nCategoryId - The Category id
plugin - Plugin
Returns:
The image resource

selectByEvent

Collection<Category> selectByEvent(int nIdEvent,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Category for an event from the table

Parameters:
nIdEvent - The identifier of the event
plugin - Plugin
Returns:
The Instance of the object Category


Copyright © 2014 Mairie de Paris. All Rights Reserved.