Class FriendlyUrlDAO

java.lang.Object
fr.paris.lutece.plugins.seo.business.FriendlyUrlDAO
All Implemented Interfaces:
IFriendlyUrlDAO

@ApplicationScoped public class FriendlyUrlDAO extends Object implements IFriendlyUrlDAO
This class provides Data Access methods for FriendlyUrl objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nFriendlyUrlId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    deleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete all record from the table
    void
    insert(FriendlyUrl friendlyUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    int
    newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    selectFriendlyUrlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the friendlyUrl objects and returns them as a List
    void
    store(FriendlyUrl friendlyUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FriendlyUrlDAO

      public FriendlyUrlDAO()
  • Method Details

    • newPrimaryKey

      public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • insert

      public void insert(FriendlyUrl friendlyUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IFriendlyUrlDAO
      Parameters:
      friendlyUrl - instance of the FriendlyUrl object to inssert
      plugin - the Plugin
    • load

      public FriendlyUrl load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IFriendlyUrlDAO
      Parameters:
      nId - The identifier of the friendlyUrl
      plugin - the Plugin
      Returns:
      The instance of the friendlyUrl
    • delete

      public void delete(int nFriendlyUrlId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface IFriendlyUrlDAO
      Parameters:
      nFriendlyUrlId - int identifier of the FriendlyUrl to delete
      plugin - the Plugin
    • store

      public void store(FriendlyUrl friendlyUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IFriendlyUrlDAO
      Parameters:
      friendlyUrl - the reference of the FriendlyUrl
      plugin - the Plugin
    • selectFriendlyUrlsList

      public List<FriendlyUrl> selectFriendlyUrlsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the friendlyUrl objects and returns them as a List
      Specified by:
      selectFriendlyUrlsList in interface IFriendlyUrlDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The List which contains the data of all the friendlyUrl objects
    • deleteAll

      public void deleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete all record from the table
      Specified by:
      deleteAll in interface IFriendlyUrlDAO
      Parameters:
      plugin - the Plugin