Class GeoCodesLocal

    • Constructor Summary

      Constructors 
      Constructor Description
      GeoCodesLocal()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getCitiesCodesListByDate​(java.util.Date dateCity)
      Get list of city codes by date
      java.util.List<City> getCitiesListByName​(java.lang.String strSearchBeginningVal)
      search cities by exact name
      java.util.List<City> getCitiesListByNameAndDate​(java.lang.String strSearchBeginningVal, java.util.Date dateCity)
      search cities by name beginning with a string and a date
      java.util.List<City> getCitiesListByNameAndDateLike​(java.lang.String strSearchBeginningVal, java.util.Date dateCity)
      search cities by name beginning with a string and a date
      java.util.List<City> getCitiesListByNameLike​(java.lang.String strSearchBeginningVal)
      search cities by name beginning with a string
      java.util.Optional<City> getCityByCode​(java.lang.String strCode)
      get city by code
      java.util.Optional<City> getCityByDateAndCode​(java.util.Date dateCity, java.lang.String strCode)
      get city by code and date
      java.util.Optional<Country> getCountryByCodeAndDate​(java.util.Date dateCountry, java.lang.String strCodeCountry)
      get country by code and date
      java.lang.String getId()
      Gives the id.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeoCodesLocal

        public GeoCodesLocal()
    • Method Detail

      • getId

        public java.lang.String getId()
        Description copied from interface: IGeoCodeProvider
        Gives the id. The id is used to find which geoCode providers have to be used in the task. The id must be unique among the geoCode providers.
        Specified by:
        getId in interface IGeoCodeProvider
        Returns:
        the id
      • getCityByDateAndCode

        public java.util.Optional<City> getCityByDateAndCode​(java.util.Date dateCity,
                                                             java.lang.String strCode)
        Description copied from interface: IGeoCodeProvider
        get city by code and date
        Specified by:
        getCityByDateAndCode in interface IGeoCodeProvider
        Returns:
        the city (as Optional)
      • getCityByCode

        public java.util.Optional<City> getCityByCode​(java.lang.String strCode)
        Description copied from interface: IGeoCodeProvider
        get city by code
        Specified by:
        getCityByCode in interface IGeoCodeProvider
        Returns:
        the city (as Optional)
      • getCitiesCodesListByDate

        public java.util.List<java.lang.String> getCitiesCodesListByDate​(java.util.Date dateCity)
        Description copied from interface: IGeoCodeProvider
        Get list of city codes by date
        Specified by:
        getCitiesCodesListByDate in interface IGeoCodeProvider
        Returns:
      • getCitiesListByNameAndDate

        public java.util.List<City> getCitiesListByNameAndDate​(java.lang.String strSearchBeginningVal,
                                                               java.util.Date dateCity)
        Description copied from interface: IGeoCodeProvider
        search cities by name beginning with a string and a date
        Specified by:
        getCitiesListByNameAndDate in interface IGeoCodeProvider
        Returns:
        the list
      • getCitiesListByNameAndDateLike

        public java.util.List<City> getCitiesListByNameAndDateLike​(java.lang.String strSearchBeginningVal,
                                                                   java.util.Date dateCity)
        Description copied from interface: IGeoCodeProvider
        search cities by name beginning with a string and a date
        Specified by:
        getCitiesListByNameAndDateLike in interface IGeoCodeProvider
        Returns:
        the list
      • getCitiesListByNameLike

        public java.util.List<City> getCitiesListByNameLike​(java.lang.String strSearchBeginningVal)
        Description copied from interface: IGeoCodeProvider
        search cities by name beginning with a string
        Specified by:
        getCitiesListByNameLike in interface IGeoCodeProvider
        Returns:
        the list
      • getCitiesListByName

        public java.util.List<City> getCitiesListByName​(java.lang.String strSearchBeginningVal)
        Description copied from interface: IGeoCodeProvider
        search cities by exact name
        Specified by:
        getCitiesListByName in interface IGeoCodeProvider
        Returns:
        the list
      • getCountryByCodeAndDate

        public java.util.Optional<Country> getCountryByCodeAndDate​(java.util.Date dateCountry,
                                                                   java.lang.String strCodeCountry)
        Description copied from interface: IGeoCodeProvider
        get country by code and date
        Specified by:
        getCountryByCodeAndDate in interface IGeoCodeProvider
        Returns:
        the country (as Optional)