Class MapTemplateDAO

  • All Implemented Interfaces:
    IMapTemplateDAO

    public final class MapTemplateDAO
    extends java.lang.Object
    implements IMapTemplateDAO
    This class provides Data Access methods for MapTemplate objects
    • Constructor Summary

      Constructors 
      Constructor Description
      MapTemplateDAO()  
    • 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​(MapTemplate mapTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      java.util.Optional<MapTemplate> load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.Optional<MapTemplate> loadXpageFO​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<java.lang.Integer> selectIdMapTemplatesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the mapTemplate objects and returns them as a list
      java.util.List<MapTemplate> selectMapTemplatesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the mapTemplate objects and returns them as a list
      java.util.List<MapTemplate> selectMapTemplatesListByIds​(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 selectMapTemplatesReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the mapTemplate objects and returns them as a referenceList
      void store​(MapTemplate mapTemplate, 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

      • MapTemplateDAO

        public MapTemplateDAO()
    • Method Detail

      • insert

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

        public java.util.Optional<MapTemplate> load​(int nKey,
                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface IMapTemplateDAO
        Parameters:
        nKey - The identifier of the mapTemplate
        plugin - the Plugin
        Returns:
        The instance of the mapTemplate
      • 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 IMapTemplateDAO
        Parameters:
        nKey - The identifier of the MapTemplate to delete
        plugin - the Plugin
      • store

        public void store​(MapTemplate mapTemplate,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IMapTemplateDAO
        Parameters:
        mapTemplate - the reference of the MapTemplate
        plugin - the Plugin
      • selectMapTemplatesList

        public java.util.List<MapTemplate> selectMapTemplatesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the mapTemplate objects and returns them as a list
        Specified by:
        selectMapTemplatesList in interface IMapTemplateDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the mapTemplate objects
      • selectIdMapTemplatesList

        public java.util.List<java.lang.Integer> selectIdMapTemplatesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the id of all the mapTemplate objects and returns them as a list
        Specified by:
        selectIdMapTemplatesList in interface IMapTemplateDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the mapTemplate objects
      • selectMapTemplatesReferenceList

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

        public java.util.List<MapTemplate> selectMapTemplatesListByIds​(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:
        selectMapTemplatesListByIds in interface IMapTemplateDAO
        listIds - liste of ids
        Returns:
        The list which contains the data of all the avant objects
      • loadXpageFO

        public java.util.Optional<MapTemplate> loadXpageFO​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        loadXpageFO in interface IMapTemplateDAO
        Returns:
        The instance of the mapTemplate