Class CategoryDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.mydashboard.modules.favorites.business.CategoryDAO
-
- All Implemented Interfaces:
ICategoryDAO
public final class CategoryDAO extends java.lang.Object implements ICategoryDAO
This class provides Data Access methods for Category objects
-
-
Constructor Summary
Constructors Constructor Description CategoryDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tableCategoryfindByCode(java.lang.String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)voidinsert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Categoryload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)Generates a new primary keyjava.util.List<Category>selectCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)java.util.List<Category>selectDefaultCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)voidstore(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key- Parameters:
plugin- The Plugin- Returns:
- The new primary key
-
insert
public void insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceICategoryDAO- Parameters:
category- instance of the Category object to insertplugin- the Plugin
-
load
public Category load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceICategoryDAO- Parameters:
nKey- The identifier of the categoryplugin- the Plugin- Returns:
- The instance of the category
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceICategoryDAO- Parameters:
nKey- The identifier of the Category to deleteplugin- the Plugin
-
store
public void store(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceICategoryDAO- Parameters:
category- the reference of the Categoryplugin- the Plugin
-
selectCategoriesList
public java.util.List<Category> selectCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Specified by:
selectCategoriesListin interfaceICategoryDAO
-
findByCode
public Category findByCode(java.lang.String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Specified by:
findByCodein interfaceICategoryDAO
-
selectDefaultCategoriesList
public java.util.List<Category> selectDefaultCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ICategoryDAO- Specified by:
selectDefaultCategoriesListin interfaceICategoryDAO
-
-