Class UrlRewriterRuleDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.seo.business.UrlRewriterRuleDAO
-
- All Implemented Interfaces:
IUrlRewriterRuleDAO
public final class UrlRewriterRuleDAO extends Object implements IUrlRewriterRuleDAO
This class provides Data Access methods for UrlRewriterRule objects
-
-
Constructor Summary
Constructors Constructor Description UrlRewriterRuleDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nUrlRewriterRuleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tableintgetLastId(fr.paris.lutece.portal.service.plugin.Plugin plugin)Return the last id created (used by unit tests)voidinsert(UrlRewriterRule urlRewriterRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.UrlRewriterRuleload(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of the urlRewriterRule from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)Generates a new primary keyCollection<UrlRewriterRule>selectUrlRewriterRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the urlRewriterRules and returns them as a collectionvoidstore(UrlRewriterRule urlRewriterRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
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:
insertin interfaceIUrlRewriterRuleDAO- Parameters:
urlRewriterRule- instance of the UrlRewriterRule object to insertplugin- 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:
loadin interfaceIUrlRewriterRuleDAO- Parameters:
nId- The identifier of the urlRewriterRuleplugin- 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:
deletein interfaceIUrlRewriterRuleDAO- Parameters:
nUrlRewriterRuleId- The identifier of the urlRewriterRuleplugin- The plugin
-
store
public void store(UrlRewriterRule urlRewriterRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIUrlRewriterRuleDAO- Parameters:
urlRewriterRule- The reference of the urlRewriterRuleplugin- The plugin
-
selectUrlRewriterRulesList
public 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:
selectUrlRewriterRulesListin interfaceIUrlRewriterRuleDAO- Parameters:
plugin- The plugin- Returns:
- The Collection which contains the data of all the urlRewriterRules
-
getLastId
public int getLastId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IUrlRewriterRuleDAOReturn the last id created (used by unit tests)- Specified by:
getLastIdin interfaceIUrlRewriterRuleDAO- Parameters:
plugin- the Plugin- Returns:
- The last id
-
-