public final class ShortUrlHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static ShortUrl |
create(ShortUrl shortener)
Create an instance of the shortener class
|
static ShortUrl |
findByKey(String strKey)
Returns an instance of a shortener whose identifier is specified in parameter
|
static ShortUrl |
findByPrimaryKey(int nKey)
Returns an instance of a shortener whose identifier is specified in parameter
|
static Collection<ShortUrl> |
getShortenersList()
Load the data of all the shortener objects and returns them in form of a collection
|
static void |
remove(int nShortenerId)
Remove the shortener whose identifier is specified in parameter
|
static void |
removeByKey(String strKey)
Remove the shortener whose identifier is specified in parameter
|
static ShortUrl |
update(ShortUrl shortener)
Update of the shortener which is specified in parameter
|
public static ShortUrl create(ShortUrl shortener)
shortener - The instance of the ShortUrl which contains the informations to storeplugin - the Pluginpublic static ShortUrl update(ShortUrl shortener)
shortener - The instance of the ShortUrl which contains the data to storeplugin - the Pluginpublic static void remove(int nShortenerId)
plugin - the Pluginpublic static void removeByKey(String strKey)
plugin - the Pluginpublic static ShortUrl findByPrimaryKey(int nKey)
nKey - The shortener primary keypublic static ShortUrl findByKey(String strKey)
nKey - The shortener primary keypublic static Collection<ShortUrl> getShortenersList()
Copyright © 2019 City of Paris. All rights reserved.