public final class CategoryDAO extends UtilDAO implements ICategoryDAO
BEAN_NAME| 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
|
List<Category> |
findAllCategories(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all the categories
|
Category |
findByLabel(String strLabel,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a category by its category label
|
void |
insert(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Category |
select(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
void |
update(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
getNewPrimaryKeypublic void insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ICategoryDAOinsert in interface ICategoryDAOcategory - instance of the Category object to insertplugin - the Pluginpublic void update(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ICategoryDAOupdate in interface ICategoryDAOcategory - the reference of the Categoryplugin - the Pluginpublic void delete(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
ICategoryDAOdelete in interface ICategoryDAOnIdCategory - identifier of the Category to deleteplugin - the Pluginpublic Category select(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ICategoryDAOselect in interface ICategoryDAOnIdCategory - The identifier of the Categoryplugin - the Pluginpublic List<Category> findAllCategories(fr.paris.lutece.portal.service.plugin.Plugin plugin)
ICategoryDAOfindAllCategories in interface ICategoryDAOplugin - the pluginpublic Category findByLabel(String strLabel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ICategoryDAOfindByLabel in interface ICategoryDAOstrLabel - the labelplugin - the pluginCopyright © 2020 City of Paris. All rights reserved.