Class MapTemplateDAO

java.lang.Object
fr.paris.lutece.plugins.carto.business.MapTemplateDAO
All Implemented Interfaces:
IMapTemplateDAO

@ApplicationScoped public final class MapTemplateDAO extends Object implements IMapTemplateDAO
This class provides Data Access methods for MapTemplate objects
  • Constructor Details

    • MapTemplateDAO

      public MapTemplateDAO()
  • Method Details

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

      public 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