java.lang.Object | +--com.ibm.commerce.registry.CommandRegistry
The CommandRegistry is the runtime cache of the CMDREG table.
Field Summary | |
---|---|
protected
static java.util.Hashtable |
cache |
protected
static CommandRegistry |
singleton |
Fields inherited from interface com.ibm.commerce.registry. Registry |
COPYRIGHT |
Constructor Summary | |
---|---|
CommandRegistry() Constructor for CommandRegistry. |
Method Summary | |
---|---|
void |
addElement(
CommandRegistryEntry regEntry) Adds a CommandRegistryEntry to the active cache. |
void |
addElement(
CommandRegistryEntry regEntry, java.util.Hashtable aCache) Adds a CommandRegistryEntry to the cache object. |
java.lang.String |
createKey(java.lang.String name,
java.lang.Integer storeId) Creates a search key. |
CommandRegistryEntry |
find(java.lang.String name, java.lang.Integer storeId) Looks up an command entry based on the name and store entity id. |
void |
initialize() Initializes the command registry. |
void |
refresh() Refreahes the command registry from the database. |
void |
removeAllElements() Removes all CommandRegistryEntries from the list. |
void |
removeElement(
CommandRegistryEntry entry) Removes an CommandRegistryEntry from the list. |
static
CommandRegistry |
singleton() Returns a singleton object of the command registry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
protected static CommandRegistry singleton
protected static java.util.Hashtable cache
Constructor Detail |
---|
public CommandRegistry()
Method Detail |
---|
public void addElement(CommandRegistryEntry regEntry)
regEntry
- the CommandRegistryEntry to be added to the
cachepublic void addElement(CommandRegistryEntry regEntry, java.util.Hashtable aCache)
regEntry
- the CommandRegistryEntry to be added to the
cacheaCache
- a cache objectpublic CommandRegistryEntry find(java.lang.String name, java.lang.Integer storeId) throws ECException
name
- the interface name of the commandstoreId
- reference number of the storeECException
- - generates _ERR_GENERIC error messagepublic void initialize() throws java.lang.Exception
initialize
in interface
Registry
java.lang.Exception
public void refresh() throws java.lang.Exception
refresh
in interface
Registry
java.lang.Exception
public void removeAllElements()
public void removeElement(CommandRegistryEntry entry)
entry
- the entry to be removed from the
listpublic java.lang.String createKey(java.lang.String name, java.lang.Integer storeId)
name
- url namestoreId
- store Idpublic static CommandRegistry singleton()