leon.data.cache
Class LyNoCache
java.lang.Object
leon.data.LyCache
leon.data.cache.LyObjectCache
leon.data.cache.LyNoCache
public class LyNoCache
- extends LyObjectCache
This class implements a cache that never contains objects !
Each time objects are requested the response is negative to force reload of objects on data
provider.
Field Summary |
static java.lang.String |
__VERSION
File versioin |
Method Summary |
void |
allowLoaded(boolean allowLoaded)
Setter for the allow loaded attribute. |
boolean |
isLoaded()
Tests whether this cache is completely loaded or not. |
Methods inherited from class leon.data.LyCache |
clearUnknownIdsCache, contains, contains, getCacheClass, getCount, getEnvironment, getObject, getObjectList, getObjects, getObjects, getPolicy, rehash, setLoaded |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
__VERSION
public static final java.lang.String __VERSION
- File versioin
- See Also:
- Constant Field Values
LyNoCache
public LyNoCache(LyClass cacheClass,
LyInfoCache policy)
- Constructor of an empty cache.
- Parameters:
cacheClass
- classDescription associated with the dataSource.policy
- Description of th epolicy of thsi cache.
isLoaded
public boolean isLoaded()
- Tests whether this cache is completely loaded or not.
- Overrides:
isLoaded
in class LyCache
- Returns:
- True if the cache is loaded, false otherwise.
allowLoaded
public void allowLoaded(boolean allowLoaded)
- Setter for the allow loaded attribute.
For a no cache, allowLoaded is forced to be false;
- Specified by:
allowLoaded
in class LyCache
- Parameters:
allowLoaded
- the value of the allowLoaded attribute
Website: W4 S.A., contact us: support@w4global.com