Class DefaultI18NDao

  • All Implemented Interfaces:
    I18NDao, Dao

    @Deprecated(since="ages",
                forRemoval=true)
    public class DefaultI18NDao
    extends AbstractItemDao
    implements I18NDao
    Deprecated, for removal: This API element is subject to removal in a future version.
    since ages - replaced by more specific Daos likeDefaultCountryDao
    Default implementation of the I18NDao.
    • Constructor Detail

      • DefaultI18NDao

        public DefaultI18NDao()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • getC2lManager

        protected C2LManager getC2lManager()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • findAllLanguages

        public java.util.Set<LanguageModel> findAllLanguages()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        findAllLanguages in interface I18NDao
        Returns:
        an empty Set if no language exists.
      • findLanguage

        public LanguageModel findLanguage​(java.lang.String isocode)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        findLanguage in interface I18NDao
        Parameters:
        isocode - the code to be searched for
        Returns:
        null if for the isocode no LanguageModel
      • findCountry

        public CountryModel findCountry​(java.lang.String iso)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        findCountry in interface I18NDao
        Parameters:
        iso - the isocode of the searched CountryModel
        Returns:
        the CountryModel with the specified isocode
      • findCurrency

        public CurrencyModel findCurrency​(java.lang.String isocode)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        findCurrency in interface I18NDao
        Parameters:
        isocode - the code to be searched for
        Returns:
        a CurrencyModel for the given isocode.
      • findAllCurrencies

        public java.util.Set<CurrencyModel> findAllCurrencies()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        findAllCurrencies in interface I18NDao
        Returns:
        all currencymodels
      • findAllCountries

        public java.util.Set<CountryModel> findAllCountries()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        findAllCountries in interface I18NDao
        Returns:
        a Set of all countries
      • findAllRegions

        public java.util.Set<RegionModel> findAllRegions()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        findAllRegions in interface I18NDao
        Returns:
        a Set of all RegionModels
      • findBaseCurrency

        public CurrencyModel findBaseCurrency()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        findBaseCurrency in interface I18NDao
        Returns:
        the base CurrencyModel or null if no base currency is set
      • findRegion

        public RegionModel findRegion​(java.lang.String code)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        findRegion in interface I18NDao
        Parameters:
        code - the code of the searched RegionModel
        Returns:
        the RegionModel with the specified code