@DependsOn(value="deploymentTransactionSupport") @Service public class DictionaryCacheImpl extends Object implements DictionaryCache
General structure of a simple dictionary: KEY (LIC) - independent language key VALUE- value
instance| Constructor and Description |
|---|
DictionaryCacheImpl(LocaleService localeService,
Optional<List<DictionaryCacheLoader>> loaders) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(LOV key,
IDictionaryType type) |
boolean |
containsKey(String key,
IDictionaryType type) |
boolean |
containsValue(String value,
IDictionaryType type) |
SimpleDictionary |
get(IDictionaryType type,
String key) |
SimpleDictionary |
get(String type,
String key) |
Collection<SimpleDictionary> |
getAll(IDictionaryType dictionaryType) |
Collection<SimpleDictionary> |
getAll(String dictionaryType) |
String |
getDescription(String key,
IDictionaryType type) |
LOV |
lookupName(String val,
IDictionaryType type)
Finding a key in the dictionary by value
|
LOV |
lookupName(String val,
String type) |
String |
lookupValue(LOV key,
IDictionaryType type)
Finding dictionary values by key
|
String |
lookupValue(LOV key,
String type) |
String |
lookupValueNullable(LOV key,
IDictionaryType type) |
void |
reload() |
Set<String> |
types() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdictionarypublic DictionaryCacheImpl(LocaleService localeService, Optional<List<DictionaryCacheLoader>> loaders)
public void reload()
reload in interface DictionaryCachepublic SimpleDictionary get(IDictionaryType type, String key)
get in interface DictionaryCachetype - dictionary typekey - dictionary keypublic SimpleDictionary get(String type, String key)
get in interface DictionaryCachepublic Collection<SimpleDictionary> getAll(IDictionaryType dictionaryType)
getAll in interface DictionaryCachedictionaryType - dictionary typepublic Collection<SimpleDictionary> getAll(String dictionaryType)
getAll in interface DictionaryCachepublic String lookupValue(LOV key, IDictionaryType type)
lookupValue in interface DictionaryCachekey - keytype - dictionary typepublic String lookupValue(LOV key, String type)
lookupValue in interface DictionaryCachepublic String lookupValueNullable(LOV key, IDictionaryType type)
lookupValueNullable in interface DictionaryCachepublic LOV lookupName(String val, IDictionaryType type)
lookupName in interface DictionaryCacheval - valuetype - dictionary typepublic LOV lookupName(String val, String type)
lookupName in interface DictionaryCachepublic boolean containsKey(String key, IDictionaryType type)
containsKey in interface DictionaryCachepublic boolean containsKey(LOV key, IDictionaryType type)
containsKey in interface DictionaryCachepublic boolean containsValue(String value, IDictionaryType type)
containsValue in interface DictionaryCachepublic String getDescription(String key, IDictionaryType type)
getDescription in interface DictionaryCachepublic Set<String> types()
types in interface DictionaryCacheCopyright © 2018–2021 Tesler. All rights reserved.