Class DataLayerMapTemplateDAO

java.lang.Object
fr.paris.lutece.plugins.carto.business.DataLayerMapTemplateDAO
All Implemented Interfaces:
IDataLayerMapTemplateDAO

public final class DataLayerMapTemplateDAO extends Object implements IDataLayerMapTemplateDAO
This class provides Data Access methods for DataLayerMapTemplate objects
  • Constructor Details

    • DataLayerMapTemplateDAO

      public DataLayerMapTemplateDAO()
  • Method Details

    • insert

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

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

      public void store(DataLayerMapTemplate dataLayerMapTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IDataLayerMapTemplateDAO
      Parameters:
      dataLayerMapTemplate - the reference of the DataLayerMapTemplate
      plugin - the Plugin
    • selectDataLayerMapTemplatesList

      public List<DataLayerMapTemplate> selectDataLayerMapTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the dataLayerMapTemplate objects and returns them as a list
      Specified by:
      selectDataLayerMapTemplatesList in interface IDataLayerMapTemplateDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the dataLayerMapTemplate objects
    • selectIdDataLayerMapTemplatesList

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

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

      public List<DataLayerMapTemplate> selectDataLayerMapTemplatesListByIds(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:
      selectDataLayerMapTemplatesListByIds in interface IDataLayerMapTemplateDAO
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects
    • selectDataLayerListByMapTemplateId

      public List<DataLayer> selectDataLayerListByMapTemplateId(fr.paris.lutece.portal.service.plugin.Plugin _plugin, int nKey)
      Load all the DataLayer attached to the MapTemplate id
      Specified by:
      selectDataLayerListByMapTemplateId in interface IDataLayerMapTemplateDAO
      Returns:
      The list of DataLayer
    • selectDataLayerListByMapTemplateIdAndSearchable

      public List<DataLayer> selectDataLayerListByMapTemplateIdAndSearchable(fr.paris.lutece.portal.service.plugin.Plugin _plugin, int nKey, boolean isSearchableByOther)
      Load all the DataLayer attached to the MapTemplate id
      Specified by:
      selectDataLayerListByMapTemplateIdAndSearchable in interface IDataLayerMapTemplateDAO
      isSearchableByOther - : is the map viewable by others
      Returns:
      The list of DataLayer
    • loadByIdMapIdLayer

      public Optional<DataLayerMapTemplate> loadByIdMapIdLayer(int nMapKey, int nDataLayerKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      loadByIdMapIdLayer in interface IDataLayerMapTemplateDAO
      Parameters:
      nMapKey - The identifier of the MapTemplate
      nDataLayerKey - The identifier of the dataLayer
      plugin - the Plugin
      Returns:
      The instance of the dataLayerMapTemplate
    • loadByDataLayerId

      public Optional<DataLayerMapTemplate> loadByDataLayerId(fr.paris.lutece.portal.service.plugin.Plugin _plugin, int nKey)
      Load the data from id data layer
      Specified by:
      loadByDataLayerId in interface IDataLayerMapTemplateDAO
      Parameters:
      _plugin - the Plugin
      nKey - The od of the datalayer
      Returns:
      The instance of the dataLayerMapTemplate