fr.paris.lutece.plugins.shorturl.business
Interface IShortUrlDAO

All Known Implementing Classes:
ShortUrlDAO

public interface IShortUrlDAO

IShortUrlDAO Interface


Method Summary
 void delete(int nIdShortener, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(ShortUrl shortener, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 ShortUrl load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 ShortUrl load(java.lang.String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 java.util.Collection<ShortUrl> selectShortenersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the shortener objects and returns them as a collection
 void store(ShortUrl shortener, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

insert

void insert(ShortUrl shortener,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
shortener - instance of the ShortUrl object to inssert
plugin - the Plugin

store

void store(ShortUrl shortener,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
shortener - the reference of the ShortUrl
plugin - the Plugin

delete

void delete(int nIdShortener,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdShortener - int identifier of the ShortUrl to delete
plugin - the Plugin

load

ShortUrl load(int nKey,
              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Parameters:
strId - The identifier of the shortener
plugin - the Plugin
Returns:
The instance of the shortener

selectShortenersList

java.util.Collection<ShortUrl> selectShortenersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the shortener objects and returns them as a collection

Parameters:
plugin - the Plugin
Returns:
The collection which contains the data of all the shortener objects

load

ShortUrl load(java.lang.String strKey,
              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Parameters:
strKey -
plugin -
Returns:


Copyright © 2012 Mairie de Paris. All Rights Reserved.