public class CategoryDAO extends Object implements ICategoryDAO
Constructor and Description |
---|
CategoryDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
deleteDiggAssociation(int nIdDigg,
int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an association between digg and categories
|
void |
insert(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
void |
insertDiggAssociation(int nIdDigg,
int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert an association between digg and a category
|
boolean |
isAssociateToDigg(int nIdCategory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
true if there is a digg associate to the category
|
Category |
load(int idKey,
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
|
List<Category> |
select(int nIdDigg,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select all category associate to a digg and returns them in a list
|
List<Category> |
select(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all category returns them in a list
|
void |
store(Category category,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
update 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 ICategoryDAO
category
- instance of the Category object to insertplugin
- the pluginpublic void store(Category category, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface ICategoryDAO
category
- instance of the Category object to updateplugin
- the pluginpublic Category load(int idKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface ICategoryDAO
idKey
- The identifier of the categoryplugin
- the pluginpublic List<Category> select(fr.paris.lutece.portal.service.plugin.Plugin plugin)
select
in interface ICategoryDAO
plugin
- the pluginpublic void delete(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface ICategoryDAO
nIdCategory
- The identifier of the categoryplugin
- the pluginpublic boolean isAssociateToDigg(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
isAssociateToDigg
in interface ICategoryDAO
nIdCategory
- the key of the categoryplugin
- the pluginpublic List<Category> select(int nIdDigg, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ICategoryDAO
select
in interface ICategoryDAO
plugin
- the pluginpublic void deleteDiggAssociation(int nIdDigg, int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteDiggAssociation
in interface ICategoryDAO
nIdDigg
- The identifier of the diggnIdCategory
- The identifier of the categoryplugin
- the pluginpublic void insertDiggAssociation(int nIdDigg, int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertDiggAssociation
in interface ICategoryDAO
nIdDigg
- The identifier of the categorynIdCategory
- The identifier of the categoryplugin
- the pluginCopyright © 2016 Mairie de Paris. All Rights Reserved.