au.com.zip.cs
Interface Cachable

All Known Implementing Classes:
AsyncObject, CachableAdaptor, EntityAdaptor, FieldNames, Group, Record, RelatedEntity, Table, UserEntity, WrappedEntity

public interface Cachable

A interface for objects that cache data.

Author:
Cameron Simpson <cs@zip.com.au> 7mar2003

Method Summary
 void addSubCache(Cachable c)
          Add a subsidiary Cachable object whose cache is to be flushed when our own cache is flushed.
 void cacheFlush()
          Forget any cached data.
 void removeSubCache(Cachable c)
          Remove a subsidiary cache.
 

Method Detail

cacheFlush

void cacheFlush()
Forget any cached data.


addSubCache

void addSubCache(Cachable c)
Add a subsidiary Cachable object whose cache is to be flushed when our own cache is flushed.

Parameters:
c - the subsidiary Cachable object

removeSubCache

void removeSubCache(Cachable c)
Remove a subsidiary cache.

Parameters:
c - the subsidiary Cachable object