public final class CategoryDAO extends Object implements ICategoryDAO
| Constructor and Description |
|---|
CategoryDAO() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public void insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ICategoryDAOcategory - The Category objectplugin - The pluginpublic Category load(int nCategoryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ICategoryDAOnCategoryId - The identifier of Categoryplugin - The pluginpublic void delete(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ICategoryDAOcategory - The category objectplugin - The pluginpublic void store(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ICategoryDAOcategory - The reference of categoryplugin - The pluginpublic List<Category> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll in interface ICategoryDAOplugin - The pluginpublic int countPublishedAnnouncesForCategory(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
countPublishedAnnouncesForCategory in interface ICategoryDAOcategory - The category to get the number of published announce ofplugin - The pluginpublic int countEntriesForCategory(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
countEntriesForCategory in interface ICategoryDAOcategory - the categoryplugin - the pluginpublic List<Category> selectCategoriesForSector(Sector sector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCategoriesForSector in interface ICategoryDAOsector - The concerned sectorplugin - The plugin announcepublic fr.paris.lutece.util.ReferenceList selectCategoriesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCategoriesReferenceList in interface ICategoryDAOplugin - the pluginCopyright © 2015 Mairie de Paris. All rights reserved.