Class CoordonneeDAO

java.lang.Object
fr.paris.lutece.plugins.carto.business.CoordonneeDAO
All Implemented Interfaces:
ICoordonneeDAO

@ApplicationScoped public final class CoordonneeDAO extends Object implements ICoordonneeDAO
This class provides Data Access methods for Coordonnee 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(Coordonnee coordonnee, 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
    selectCoordonneesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the coordonnee objects and returns them as a list
    selectCoordonneesListByIds(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
    fr.paris.lutece.util.ReferenceList
    selectCoordonneesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the coordonnee objects and returns them as a referenceList
    selectIdCoordonneesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id of all the coordonnee objects and returns them as a list
    void
    store(Coordonnee coordonnee, 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

    • CoordonneeDAO

      public CoordonneeDAO()
  • Method Details

    • insert

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

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

      public void store(Coordonnee coordonnee, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface ICoordonneeDAO
      Parameters:
      coordonnee - the reference of the Coordonnee
      plugin - the Plugin
    • selectCoordonneesList

      public List<Coordonnee> selectCoordonneesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the coordonnee objects and returns them as a list
      Specified by:
      selectCoordonneesList in interface ICoordonneeDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the coordonnee objects
    • selectIdCoordonneesList

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

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

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