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
|
int |
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 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
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey in interface ICategoryDAOplugin - The Pluginpublic int 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 - int identifier of the Category to deleteplugin - 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> selectCategoriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCategoriesList in interface ICategoryDAOplugin - the Pluginpublic Category selectFirstCategory(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFirstCategory in interface ICategoryDAOplugin - PluginCopyright © 2014 Mairie de Paris. All rights reserved.