|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.dc.core.objects.cache.Cache
public class Cache
Caches data crow objects in memory. This prevents the application from having to go to the database for regurarly used values. Commonly cached objects are small and are mostly diplayed in combo boxes (such as the Software Category)
Constructor Summary | |
---|---|
Cache(DCObject o)
Initializes the cache for a specific data crow object |
Method Summary | |
---|---|
void |
clear()
Clears the cache |
DCObject[] |
getCachedObjects()
Retrieves all the cached objects |
DCObject |
getObjectForDisplayValue(java.lang.String s)
Retrieves the cached object with the given display value (toString() value) |
DCObject |
getObjectForID(java.lang.String id)
Retrieves the cached object with the given ID |
void |
load()
Retrieves the objects to be cached. |
void |
registerUIComponent(javax.swing.JComboBox combo)
Register a combo box. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cache(DCObject o)
o
- data crow object used as a referenceMethod Detail |
---|
public void registerUIComponent(javax.swing.JComboBox combo)
combo
- combo box to be registeredpublic DCObject[] getCachedObjects()
public void clear()
public DCObject getObjectForDisplayValue(java.lang.String s)
s
- display value to search onpublic DCObject getObjectForID(java.lang.String id)
id
- ID to search onpublic final void load()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |