public final class HashtagDAO extends Object implements IHashtagDAO
Constructor and Description |
---|
HashtagDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nHashtagId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Hashtag hashtag,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Hashtag |
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<Hashtag> |
selectHashtagsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the hashtag objects and returns them as a collection
|
int |
selectId(String tag,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the identifier of the Hashtag whose tag is specified in parameter
|
void |
store(Hashtag hashtag,
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(Hashtag hashtag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IHashtagDAO
hashtag
- instance of the Hashtag object to insertplugin
- the Pluginpublic Hashtag load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IHashtagDAO
nKey
- The identifier of the hashtagplugin
- the Pluginpublic void delete(int nHashtagId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IHashtagDAO
nHashtagId
- int identifier of the Hashtag to deleteplugin
- the Pluginpublic void store(Hashtag hashtag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IHashtagDAO
hashtag
- the reference of the Hashtagplugin
- the Pluginpublic Collection<Hashtag> selectHashtagsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectHashtagsList
in interface IHashtagDAO
plugin
- the Pluginpublic int selectId(String tag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectId
in interface IHashtagDAO
tag
- the Tagplugin
- the PluginCopyright © 2016 City of Paris. All rights reserved.