public final class ShortUrlDAO extends Object implements IShortUrlDAO
BEAN_NAME| Constructor and Description |
|---|
ShortUrlDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nShortenerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
delete(String strKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table using key
|
void |
insert(ShortUrl shortUrl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
ShortUrl |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the shortener from the table
|
ShortUrl |
load(String strKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
Collection<ShortUrl> |
selectShortenersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the shorteners and returns them as a collection
|
void |
store(ShortUrl shortUrl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(ShortUrl shortUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IShortUrlDAOshorturl - instance of the ShortUrl object to insertplugin - The pluginpublic ShortUrl load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IShortUrlDAOnId - The identifier of the shortenerplugin - The pluginpublic void delete(int nShortenerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IShortUrlDAOnShortenerId - The identifier of the shortenerplugin - The pluginpublic void store(ShortUrl shortUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IShortUrlDAOshortUrl - The reference of the shortenerplugin - The pluginpublic Collection<ShortUrl> selectShortenersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectShortenersList in interface IShortUrlDAOplugin - The pluginpublic ShortUrl load(String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IShortUrlDAOpublic void delete(String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IShortUrlDAOdelete in interface IShortUrlDAOstrKey - the shortener key to deleteplugin - the PluginCopyright © 2019 City of Paris. All rights reserved.