Interface IUrlRewriterRuleDAO
- All Known Implementing Classes:
UrlRewriterRuleDAO
public interface IUrlRewriterRuleDAO
IUrlRewriterRuleDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdUrlRewriterRule, 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.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectUrlRewriterRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the urlRewriterRule objects and returns them as a collectionvoidstore(UrlRewriterRule urlRewriterRule, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
urlRewriterRule- instance of the UrlRewriterRule object to inssertplugin- the Plugin
-
store
Update the record in the table- Parameters:
urlRewriterRule- the reference of the UrlRewriterRuleplugin- the Plugin
-
delete
void delete(int nIdUrlRewriterRule, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nIdUrlRewriterRule- int identifier of the UrlRewriterRule to deleteplugin- the Plugin
-
load
Load the data from the table- Parameters:
nKey- The identifier of the urlRewriterRuleplugin- the Plugin- Returns:
- The instance of the urlRewriterRule
-
selectUrlRewriterRulesList
Collection<UrlRewriterRule> selectUrlRewriterRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the urlRewriterRule objects and returns them as a collection- Parameters:
plugin- the Plugin- Returns:
- The collection which contains the data of all the urlRewriterRule objects
-
getLastId
int getLastId(fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the last id created (used by unit tests)- Parameters:
plugin- the Plugin- Returns:
- The last id
-