|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.registry.StoreRegistry
This is the StoreRegistry.
Field Summary | |
protected java.util.Hashtable |
cache
|
protected int |
cacheSize
|
protected static StoreRegistry |
singleton
|
Fields inherited from interface com.ibm.commerce.registry.Registry |
COPYRIGHT |
Constructor Summary | |
StoreRegistry()
Store registry constructor. |
Method Summary | |
void |
addElement(java.lang.Integer storeId,
StoreAccessBean bean)
Adds a StoreAccessBeany to the cache. |
void |
addElement(java.lang.Integer storeId,
StoreAccessBean bean,
java.util.Hashtable aCache)
Adds a StoreAccessBean to the given cache. |
StoreAccessBean |
find(java.lang.Integer storeId)
This method will lookup a StoreAccessBean object from the local cache. |
int |
getStoreCount()
Returns a count of all the stores defined. |
java.util.Enumeration |
getStoreElements()
Returns an enumeration of all StoreAccessBeans stored in the store registry. |
void |
initialize()
Initialize the store registry. |
void |
refresh()
This method refresh the store access bean cache by retrieving all the store object from the database again. |
void |
removeAllElements()
Removes all cached StoreAccessBean from cache. |
void |
removeElement(java.lang.Integer storeId)
Removes a StoreAccessBean from the cache. |
static StoreRegistry |
singleton()
This method 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 java.util.Hashtable cache
protected int cacheSize
protected static StoreRegistry singleton
Constructor Detail |
public StoreRegistry()
Method Detail |
public void addElement(java.lang.Integer storeId, StoreAccessBean bean)
storeId
- Integerbean
- StoreAccessBeanpublic void addElement(java.lang.Integer storeId, StoreAccessBean bean, java.util.Hashtable aCache)
storeId
- Integerbean
- StoreAccessBeanaCache
- Hashtablepublic StoreAccessBean find(java.lang.Integer storeId)
storeId
- Integerpublic int getStoreCount()
public java.util.Enumeration getStoreElements()
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
com.ibm.commerce.registry.Registry
- public void removeAllElements()
public void removeElement(java.lang.Integer storeId)
storeId
- Integer - the store entity id.public static StoreRegistry singleton()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |