java.lang.Object | +--com.ibm.commerce.registry.ViewRegistry
The ViewRegistry is the runtime cache of the VIEWREG table.
Field Summary | |
---|---|
protected
static java.util.Hashtable |
cache |
protected
static ViewRegistry |
singleton |
Fields inherited from interface com.ibm.commerce.registry. Registry |
COPYRIGHT |
Constructor Summary | |
---|---|
ViewRegistry() Constructor ViewRegistry. |
Method Summary | |
---|---|
void |
addElement(
ViewRegistryEntry regEntry) Adds a ViewRegistryEntry to the cache. |
void |
addElement(
ViewRegistryEntry regEntry, java.util.Hashtable aCache) Adds a ViewRegistryEntry to the given cache. |
java.lang.String |
createKey(java.lang.String view, java.lang.Integer storeId,
java.lang.String deviceId) Creates a search key for the cache. |
ViewRegistryEntry |
find(java.lang.String name, java.lang.Integer storeId,
java.lang.Integer device) Looks up a view command based on view name, store id and device id. |
void |
initialize() Initializes the ViewRegistry. |
void |
refresh() Refreshes the view registry from the database. |
void |
removeAllElements() Removes all view registry entries from the cache. |
boolean |
removeElement(
ViewRegistryEntry entry) Removes an ViewRegistryEntry from the cache. |
static
ViewRegistry |
singleton() Returns a singleton view registry object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
protected static java.util.Hashtable cache
protected static ViewRegistry singleton
Constructor Detail |
---|
public ViewRegistry()
Method Detail |
---|
public void addElement(ViewRegistryEntry regEntry)
regEntry
- the ViewRegistryEntry to be added to the
cachepublic void addElement(ViewRegistryEntry regEntry, java.util.Hashtable aCache)
regEntry
- entry to be added to the cacheaCache
- the cache to be usedpublic java.lang.String createKey(java.lang.String view, java.lang.Integer storeId, java.lang.String deviceId)
view
- view namestoreId
- store IddeviceId
- device format idpublic ViewRegistryEntry find(java.lang.String name, java.lang.Integer storeId, java.lang.Integer device) throws ECException
name
- the name of the requeststoreId
- reference number of the storedevice
- device type idECException
public 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 boolean removeElement(ViewRegistryEntry entry)
entry
- the ViewRegistryEntry to be removedpublic static ViewRegistry singleton()