Constructor and Description |
---|
LinkDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nLinkId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Link link,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Link |
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<Link> |
selectLinksList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the link objects and returns them as a collection
|
Collection<Link> |
selectLinksListTag(int hashtag,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the link objects whose hashtag is specified in parameter and returns them as a collection
|
void |
store(Link link,
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(Link link, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public Link load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void delete(int nLinkId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void store(Link link, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public Collection<Link> selectLinksList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectLinksList
in interface ILinkDAO
plugin
- the Pluginpublic Collection<Link> selectLinksListTag(int hashtag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectLinksListTag
in interface ILinkDAO
hashtag
- The hashtagplugin
- the PluginCopyright © 2016 City of Paris. All rights reserved.