public interface ICategoryDAO
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
int |
insert(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Category |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
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
|
Category |
selectFirstCategory(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the first category
|
void |
store(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Pluginint insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
category
- instance of the Category object to insertplugin
- the Pluginvoid store(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
category
- the reference of the Categoryplugin
- the Pluginvoid delete(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdCategory
- int identifier of the Category to deleteplugin
- the PluginCategory load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey
- The identifier of the categoryplugin
- the PluginCollection<Category> selectCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the PluginCategory selectFirstCategory(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- Plugin
Copyright © 2019 City of Paris. All rights reserved.