Class BasemapDAO

java.lang.Object
fr.paris.lutece.plugins.carto.business.BasemapDAO
All Implemented Interfaces:
IBasemapDAO

public final class BasemapDAO extends Object implements IBasemapDAO
This class provides Data Access methods for Basemap objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    insert(Basemap basemap, 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
    selectBasemapsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the basemap objects and returns them as a list
    selectBasemapsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
    Load the data of all the avant objects and returns them as a list
    fr.paris.lutece.util.ReferenceList
    selectBasemapsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the basemap objects and returns them as a referenceList
    selectIdBasemapsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id of all the basemap objects and returns them as a list
    void
    store(Basemap basemap, 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

    • BasemapDAO

      public BasemapDAO()
  • Method Details

    • insert

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

      public Optional<Basemap> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IBasemapDAO
      Parameters:
      nKey - The identifier of the basemap
      plugin - the Plugin
      Returns:
      The instance of the basemap
    • delete

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

      public void store(Basemap basemap, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IBasemapDAO
      Parameters:
      basemap - the reference of the Basemap
      plugin - the Plugin
    • selectBasemapsList

      public List<Basemap> selectBasemapsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the basemap objects and returns them as a list
      Specified by:
      selectBasemapsList in interface IBasemapDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the basemap objects
    • selectIdBasemapsList

      public List<Integer> selectIdBasemapsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the basemap objects and returns them as a list
      Specified by:
      selectIdBasemapsList in interface IBasemapDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the id of all the basemap objects
    • selectBasemapsReferenceList

      public fr.paris.lutece.util.ReferenceList selectBasemapsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the basemap objects and returns them as a referenceList
      Specified by:
      selectBasemapsReferenceList in interface IBasemapDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The referenceList which contains the data of all the basemap objects
    • selectBasemapsListByIds

      public List<Basemap> selectBasemapsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      Specified by:
      selectBasemapsListByIds in interface IBasemapDAO
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects