public final class CategoryDAO extends Object implements ICategoryDAO
| Constructor and Description |
|---|
CategoryDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Category |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the category from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
Collection<Category> |
selectCategorysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the categorys and returns them as a collection
|
void |
store(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Pluginpublic void insert(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ICategoryDAOcategory - instance of the Category object to insertplugin - The pluginpublic Category load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ICategoryDAOnId - The identifier of the categoryplugin - The pluginpublic void delete(int nCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ICategoryDAOnCategoryId - The identifier of the categoryplugin - The pluginpublic void store(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ICategoryDAOcategory - The reference of the categoryplugin - The pluginpublic Collection<Category> selectCategorysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCategorysList in interface ICategoryDAOplugin - The pluginCopyright © 2018 City of Paris. All rights reserved.