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