public final class CategoryDAO extends Object implements ICategoryDAO
Constructor and Description |
---|
CategoryDAO() |
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
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
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 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The pluginpublic void insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface ICategoryDAO
category
- The Category objectplugin
- The pluginpublic int copyCategory(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
copyCategory
in interface ICategoryDAO
public Category load(int nCategoryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface ICategoryDAO
nCategoryId
- The identifier of Categoryplugin
- The pluginpublic void delete(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface ICategoryDAO
category
- The category objectplugin
- The pluginpublic void store(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface ICategoryDAO
category
- The reference of categoryplugin
- The pluginpublic List<Category> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll
in interface ICategoryDAO
plugin
- The pluginpublic int countPublishedAnnouncesForCategory(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
countPublishedAnnouncesForCategory
in interface ICategoryDAO
category
- 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 ICategoryDAO
category
- the categoryplugin
- the pluginpublic List<Category> selectCategoriesForSector(Sector sector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCategoriesForSector
in interface ICategoryDAO
sector
- The concerned sectorplugin
- The plugin announcepublic fr.paris.lutece.util.ReferenceList selectCategoriesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCategoriesReferenceList
in interface ICategoryDAO
plugin
- the pluginCopyright © 2019 City of Paris. All rights reserved.