LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.data.cache
Class LyNoCache

java.lang.Object
  extended by leon.data.LyCache
      extended by leon.data.cache.LyObjectCache
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class leon.data.LyCache
LyCache.Result
 
Field Summary
static java.lang.String __VERSION
          File versioin
 
Fields inherited from class leon.data.LyCache
NB_UNKNOWN_OBJECTS
 
Constructor Summary
LyNoCache(LyClass cacheClass, LyInfoCache policy)
          Constructor of an empty cache.
 
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.cache.LyObjectCache
getObjectFromPeer, getSize, isEmpty
 
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
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File versioin

See Also:
Constant Field Values
Constructor Detail

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.
Method Detail

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

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com