public final class CategoryDAO extends Object implements ICategoryDAO
| Constructor and Description |
|---|
CategoryDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nKey,
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 nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
Category |
load(String strTitle,
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
|
List<Category> |
selectCategorysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the category objects and returns them as a list
|
fr.paris.lutece.util.ReferenceList |
selectCategorysReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the category objects and returns them as a referenceList
|
List<Integer> |
selectIdCategorysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the category objects and returns them as a list
|
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 nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ICategoryDAOnKey - The identifier of the categoryplugin - the Pluginpublic void delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ICategoryDAOnKey - The 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 List<Category> selectCategorysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCategorysList in interface ICategoryDAOplugin - the Pluginpublic List<Integer> selectIdCategorysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdCategorysList in interface ICategoryDAOplugin - the Pluginpublic fr.paris.lutece.util.ReferenceList selectCategorysReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCategorysReferenceList in interface ICategoryDAOplugin - the Pluginpublic Category load(String strTitle, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ICategoryDAOstrTitle - The title of the categoryplugin - the PluginCopyright © 2017 City of Paris. All rights reserved.