Interface I18NDao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultI18NDao,I18NDaoMock
@Deprecated public interface I18NDao extends Dao
Deprecated.since ages - replaced by more specific Daos likeCountryDaoGeneralLanguageModelspecific services.- Since:
- 4.0
- Spring Bean ID:
- languageDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.Set<LanguageModel>findAllActiveLanguages()Deprecated.since ages - as of release 4.3, not supported anymorejava.util.Set<CountryModel>findAllCountries()Deprecated.since ages - as of release 4.3, please useCountryDao.findCountries()java.util.Set<CurrencyModel>findAllCurrencies()Deprecated.since ages - as of release 4.3, please useCurrencyDao.findCurrencies()java.util.Set<LanguageModel>findAllLanguages()Deprecated.since ages - as of release 4.3, please useLanguageDao.findLanguages()java.util.Set<RegionModel>findAllRegions()Deprecated.since ages - as of release 4.3, please useRegionDao.findRegions()CurrencyModelfindBaseCurrency()Deprecated.since ages - as of release 4.3, please useCurrencyDao.findBaseCurrencies()CountryModelfindCountry(java.lang.String isocode)Deprecated.since ages - as of release 4.3, please useCountryDao.findCountriesByCode(String)CurrencyModelfindCurrency(java.lang.String isocode)Deprecated.since ages - as of release 4.3, please useCurrencyDao.findCurrenciesByCode(String)LanguageModelfindLanguage(java.lang.String isocode)Deprecated.since ages - as of release 4.3, please useLanguageDao.findLanguagesByCode(String)RegionModelfindRegion(java.lang.String code)Deprecated.since ages - as of release 4.3, please useRegionDao.findRegionsByCountryAndCode(CountryModel, String)
-
-
-
Method Detail
-
findLanguage
@Deprecated LanguageModel findLanguage(java.lang.String isocode)
Deprecated.since ages - as of release 4.3, please useLanguageDao.findLanguagesByCode(String)Returns a
LanguageModelfor the givenisocode.- Parameters:
isocode- the code to be searched for- Returns:
nullif for the isocode noLanguageModel
-
findAllLanguages
@Deprecated java.util.Set<LanguageModel> findAllLanguages()
Deprecated.since ages - as of release 4.3, please useLanguageDao.findLanguages()Returns a
SetofLanguageModels which contains all Languages of the current system.- Returns:
- an empty Set if no language exists.
-
findAllActiveLanguages
@Deprecated java.util.Set<LanguageModel> findAllActiveLanguages()
Deprecated.since ages - as of release 4.3, not supported anymoreReturns a
SetofLanguageModels which are Languages of the current systen AND which are active.- Returns:
- a subset of
findAllLanguages()
-
findCurrency
@Deprecated CurrencyModel findCurrency(java.lang.String isocode)
Deprecated.since ages - as of release 4.3, please useCurrencyDao.findCurrenciesByCode(String)- Parameters:
isocode- the code to be searched for- Returns:
- a
CurrencyModelfor the givenisocode. - Throws:
UnknownIdentifierException- if no Currency with thisisocodewas found.
-
findBaseCurrency
@Deprecated CurrencyModel findBaseCurrency()
Deprecated.since ages - as of release 4.3, please useCurrencyDao.findBaseCurrencies()Returns the base currency (
CurrencyModel.getBase()) of this system ornullif no base currency is set. There should be always one suchCurrencyModelin the hybris Platform. The base currency should be the most likely-to-us currency.- Returns:
- the base
CurrencyModelornullif no base currency is set
-
findAllCurrencies
@Deprecated java.util.Set<CurrencyModel> findAllCurrencies()
Deprecated.since ages - as of release 4.3, please useCurrencyDao.findCurrencies()Returns a
Setof allCurrencyModel.- Returns:
- all currencymodels
-
findCountry
@Deprecated CountryModel findCountry(java.lang.String isocode)
Deprecated.since ages - as of release 4.3, please useCountryDao.findCountriesByCode(String)Returns the
CountryModelwith the specifiedisocode.- Parameters:
isocode- the isocode of the searchedCountryModel- Returns:
- the
CountryModelwith the specified isocode - Throws:
UnknownIdentifierException- if no Country with thisisocodewas found.
-
findAllCountries
@Deprecated java.util.Set<CountryModel> findAllCountries()
Deprecated.since ages - as of release 4.3, please useCountryDao.findCountries()Returns a
Setof allCountryModels.- Returns:
- a
Setof all countries
-
findRegion
@Deprecated RegionModel findRegion(java.lang.String code)
Deprecated.since ages - as of release 4.3, please useRegionDao.findRegionsByCountryAndCode(CountryModel, String)Returns the
RegionModelwith the specified code.- Parameters:
code- the code of the searchedRegionModel- Returns:
- the
RegionModelwith the specified code - Throws:
UnknownIdentifierException- if there exists noRegionModelwith the specified code
-
findAllRegions
@Deprecated java.util.Set<RegionModel> findAllRegions()
Deprecated.since ages - as of release 4.3, please useRegionDao.findRegions()Returns a
Setof allRegionModels, regardless whichCountryModelthey belong to.- Returns:
- a
Setof all RegionModels
-
-