Interface ICategoryDAO
-
- All Known Implementing Classes:
CategoryDAO
public interface ICategoryDAOICategoryDAO Interface
-
-
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 tableintinsert(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 keyCategoryselectByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Collection<Category>selectCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the category objects and returns them as a collectionCategoryselectFirstCategory(fr.paris.lutece.portal.service.plugin.Plugin plugin)Select the first categoryvoidstore(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
newPrimaryKey
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
int 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- Returns:
- the new primary key
-
store
void store(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- int identifier of the Category to deleteplugin- the Plugin
-
load
Category load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nKey- The identifier of the categoryplugin- the Plugin- Returns:
- The instance of the category
-
selectCategoriesList
Collection<Category> selectCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the category objects and returns them as a collection- Parameters:
plugin- the Plugin- Returns:
- The collection which contains the data of all the category objects
-
selectFirstCategory
Category selectFirstCategory(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the first category- Parameters:
plugin-Plugin- Returns:
- a
Category
-
-