public interface ICategoryDAO
Modifier and Type | Method and Description |
---|---|
int |
copyCategory(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
int |
countEntriesForCategory(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
counts the entries for a given category form
|
int |
countPublishedAnnouncesForCategory(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Count the number of published announce of a given category
|
void |
delete(Category category,
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 record in the table.
|
Category |
load(int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Category from the table
|
List<Category> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of categorys
|
List<Category> |
selectCategoriesForSector(Sector sector,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Selects the list of categories associated to the specified sector
|
fr.paris.lutece.util.ReferenceList |
selectCategoriesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
gets the categories reference list
|
void |
store(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
void delete(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
category
- The category objectplugin
- The pluginvoid insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
category
- The Category objectplugin
- The pluginCategory load(int nCategoryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCategoryId
- The identifier of Categoryplugin
- The pluginList<Category> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The pluginvoid store(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
category
- The reference of categoryplugin
- The pluginList<Category> selectCategoriesForSector(Sector sector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
sector
- The concerned sectorplugin
- The plugin announcefr.paris.lutece.util.ReferenceList selectCategoriesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the pluginint countEntriesForCategory(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
category
- the categoryplugin
- the pluginint countPublishedAnnouncesForCategory(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
category
- The category to get the number of published announce ofplugin
- The pluginint copyCategory(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Copyright © 2019 City of Paris. All rights reserved.