Class DataLayerTypeDAO

java.lang.Object
fr.paris.lutece.plugins.carto.business.DataLayerTypeDAO
All Implemented Interfaces:
IDataLayerTypeDAO

@ApplicationScoped public final class DataLayerTypeDAO extends Object implements IDataLayerTypeDAO
This class provides Data Access methods for DataLayerType objects
  • Constructor Details

    • DataLayerTypeDAO

      public DataLayerTypeDAO()
  • Method Details

    • insert

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

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

      public void store(DataLayerType dataLayerType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IDataLayerTypeDAO
      Parameters:
      dataLayerType - the reference of the DataLayerType
      plugin - the Plugin
    • selectDataLayerTypesList

      public List<DataLayerType> selectDataLayerTypesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the dataLayerType objects and returns them as a list
      Specified by:
      selectDataLayerTypesList in interface IDataLayerTypeDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the dataLayerType objects
    • selectIdDataLayerTypesList

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

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

      public List<DataLayerType> selectDataLayerTypesListByIds(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:
      selectDataLayerTypesListByIds in interface IDataLayerTypeDAO
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects