Class CategoryDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.category.CategoryDAO
-
- All Implemented Interfaces:
ICategoryDAO
public final class CategoryDAO extends java.lang.Object implements ICategoryDAO
This class provides Data Access methods for Category objects- Author:
- Laurent Payen
-
-
Constructor Summary
Constructors Constructor Description CategoryDAO()
-
Method Summary
All Methods Instance Methods Concrete 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
public void insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ICategoryDAOInsert a new record in the table.- Specified by:
insertin interfaceICategoryDAO- Parameters:
category- instance of the Category object to insertplugin- the Plugin
-
update
public void update(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ICategoryDAOUpdate the record in the table- Specified by:
updatein interfaceICategoryDAO- Parameters:
category- the reference of the Categoryplugin- the Plugin
-
delete
public void delete(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:ICategoryDAODelete a record from the table- Specified by:
deletein interfaceICategoryDAO- Parameters:
nIdCategory- identifier of the Category to deleteplugin- the Plugin
-
select
public Category select(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ICategoryDAOLoad the data from the table- Specified by:
selectin interfaceICategoryDAO- Parameters:
nIdCategory- The identifier of the Categoryplugin- the Plugin- Returns:
- The instance of the Category
-
findAllCategories
public java.util.List<Category> findAllCategories(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ICategoryDAOFind all the categories- Specified by:
findAllCategoriesin interfaceICategoryDAO- Parameters:
plugin- the plugin- Returns:
- a list of all the categories
-
findByLabel
public Category findByLabel(java.lang.String strLabel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ICategoryDAOFind a category by its category label- Specified by:
findByLabelin interfaceICategoryDAO- Parameters:
strLabel- the labelplugin- the plugin- Returns:
- an instance of the category
-
-