Interface IUrlRewriterRuleDAO

All Known Implementing Classes:
UrlRewriterRuleDAO

public interface IUrlRewriterRuleDAO
IUrlRewriterRuleDAO Interface
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdUrlRewriterRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    int
    getLastId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Return the last id created (used by unit tests)
    void
    insert(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 table
    selectUrlRewriterRulesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the urlRewriterRule objects and returns them as a collection
    void
    store(UrlRewriterRule urlRewriterRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table
  • Method Details

    • insert

      void insert(UrlRewriterRule urlRewriterRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Parameters:
      urlRewriterRule - instance of the UrlRewriterRule object to inssert
      plugin - the Plugin
    • store

      void store(UrlRewriterRule urlRewriterRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Parameters:
      urlRewriterRule - the reference of the UrlRewriterRule
      plugin - 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 delete
      plugin - the Plugin
    • load

      UrlRewriterRule load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Parameters:
      nKey - The identifier of the urlRewriterRule
      plugin - 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