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

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

public final class UrlRewriterRuleDAO
extends java.lang.Object
implements IUrlRewriterRuleDAO

This class provides Data Access methods for UrlRewriterRule objects


Constructor Summary
UrlRewriterRuleDAO()
           
 
Method Summary
 void delete(int nUrlRewriterRuleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(UrlRewriterRule urlRewriterRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 UrlRewriterRule load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the urlRewriterRule from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.Collection<UrlRewriterRule> selectUrlRewriterRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the urlRewriterRules and returns them as a collection
 void store(UrlRewriterRule urlRewriterRule, 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

UrlRewriterRuleDAO

public UrlRewriterRuleDAO()
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(UrlRewriterRule urlRewriterRule,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IUrlRewriterRuleDAO
Parameters:
urlRewriterRule - instance of the UrlRewriterRule object to insert
plugin - The plugin

load

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

Specified by:
load in interface IUrlRewriterRuleDAO
Parameters:
nId - The identifier of the urlRewriterRule
plugin - The plugin
Returns:
the instance of the UrlRewriterRule

delete

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

Specified by:
delete in interface IUrlRewriterRuleDAO
Parameters:
nUrlRewriterRuleId - The identifier of the urlRewriterRule
plugin - The plugin

store

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

Specified by:
store in interface IUrlRewriterRuleDAO
Parameters:
urlRewriterRule - The reference of the urlRewriterRule
plugin - The plugin

selectUrlRewriterRulesList

public java.util.Collection<UrlRewriterRule> selectUrlRewriterRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the urlRewriterRules and returns them as a collection

Specified by:
selectUrlRewriterRulesList in interface IUrlRewriterRuleDAO
Parameters:
plugin - The plugin
Returns:
The Collection which contains the data of all the urlRewriterRules


Copyright © 2012 Mairie de Paris. All Rights Reserved.