Class UrlRewriterRuleHome

java.lang.Object
fr.paris.lutece.plugins.seo.business.UrlRewriterRuleHome

public final class UrlRewriterRuleHome extends Object
This class provides instances management methods (create, find, ...) for UrlRewriterRule objects
  • Method Details

    • create

      public static UrlRewriterRule create(UrlRewriterRule urlRewriterRule)
      Create an instance of the urlRewriterRule class
      Parameters:
      urlRewriterRule - The instance of the UrlRewriterRule which contains the informations to store
      Returns:
      The instance of urlRewriterRule which has been created with its primary key.
    • update

      public static UrlRewriterRule update(UrlRewriterRule urlRewriterRule)
      Update of the urlRewriterRule which is specified in parameter
      Parameters:
      urlRewriterRule - The instance of the UrlRewriterRule which contains the data to store
      Returns:
      The instance of the urlRewriterRule which has been updated
    • remove

      public static void remove(int nUrlRewriterRuleId)
      Remove the urlRewriterRule whose identifier is specified in parameter
      Parameters:
      nUrlRewriterRuleId - The urlRewriterRule Id
    • findByPrimaryKey

      public static UrlRewriterRule findByPrimaryKey(int nKey)
      Returns an instance of a urlRewriterRule whose identifier is specified in parameter
      Parameters:
      nKey - The urlRewriterRule primary key
      Returns:
      an instance of UrlRewriterRule
    • findAll

      public static Collection<UrlRewriterRule> findAll()
      Load the data of all the urlRewriterRule objects and returns them in form of a collection
      Returns:
      the collection which contains the data of all the urlRewriterRule objects
    • getLastId

      public static int getLastId()
      The last id
      Returns:
      the last id