java.lang.Object | +--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(com.ibm.commerce.datatype.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. |
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. |
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(com.ibm.commerce.datatype.TypedProperty prop) throws java.lang.Exception
prop
- The input propertyjava.lang.Exception
public java.lang.Object createKey(java.lang.String strKey) throws java.lang.Exception
strKey
- key as stringjava.lang.Exception
public java.lang.Object retrieve(java.lang.Object key) throws java.lang.Exception
java.lang.Exception
public StoreAccessBean find(java.lang.Integer storeId)
storeId
- store Idpublic int getStoreCount()
public java.util.Enumeration getStoreElements()
public void initialize() throws java.lang.Exception
java.lang.Exception
public void populate(LRUDynamicHashtable aCache) throws java.lang.Exception
aCache
- the cache to be populatedjava.lang.Exception
public static StoreRegistry singleton()
public void addElement(java.lang.Integer storeId, StoreAccessBean bean, java.util.Hashtable aCache)
storeId
- Integerbean
- StoreAccessBeanaCache
- Hashtablepublic boolean isStoreGroup(java.lang.Integer storeId)
storeId
- the integer to be checked.