Class I18NDaoMock
java.lang.Object
de.hybris.platform.servicelayer.i18n.I18NDaoMock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindCountry(String isocode) findCurrency(String isocode) findLanguage(String isocode) findRegion(String code)
-
Constructor Details
-
I18NDaoMock
public I18NDaoMock()
-
-
Method Details
-
findLanguage
- Specified by:
findLanguagein interfaceI18NDao- Parameters:
isocode- the code to be searched for- Returns:
nullif for the isocode noLanguageModel
-
findAllActiveLanguages
- Specified by:
findAllActiveLanguagesin interfaceI18NDao- Returns:
- a subset of
I18NDao.findAllLanguages()
-
findAllLanguages
- Specified by:
findAllLanguagesin interfaceI18NDao- Returns:
- an empty Set if no language exists.
-
findAllCountries
- Specified by:
findAllCountriesin interfaceI18NDao- Returns:
- a
Setof all countries
-
findAllCurrencies
- Specified by:
findAllCurrenciesin interfaceI18NDao- Returns:
- all currencymodels
-
findAllRegions
- Specified by:
findAllRegionsin interfaceI18NDao- Returns:
- a
Setof all RegionModels
-
findBaseCurrency
- Specified by:
findBaseCurrencyin interfaceI18NDao- Returns:
- the base
CurrencyModelornullif no base currency is set
-
findCountry
- Specified by:
findCountryin interfaceI18NDao- Parameters:
isocode- the isocode of the searchedCountryModel- Returns:
- the
CountryModelwith the specified isocode
-
findCurrency
- Specified by:
findCurrencyin interfaceI18NDao- Parameters:
isocode- the code to be searched for- Returns:
- a
CurrencyModelfor the givenisocode.
-
findRegion
- Specified by:
findRegionin interfaceI18NDao- Parameters:
code- the code of the searchedRegionModel- Returns:
- the
RegionModelwith the specified code
-