fr.paris.lutece.plugins.seo.business
Class FriendlyUrlDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.seo.business.FriendlyUrlDAO
All Implemented Interfaces:
IFriendlyUrlDAO

public final class FriendlyUrlDAO
extends java.lang.Object
implements IFriendlyUrlDAO

This class provides Data Access methods for FriendlyUrl objects


Constructor Summary
FriendlyUrlDAO()
           
 
Method Summary
 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
 java.util.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FriendlyUrlDAO

public FriendlyUrlDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

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

Specified by:
insert in interface IFriendlyUrlDAO
Parameters:
friendlyUrl - instance of the FriendlyUrl object to insert
plugin - The plugin

load

public FriendlyUrl load(int nId,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the friendlyUrl from the table

Specified by:
load in interface IFriendlyUrlDAO
Parameters:
nId - The identifier of the friendlyUrl
plugin - The plugin
Returns:
the instance of the FriendlyUrl

delete

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

Specified by:
delete in interface IFriendlyUrlDAO
Parameters:
nFriendlyUrlId - The identifier of the friendlyUrl
plugin - The plugin

store

public void store(FriendlyUrl friendlyUrl,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Specified by:
store in interface IFriendlyUrlDAO
Parameters:
friendlyUrl - The reference of the friendlyUrl
plugin - The plugin

selectFriendlyUrlsList

public java.util.List<FriendlyUrl> selectFriendlyUrlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the friendlyUrls and returns them as a List

Specified by:
selectFriendlyUrlsList in interface IFriendlyUrlDAO
Parameters:
plugin - The plugin
Returns:
The List which contains the data of all the friendlyUrls


Copyright © 2012 Mairie de Paris. All Rights Reserved.