public final class FriendlyUrlDAO extends Object implements IFriendlyUrlDAO
Constructor and Description |
---|
FriendlyUrlDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nFriendlyUrlId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(FriendlyUrl friendlyUrl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
FriendlyUrl |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the friendlyUrl from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
List<FriendlyUrl> |
selectFriendlyUrlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the friendlyUrls and returns them as a List
|
void |
store(FriendlyUrl friendlyUrl,
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(FriendlyUrl friendlyUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IFriendlyUrlDAO
friendlyUrl
- instance of the FriendlyUrl object to insertplugin
- The pluginpublic FriendlyUrl load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IFriendlyUrlDAO
nId
- The identifier of the friendlyUrlplugin
- The pluginpublic void delete(int nFriendlyUrlId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IFriendlyUrlDAO
nFriendlyUrlId
- The identifier of the friendlyUrlplugin
- The pluginpublic void store(FriendlyUrl friendlyUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IFriendlyUrlDAO
friendlyUrl
- The reference of the friendlyUrlplugin
- The pluginpublic List<FriendlyUrl> selectFriendlyUrlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFriendlyUrlsList
in interface IFriendlyUrlDAO
plugin
- The pluginCopyright © 2015 City of Paris. All rights reserved.