Interface ICategoryDAO
- All Known Implementing Classes:
CategoryDAO
public interface ICategoryDAO
Category DAO Interface
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindAllCategories(fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all the categoriesfindByLabel(String strLabel, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find a category by its category labelvoidInsert a new record in the table.select(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tablevoidUpdate the record in the table
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
category- instance of the Category object to insertplugin- the Plugin
-
update
Update the record in the table- Parameters:
category- the reference of the Categoryplugin- the Plugin
-
delete
void delete(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nIdCategory- identifier of the Category to deleteplugin- the Plugin
-
select
Load the data from the table- Parameters:
nIdCategory- The identifier of the Categoryplugin- the Plugin- Returns:
- The instance of the Category
-
findAllCategories
Find all the categories- Parameters:
plugin- the plugin- Returns:
- a list of all the categories
-
findByLabel
Find a category by its category label- Parameters:
strLabel- the labelplugin- the plugin- Returns:
- an instance of the category
-