Class CategoryDAO
java.lang.Object
fr.paris.lutece.plugins.appointment.business.category.CategoryDAO
- All Implemented Interfaces:
ICategoryDAO
This class provides Data Access methods for Category objects
- Author:
- Laurent Payen
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
CategoryDAO
public CategoryDAO()
-
-
Method Details
-
insert
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
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
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
Description copied from interface:ICategoryDAOFind all the categories- Specified by:
findAllCategoriesin interfaceICategoryDAO- Parameters:
plugin- the plugin- Returns:
- a list of all the categories
-
findByLabel
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
-