Class UrlRewriterRuleHome
java.lang.Object
fr.paris.lutece.plugins.seo.business.UrlRewriterRuleHome
This class provides instances management methods (create, find, ...) for UrlRewriterRule objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic UrlRewriterRulecreate(UrlRewriterRule urlRewriterRule) Create an instance of the urlRewriterRule classstatic Collection<UrlRewriterRule>findAll()Load the data of all the urlRewriterRule objects and returns them in form of a collectionstatic UrlRewriterRulefindByPrimaryKey(int nKey) Returns an instance of a urlRewriterRule whose identifier is specified in parameterstatic intThe last idstatic voidremove(int nUrlRewriterRuleId) Remove the urlRewriterRule whose identifier is specified in parameterstatic UrlRewriterRuleupdate(UrlRewriterRule urlRewriterRule) Update of the urlRewriterRule which is specified in parameter
-
Method Details
-
create
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
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
Returns an instance of a urlRewriterRule whose identifier is specified in parameter- Parameters:
nKey- The urlRewriterRule primary key- Returns:
- an instance of 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
-