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
|
getNewPrimaryKey
public void insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ICategoryDAO
insert
in interface ICategoryDAO
category
- instance of the Category object to insertplugin
- the Pluginpublic void update(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ICategoryDAO
update
in interface ICategoryDAO
category
- the reference of the Categoryplugin
- the Pluginpublic void delete(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ICategoryDAO
delete
in interface ICategoryDAO
nIdCategory
- identifier of the Category to deleteplugin
- the Pluginpublic Category select(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ICategoryDAO
select
in interface ICategoryDAO
nIdCategory
- The identifier of the Categoryplugin
- the Pluginpublic List<Category> findAllCategories(fr.paris.lutece.portal.service.plugin.Plugin plugin)
ICategoryDAO
findAllCategories
in interface ICategoryDAO
plugin
- the pluginpublic Category findByLabel(String strLabel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ICategoryDAO
findByLabel
in interface ICategoryDAO
strLabel
- the labelplugin
- the pluginCopyright © 2018 City of Paris. All rights reserved.