net.sf.dc.core.objects.cache
Class CacheManager

java.lang.Object
  extended bynet.sf.dc.core.objects.cache.CacheManager

public final class CacheManager
extends java.lang.Object

Manages the different Cache instances

Since:
1.3
Version:
1.00
Author:
Robert-Jan van der Waals
See Also:
Cache

Field Summary
static int _SOFTWARECATEGORY
           
 
Constructor Summary
CacheManager()
           
 
Method Summary
static DCObject getObjectForDisplayValue(java.lang.String s)
          Retrieves the cached object with the given display value (toString() value)
static DCObject getObjectForID(java.lang.String id)
          Retrieves the cached object with the given ID
static DCObject[] getObjects(int index)
          Retrieves all Cached objects of the Cache with the given index
static void refresh(int index)
          Refreshes the cache for the specified cache index
static void registerUIComponent(javax.swing.JComboBox combo, int index)
          Register a combo box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_SOFTWARECATEGORY

public static final int _SOFTWARECATEGORY
See Also:
Constant Field Values
Constructor Detail

CacheManager

public CacheManager()
Method Detail

refresh

public static void refresh(int index)
Refreshes the cache for the specified cache index

Parameters:
index - cache index

getObjects

public static DCObject[] getObjects(int index)
Retrieves all Cached objects of the Cache with the given index

Parameters:
index - cache index

getObjectForDisplayValue

public static DCObject getObjectForDisplayValue(java.lang.String s)
Retrieves the cached object with the given display value (toString() value)

Parameters:
s - display value to search on

getObjectForID

public static DCObject getObjectForID(java.lang.String id)
Retrieves the cached object with the given ID

Parameters:
id - ID to search on

registerUIComponent

public static void registerUIComponent(javax.swing.JComboBox combo,
                                       int index)
Register a combo box. This combo box will be updated with the currently cached values. Everytime the cache is refreshed, this combo box will be refreshed as well.

Parameters:
combo - combo box to be registered
index - cache index