|
||||||||||
| 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()
Deprecated. This is the responsibility of the cache or cache manager code |
void |
clearCache()
Remove all entries from the cache. |
IBasicEntity |
get(String key)
|
Class<? extends IBasicEntity> |
getEntityType()
|
void |
remove(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
@Deprecated
void cleanupCache()
throws CachingException
CachingException
void clearCache()
throws CachingException
CachingExceptionIBasicEntity get(String key)
key - the key of the entity.
Class<? extends IBasicEntity> getEntityType()
for known types.
void remove(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 | |||||||||