|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.data.LyCache
leon.data.cache.LyObjectCache
leon.data.cache.LyFullCache
public class LyFullCache
This class implements a cache that loads completely the instances of the associated class on first access to data.
Normally, this kind of cache is only used for storing logical objects (LyObject).
LyObject
Nested Class Summary |
---|
Nested classes/interfaces inherited from class leon.data.LyCache |
---|
LyCache.Result |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Fields inherited from class leon.data.LyCache |
---|
NB_UNKNOWN_OBJECTS |
Constructor Summary | |
---|---|
LyFullCache(LyClass cacheClass,
LyInfoCache policy)
Constructor of a full cache. |
Method Summary | |
---|---|
void |
allowLoaded(boolean allowLoaded)
Setter for the allow loaded attribute. |
int |
getCount(LyFilter filter)
Return the number of objects matching the given filter within this cache. |
java.lang.Object |
getObject(LyObjectId objectId)
Finds an object in this cache from the specified identifier. |
LyCache.Result |
getObjects(LyFilter filter,
LySimpleObjectList list)
Adds objects to the given object list that match the specified filter. |
Methods inherited from class leon.data.cache.LyObjectCache |
---|
getObjectFromPeer, getSize, isEmpty |
Methods inherited from class leon.data.LyCache |
---|
clearUnknownIdsCache, contains, contains, getCacheClass, getEnvironment, getObjectList, getObjects, getPolicy, isLoaded, rehash, setLoaded |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyFullCache(LyClass cacheClass, LyInfoCache policy)
cacheClass
- Description of the class corresponding to objects stored in this cache.policy
- Description of th epolicy of thsi cache.Method Detail |
---|
public java.lang.Object getObject(LyObjectId objectId) throws LyNoSuchObjectException
getObject
in class LyCache
objectId
- the object if of the wanted object
LyNoSuchObjectException
- if the object is not foundpublic int getCount(LyFilter filter)
getCount
in class LyCache
filter
- the filter to check
public LyCache.Result getObjects(LyFilter filter, LySimpleObjectList list)
getObjects
in class LyCache
filter
- a filterlist
- a list of objects
public void allowLoaded(boolean allowLoaded)
allowLoaded
in class LyCache
allowLoaded
- the value of the allowLoaded attribute
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |