|
Protege 3.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
V
- the variable typeR
- the result set typepublic interface Cache<V,R>
This interface represents a simple cache mechanism for storing cached values either globally or on a per session basis. This cache mechanism is caching the values (of type R) of a variable (of type V). The global cache is to be interpreted as the latest data from the database. The session cache is a cache of data as found in the a transactionn for a session.
Method Summary | |
---|---|
boolean |
isCached(V var)
determines if the variable var is cached in the global cache. |
R |
readCache(V var)
If the variable var is cached then this returns the cached value. |
void |
removeCacheEntry(V var)
Invalidates the global cache for the variable var. |
void |
writeCache(V var,
R result)
Writes the value result to the global cache for the variable var. |
Method Detail |
---|
boolean isCached(V var)
var
- a variable
R readCache(V var)
var
- a variable
void writeCache(V var, R result)
var
- a variableresult
- the cached value for the variable.void removeCacheEntry(V var)
var
- a variable
|
Protege 3.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |