Interface ICategoryDAO
-
- All Known Implementing Classes:
CategoryDAO
public interface ICategoryDAOCategory DAO Interface- Author:
- Laurent Payen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablejava.util.List<Category>findAllCategories(fr.paris.lutece.portal.service.plugin.Plugin plugin)Find all the categoriesCategoryfindByLabel(java.lang.String strLabel, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find a category by its category labelvoidinsert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Categoryselect(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablevoidupdate(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
void insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Parameters:
category- instance of the Category object to insertplugin- the Plugin
-
update
void update(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
Category select(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nIdCategory- The identifier of the Categoryplugin- the Plugin- Returns:
- The instance of the Category
-
findAllCategories
java.util.List<Category> findAllCategories(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all the categories- Parameters:
plugin- the plugin- Returns:
- a list of all the categories
-
findByLabel
Category findByLabel(java.lang.String strLabel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a category by its category label- Parameters:
strLabel- the labelplugin- the plugin- Returns:
- an instance of the category
-
-