| Modifier and Type | Method and Description |
|---|---|
void |
addElement(java.lang.Integer langId,
java.lang.Object bean)
This method adds a
LanguageAccessBean to the local cache. |
void |
addElement(java.lang.Integer langId,
java.lang.Object bean,
java.util.Hashtable aCache)
This method adds a
LanguageAccessBean to the given cache. |
LanguageAccessBean |
find(java.lang.Integer langId)
This method finds a
Language object from the Language Registry. |
java.util.Enumeration |
getAll()
This method returns an
Enumeration of all LanguageAccessBean objects defined. |
java.lang.String |
getEncoding(java.lang.Integer langId)
This method returns the encoding string associated with a language id.
|
java.util.Locale |
getLocale(java.lang.Integer langId)
This method returns the locale associated with the
Language object from the Language Registry. |
void |
initialize()
This method initializes the
LanguageRegistry. |
void |
refresh()
This method refreshes the local cache of
Language objects by retrieving them from
the database. |
void |
removeAllElements()
This method removes all
LanguageAccessBean objects from the local cache. |
void |
removeElement(java.lang.Integer langId)
This method removes an
LanguageAccessBean object from the local cache. |
static LanguageRegistry |
singleton()
This method returns a singleton
LanguageRegistry object |
public void addElement(java.lang.Integer langId,
java.lang.Object bean)
LanguageAccessBean to the local cache.langId - The language id.bean - The LanguageAccessBean to be added to the local cache.public void addElement(java.lang.Integer langId,
java.lang.Object bean,
java.util.Hashtable aCache)
LanguageAccessBean to the given cache.langId - The language id.bean - The LanguageAccessBean to be added.aCache - The cache object to be used.public LanguageAccessBean find(java.lang.Integer langId)
Language object from the Language Registry.langId - The language id.LanguageAccessBean object.public java.util.Enumeration getAll()
Enumeration of all LanguageAccessBean objects defined.Enumeration of all LanguageAccessBean objects.public java.lang.String getEncoding(java.lang.Integer langId)
public java.util.Locale getLocale(java.lang.Integer langId)
Language object from the Language Registry.public void initialize()
throws java.lang.Exception
LanguageRegistry. This will include the initialization of the
WcsApp with this instance of the registry.initialize in interface Registryjava.lang.Exceptionpublic void refresh()
throws java.lang.Exception
Language objects by retrieving them from
the database.public void removeAllElements()
LanguageAccessBean objects from the local cache.public void removeElement(java.lang.Integer langId)
LanguageAccessBean object from the local cache.langId - The language id associated with the LanguageAccessBean to be removed.public static LanguageRegistry singleton()
LanguageRegistry objectLanguageRegistry object.