Class CategoryDAO
java.lang.Object
fr.paris.lutece.plugins.mydashboard.modules.favorites.business.CategoryDAO
- All Implemented Interfaces:
ICategoryDAO
This class provides Data Access methods for Category objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) voidInsert a new record in the table.load(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 keyselectCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) selectDefaultCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) voidUpdate the record in the table
-
Constructor Details
-
CategoryDAO
public CategoryDAO()
-
-
Method Details
-
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
Insert a new record in the table.- Specified by:
insertin interfaceICategoryDAO- Parameters:
category- instance of the Category object to insertplugin- the Plugin
-
load
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
Update the record in the table- Specified by:
storein interfaceICategoryDAO- Parameters:
category- the reference of the Categoryplugin- the Plugin
-
selectCategoriesList
- Specified by:
selectCategoriesListin interfaceICategoryDAO
-
findByCode
- Specified by:
findByCodein interfaceICategoryDAO
-
selectDefaultCategoriesList
public List<Category> selectDefaultCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:ICategoryDAO- Specified by:
selectDefaultCategoriesListin interfaceICategoryDAO
-