Interface ICityDAO

  • All Known Implementing Classes:
    CityDAO

    public interface ICityDAO
    ICityDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      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​(City city, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      java.util.Optional<City> load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.Optional<City> loadByCode​(java.lang.String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.Optional<City> loadByDateAndCode​(java.util.Date dateCode, java.lang.String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<City> selectCitiesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the city objects and returns them as a list
      java.util.List<City> selectCitiesListByIds​(fr.paris.lutece.portal.service.plugin.Plugin _plugin, java.util.List<java.lang.Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      java.util.List<City> selectCitiesListByLastDate​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the city objects by last date update and returns them as a referenceList
      java.util.List<City> selectCitiesListByValue​(java.lang.String strVal, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the city objects and returns them as a list
      java.util.List<City> selectCitiesListByValueAndDate​(java.lang.String strVal, java.util.Date dateCity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the city objects and returns them as a list
      java.util.List<City> selectCitiesListByValueAndDateLike​(java.lang.String strVal, java.util.Date dateCity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the city objects and returns them as a list
      java.util.List<City> selectCitiesListByValueLike​(java.lang.String strVal, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the city objects and returns them as a list
      fr.paris.lutece.util.ReferenceList selectCitiesReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the city objects and returns them as a referenceList
      java.util.List<java.lang.Integer> selectIdCitiesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String cityLabel, java.lang.String cityCode, java.lang.String placeCode)
      Load the id of all the city objects and returns them as a list
      void store​(City city, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

        void insert​(City city,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        city - instance of the City object to insert
        plugin - the Plugin
      • store

        void store​(City city,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        city - the reference of the City
        plugin - the Plugin
      • delete

        void delete​(int nKey,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nKey - The identifier of the City to delete
        plugin - the Plugin
      • load

        java.util.Optional<City> load​(int nKey,
                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the city
        plugin - the Plugin
        Returns:
        The instance of the city
      • loadByCode

        java.util.Optional<City> loadByCode​(java.lang.String strCode,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the city
        plugin - the Plugin
        Returns:
        The instance of the city
      • selectCitiesList

        java.util.List<City> selectCitiesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the city objects and returns them as a list
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the city objects
      • selectCitiesListByValue

        java.util.List<City> selectCitiesListByValue​(java.lang.String strVal,
                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the city objects and returns them as a list
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the city objects
      • selectIdCitiesList

        java.util.List<java.lang.Integer> selectIdCitiesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                             java.lang.String cityLabel,
                                                             java.lang.String cityCode,
                                                             java.lang.String placeCode)
        Load the id of all the city objects and returns them as a list
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the city objects
      • selectCitiesReferenceList

        fr.paris.lutece.util.ReferenceList selectCitiesReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the city objects and returns them as a referenceList
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the city objects
      • selectCitiesListByIds

        java.util.List<City> selectCitiesListByIds​(fr.paris.lutece.portal.service.plugin.Plugin _plugin,
                                                   java.util.List<java.lang.Integer> listIds)
        Load the data of all the avant objects and returns them as a list
        Parameters:
        plugin - the Plugin
        listIds - liste of ids
        Returns:
        The list which contains the data of all the avant objects
      • loadByDateAndCode

        java.util.Optional<City> loadByDateAndCode​(java.util.Date dateCode,
                                                   java.lang.String strCode,
                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        strCode - The identifier of the city
        dateCode - the date of avaibility
        plugin - the Plugin
        Returns:
        The instance of the city
      • selectCitiesListByValueAndDate

        java.util.List<City> selectCitiesListByValueAndDate​(java.lang.String strVal,
                                                            java.util.Date dateCity,
                                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the city objects and returns them as a list
        Parameters:
        plugin - the Plugin
        dateCity - date of the city
        strVal - name of the city
        Returns:
        The list which contains the data of all the city objects
      • selectCitiesListByLastDate

        java.util.List<City> selectCitiesListByLastDate​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the city objects by last date update and returns them as a referenceList
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the city objects
      • selectCitiesListByValueAndDateLike

        java.util.List<City> selectCitiesListByValueAndDateLike​(java.lang.String strVal,
                                                                java.util.Date dateCity,
                                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the city objects and returns them as a list
        Parameters:
        plugin - the Plugin
        dateCity - date of the city
        strVal - name of the city
        Returns:
        The list which contains the data of all the city objects
      • selectCitiesListByValueLike

        java.util.List<City> selectCitiesListByValueLike​(java.lang.String strVal,
                                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the city objects and returns them as a list
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the city objects