public final class CategoryDAO extends Object implements ICategoryDAO
Constructor and Description |
---|
CategoryDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
deleteLinkCategoryEvent(int nIdCategory,
int nIdEvent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a link between category and event
|
void |
deleteLinksCategory(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all links for a category
|
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
|
int[] |
selectAllIdEvent(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select a list of Id Events for a specified 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
|
public Collection<Category> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll
in interface ICategoryDAO
plugin
- Pluginpublic void insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface ICategoryDAO
category
- The object category to insertplugin
- Pluginpublic Category load(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface ICategoryDAO
nIdCategory
- The identifier of the categoryplugin
- Pluginpublic Collection<Category> selectByEvent(int nIdEvent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByEvent
in interface ICategoryDAO
nIdEvent
- The identifier of the eventplugin
- Pluginpublic void delete(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface ICategoryDAO
nIdCategory
- The identifier of the object Categoryplugin
- Pluginpublic void store(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface ICategoryDAO
category
- The instance of the Category to updateplugin
- Pluginpublic Collection<Category> selectByName(String strCategoryName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByName
in interface ICategoryDAO
strCategoryName
- The name of the categoryplugin
- Pluginpublic void deleteLinkCategoryEvent(int nIdCategory, int nIdEvent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory
- The identifier of the object CategorynIdEvent
- The id of documentplugin
- Pluginpublic int[] selectAllIdEvent(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory
- The category nameplugin
- Pluginpublic void deleteLinksCategory(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory
- The identifier of the object Categoryplugin
- Pluginpublic int selectCountIdEvents(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCountIdEvents
in interface ICategoryDAO
nIdCategory
- The category nameplugin
- Pluginpublic fr.paris.lutece.portal.service.image.ImageResource loadImageResource(int nCategoryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadImageResource
in interface ICategoryDAO
nCategoryId
- The identifier of Category objectplugin
- PluginCopyright © 2015 City of Paris. All rights reserved.