|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEntityCache
Defines the api for a cache that caches IBasicEntities
of a single type.
| Method Summary | |
|---|---|
void |
add(IBasicEntity entity)
|
void |
cleanupCache()
Purge stale entries from the cache. |
void |
clearCache()
Remove all entries from the cache. |
IBasicEntity |
get(java.lang.String key)
|
java.lang.Class |
getEntityType()
|
void |
remove(java.lang.String entityKey)
|
int |
size()
Answers the number of entries in the cache. |
void |
update(IBasicEntity entity)
|
| Method Detail |
|---|
void add(IBasicEntity entity)
throws CachingException
entity - - the entity to be cached.
CachingException
void cleanupCache()
throws CachingException
CachingException
void clearCache()
throws CachingException
CachingExceptionIBasicEntity get(java.lang.String key)
key - the key of the entity.
java.lang.Class getEntityType()
for known types.
void remove(java.lang.String entityKey)
throws CachingException
entityKey - - the key of the entity to be un-cached.
CachingExceptionint size()
void update(IBasicEntity entity)
throws CachingException
entity - - the entity to be updated in the cache.
CachingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||