Package adams.gui.selection
Class AbstractFieldCacheManager
- java.lang.Object
-
- adams.gui.selection.AbstractFieldCacheManager
-
- All Implemented Interfaces:
Serializable
public abstract class AbstractFieldCacheManager extends Object implements Serializable
Manages the field caches.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Hashtable<String,AbstractFieldCacheItem>
m_Items
the cache items to manage.
-
Constructor Summary
Constructors Constructor Description AbstractFieldCacheManager()
Initializes manager.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
clear()
Clears the cache.AbstractFieldCacheItem
get(FieldProvider provider)
Retrieves the cache item for the specified database connection, creates it if necessary.protected abstract AbstractFieldCacheItem
newFieldCacheItem(FieldProvider provider)
Creates a new cache item.
-
-
-
Field Detail
-
m_Items
protected Hashtable<String,AbstractFieldCacheItem> m_Items
the cache items to manage.
-
-
Method Detail
-
clear
public void clear()
Clears the cache.
-
newFieldCacheItem
protected abstract AbstractFieldCacheItem newFieldCacheItem(FieldProvider provider)
Creates a new cache item.- Parameters:
provider
- the provider for which to create a new item
-
get
public AbstractFieldCacheItem get(FieldProvider provider)
Retrieves the cache item for the specified database connection, creates it if necessary.- Parameters:
provider
- the field provider- Returns:
- the cache item
-
-