Class DataLayerDAO

java.lang.Object
fr.paris.lutece.plugins.carto.business.DataLayerDAO
All Implemented Interfaces:
IDataLayerDAO

@ApplicationScoped public final class DataLayerDAO extends Object implements IDataLayerDAO
This class provides Data Access methods for DataLayer 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(DataLayer dataLayer, 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
    loadBySolrTag(String strSolrTag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    loadDataLayerWithOptions(int nKey, boolean editable, boolean inclusion, boolean exclusion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectDataLayersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the dataLayer objects and returns them as a list
    selectDataLayersListByIds(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
    selectDataLayersListWFS(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdMapTemplate)
    Load the data of all the dataLayer objects with WFS source and returns them as a list
    fr.paris.lutece.util.ReferenceList
    selectDataLayersReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the dataLayer objects and returns them as a referenceList
    selectIdDataLayersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id of all the dataLayer objects and returns them as a list
    void
    store(DataLayer dataLayer, 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

    • DataLayerDAO

      public DataLayerDAO()
  • Method Details

    • insert

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

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

      public Optional<DataLayer> loadBySolrTag(String strSolrTag, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      loadBySolrTag in interface IDataLayerDAO
      Parameters:
      strSolrTag - The identifier of the solrtag
      plugin - the Plugin
      Returns:
      The instance of the dataLayer
    • 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 IDataLayerDAO
      Parameters:
      nKey - The identifier of the DataLayer to delete
      plugin - the Plugin
    • store

      public void store(DataLayer dataLayer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IDataLayerDAO
      Parameters:
      dataLayer - the reference of the DataLayer
      plugin - the Plugin
    • selectDataLayersList

      public List<DataLayer> selectDataLayersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the dataLayer objects and returns them as a list
      Specified by:
      selectDataLayersList in interface IDataLayerDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the dataLayer objects
    • selectDataLayersListWFS

      public List<DataLayer> selectDataLayersListWFS(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdMapTemplate)
      Load the data of all the dataLayer objects with WFS source and returns them as a list
      Specified by:
      selectDataLayersListWFS in interface IDataLayerDAO
      Parameters:
      plugin - the Plugin
      nIdMapTemplate - the id of the map template
      Returns:
      The list which contains the data of all the dataLayer objects
    • selectIdDataLayersList

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

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

      public List<DataLayer> selectDataLayersListByIds(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:
      selectDataLayersListByIds in interface IDataLayerDAO
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects
    • loadDataLayerWithOptions

      public Optional<DataLayer> loadDataLayerWithOptions(int nKey, boolean editable, boolean inclusion, boolean exclusion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      loadDataLayerWithOptions in interface IDataLayerDAO
      Parameters:
      nKey - The identifier of the map
      editable - dataLayer editable
      inclusion - dataLayer inclusion
      exclusion - dataLayer exclusion
      plugin - the Plugin
      Returns:
      The instance of the dataLayer