Class BasemapDAO

  • All Implemented Interfaces:
    IBasemapDAO

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

      Constructors 
      Constructor Description
      BasemapDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      java.util.Optional<Basemap> load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.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
      java.util.List<Basemap> selectBasemapsListByIds​(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.List<java.lang.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
      java.util.List<java.lang.Integer> 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 Detail

      • BasemapDAO

        public BasemapDAO()
    • Method Detail

      • 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 java.util.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 java.util.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 java.util.List<java.lang.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 java.util.List<Basemap> selectBasemapsListByIds​(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                               java.util.List<java.lang.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