Interface ICategoryDAO
- All Known Implementing Classes:
CategoryDAO
public interface ICategoryDAO
ICategoryDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tableintInsert 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 keyselectByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) selectCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the category objects and returns them as a collectionselectFirstCategory(fr.paris.lutece.portal.service.plugin.Plugin plugin) Select the first categoryvoidUpdate the record in the table
-
Method Details
-
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
Insert a new record in the table.- Parameters:
category- instance of the Category object to insertplugin- the Plugin- Returns:
- the new primary key
-
store
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
Load the data from the table- Parameters:
nKey- The identifier of the categoryplugin- the Plugin- Returns:
- The instance of the category
-
selectCategoriesList
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
Select the first category- Parameters:
plugin-Plugin- Returns:
- a
Category
-
selectByCode
-