public class StoreRegistry extends AbstractManagedDynamicCacheRegistry
Modifier and Type | Field and Description |
---|---|
static java.lang.String | REGISTRY_NAME
The name of this registry.
|
Constructor and Description |
---|
StoreRegistry()
This is the default constructor of this class.
|
Modifier and Type | Method and Description |
---|---|
void | addElement(java.lang.Integer storeId, StoreAccessBean bean, java.util.Hashtable aCache)
Deprecated.
|
java.lang.Object | createKey(java.lang.String strKey)
This method creates a cache key based on a key string.
|
java.lang.String | createKeyString(TypedProperty prop)
This method creates a cache key based on input parameters.
|
StoreAccessBean | find(java.lang.Integer storeId)
This method looks up a StoreAccessBean object from the store registry.
|
com.ibm.commerce.registry.StoreCopy | find(java.lang.String astrOrganizationDN, java.lang.String astrStoreName)
This method looks up a StoreCopy object from the store registry.
|
java.util.Collection | findAllStoresByUserId(java.lang.Long userId)
This method searches all stores that the administrator can manage.
|
StoreAccessBean | getStore(java.lang.Integer storeId)
This method looks up a StoreAccessBean object from the store registry.
|
int | getStoreCount()
This method returns a count of all the stores defined.
|
java.util.Enumeration | getStoreElements()
Deprecated.
|
void | initialize()
This method initializes the store registry.
|
boolean | isStoreGroup(java.lang.Integer storeId)
This method determines whether a given integer is a store group id.
|
void | populate(com.ibm.commerce.registry.LRUDynamicHashtable aCache)
This method populates the cache with store objects from the database.
|
void | refresh()
This method clears the cache.
|
java.lang.Object | retrieve(java.lang.Object key)
This method retrieves a store object from the database and adds it to the cache.
|
static StoreRegistry | singleton()
This method returns a singleton object of the store registry.
|
void | update(java.lang.String action, java.lang.Object key)
This method updates a cached element.
|
public static final java.lang.String REGISTRY_NAME
public StoreRegistry()
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 StoreAccessBean getStore(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(com.ibm.commerce.registry.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)
public com.ibm.commerce.registry.StoreCopy find(java.lang.String astrOrganizationDN, java.lang.String astrStoreName) throws ECException
public java.util.Collection findAllStoresByUserId(java.lang.Long userId) throws ECException