|
DODS 7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.enhydra.dods.cache.ConfigurationAdministration
org.enhydra.dods.cache.DOCache
public abstract class DOCache
This abstract class contains data and mechanisms needed for caching data objects (or DataStruct objects) by their OIDs and provides cache configuration and administration.
| Constructor Summary | |
|---|---|
DOCache()
|
|
| Method Summary | |
|---|---|
abstract GenericDO |
addDO(GenericDO newDO)
Adds DO (data object) to the cache. |
abstract GenericDO |
deleteDO(GenericDO DO)
Deletes DO from the cache. |
abstract java.util.Map |
getCacheContent()
Returns cache (data or DataStruct) content. |
abstract GenericDO |
getDOByHandle(java.lang.String handle)
Returns data object whose String representation of OID is parameter handle. |
abstract boolean |
isMulti()
Returns information if multi databases are supported. |
abstract DOCache |
newInstance()
Creates DOCache instance. |
abstract GenericDO |
removeDO(GenericDO DO)
Removes DO (data object) from the cache. |
abstract GenericDO |
removeDO(java.lang.String handle)
Removes DO (data object) from the cache. |
abstract boolean |
toReconfigure()
Checks wheather cache reconfiguration needs to be done. |
abstract GenericDO |
updateDO(GenericDO DO)
Updates cached DO, or inserts DO in the cache if it didn't exist in the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOCache()
| Method Detail |
|---|
public abstract DOCache newInstance()
throws CacheObjectException
CacheObjectExceptionpublic abstract java.util.Map getCacheContent()
Map of data objects (or DataStruct
objects).public abstract boolean isMulti()
public abstract boolean toReconfigure()
public abstract GenericDO addDO(GenericDO newDO)
newDO - Data object that will be added to the cache.
public abstract GenericDO removeDO(GenericDO DO)
DO - Data object that will be removed from the cache.
public abstract GenericDO removeDO(java.lang.String handle)
handle - Cache handle of DO (data object) that will be removed from
the cache. The form of cache handle is:
"public abstract GenericDO updateDO(GenericDO DO)
DO - Data object that will be updated (or inserted if didn't
exist in the cache).
public abstract GenericDO deleteDO(GenericDO DO)
DO - Data object that will be deleted from the cache.
public abstract GenericDO getDOByHandle(java.lang.String handle)
handle - String representation of OID of object that is being
searched in the cache.
|
DODS 7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||