|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.registry.ViewRegistry
This is the ViewRegistry.
Field Summary | |
protected static ViewRegistry |
singleton
|
protected static java.util.Hashtable |
viewByStore
|
Fields inherited from interface com.ibm.commerce.registry.Registry |
COPYRIGHT |
Constructor Summary | |
ViewRegistry()
ViewRegistry constructor comment. |
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. |
ViewRegistryEntry |
find(java.lang.String name,
java.lang.Integer storeId,
java.lang.Integer device)
This method will lookup a view command based on view name, store id and device id. |
void |
initialize()
Initializes the ViewRegistry. |
void |
refresh()
This method refresh 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()
This method 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 ViewRegistry singleton
protected static java.util.Hashtable viewByStore
Constructor Detail |
public ViewRegistry()
Method Detail |
public void addElement(ViewRegistryEntry regEntry)
obj
- the ViewRegistryEntry to be added to the cachepublic void addElement(ViewRegistryEntry regEntry, java.util.Hashtable aCache)
obj
- ViewRegistryEntry - entry to be added to the cacheaCache
- Hashtable - the cache to be usedpublic java.lang.String createKey(java.lang.String view, java.lang.Integer storeId, java.lang.String deviceId)
view
- java.lang.String - view namestoreId
- java.lang.Integer - store IddeviceId
- java.lang.Integer - device format idpublic ViewRegistryEntry find(java.lang.String name, java.lang.Integer storeId, java.lang.Integer device)
name
- java.lang.String the name of the requeststoreId
- java.lang.Integer reference number of the storedevice
- java.lang.String device type idpublic 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)
obj
- the ViewRegistryEntry to be removedpublic static ViewRegistry singleton()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |