java.lang.Objectcom.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
com.ibm.commerce.registry.StoreRegistry
The Store registry contains the runtime cache of StoreAccessBean objects.
Field Summary | |
protected static StoreRegistry | singleton |
protected int | storeSize |
Constructor Summary | |
StoreRegistry() Store registry constructor. |
Method Summary | |
void | addElement(java.lang.Integer storeId, StoreAccessBean bean, java.util.Hashtable aCache) Deprecated. |
java.lang.Object | createKey(java.lang.String strKey) Creates a cache key based on a key string |
java.lang.String | createKeyString(TypedProperty prop) Creates a cache key based on input parameters |
StoreAccessBean | find(java.lang.Integer storeId) Looks up a StoreAccessBean object from the store registry. |
int | getStoreCount() Returns a count of all the stores defined. |
java.util.Enumeration | getStoreElements() Deprecated. |
void | initialize() Initializes the store registry. |
boolean | isStoreGroup(java.lang.Integer storeId) Check if an integer is a store group ID. |
void | populate(LRUDynamicHashtable aCache) Populates the cache with store objects from the data base. |
void | refresh() Clears the cache. |
java.lang.Object | retrieve(java.lang.Object key) Retrieves a store object from the database and add it to the cache. |
static StoreRegistry | singleton() Returns a singleton object of the store registry. |
void | update(java.lang.String action, java.lang.Object key) Updates a cached element. |
Methods inherited from class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry |
addElement, findObject, getCache, getCacheSize, getElement, getElementCount, getElements, getEvictions, getHits, getKeys, getMisses, getUsedCacheSize, removeAllElements, removeElement, setCache, setCacheSize, setInitialCapacity, setLoadFactor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static StoreRegistry singleton
protected int storeSize
Constructor Detail |
public StoreRegistry()
Method Detail |
public java.lang.String createKeyString(TypedProperty prop) throws java.lang.Exception
public java.lang.Object createKey(java.lang.String strKey) throws java.lang.Exception
public java.lang.Object retrieve(java.lang.Object key) throws java.lang.Exception
public StoreAccessBean find(java.lang.Integer storeId)
public int getStoreCount()
public java.util.Enumeration getStoreElements()
public void initialize() throws java.lang.Exception
public void refresh() throws java.lang.Exception
public void update(java.lang.String action, java.lang.Object key) throws java.lang.Exception
public void populate(LRUDynamicHashtable aCache) throws java.lang.Exception
public static StoreRegistry singleton()
public void addElement(java.lang.Integer storeId, StoreAccessBean bean, java.util.Hashtable aCache)
public boolean isStoreGroup(java.lang.Integer storeId)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.