|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.shorturl.business.ShortUrlDAO
public final class ShortUrlDAO
This class provides Data Access methods for ShortUrl objects
| Constructor Summary | |
|---|---|
ShortUrlDAO()
|
|
| Method Summary | |
|---|---|
void |
delete(int nShortenerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
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(java.lang.String strKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key |
java.util.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShortUrlDAO()
| Method Detail |
|---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Plugin
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 plugin
public ShortUrl load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IShortUrlDAOnId - The identifier of the shortenerplugin - The plugin
public void delete(int nShortenerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IShortUrlDAOnShortenerId - The identifier of the shortenerplugin - The plugin
public void store(ShortUrl shortUrl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IShortUrlDAOshortUrl - The reference of the shortenerplugin - The pluginpublic java.util.Collection<ShortUrl> selectShortenersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectShortenersList in interface IShortUrlDAOplugin - The plugin
public ShortUrl load(java.lang.String strKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IShortUrlDAO
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||