er.caching
Class ERCEnterpriseObjectArrayCache<T extends EOEnterpriseObject>
java.lang.Object
er.extensions.eof.ERXEnterpriseObjectArrayCache<EOEnterpriseObject>
er.caching.ERCEnterpriseObjectArrayCache<T>
- Type Parameters:
T -
public class ERCEnterpriseObjectArrayCache<T extends EOEnterpriseObject>
- extends ERXEnterpriseObjectArrayCache<EOEnterpriseObject>
Usage example:
ERCEnterpriseObjectArrayCache<Bug> cache = new
ERCEnterpriseObjectArrayCache<Bug>("Bug"); cache.setObjectsForKey(bugs,
"all"); NSArray<Bug> objects = cache.objectsForKey("all");
- Author:
- ak
| Methods inherited from class er.extensions.eof.ERXEnterpriseObjectArrayCache |
clearCaches, editingContextDidSaveChanges, entityName, entityNameForClass, fetchTime, handleUnsuccessfullQueryForKey, isNotFound, objectsForKey, registerForNotifications, setObjectsForKey, timeout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_cache
protected ERCachingMap<String,NSArray<EOGlobalID>> _cache
ERCEnterpriseObjectArrayCache
public ERCEnterpriseObjectArrayCache(String entityName)
ERCEnterpriseObjectArrayCache
public ERCEnterpriseObjectArrayCache(Class<? extends EOEnterpriseObject> c)
ERCEnterpriseObjectArrayCache
public ERCEnterpriseObjectArrayCache(String entityName,
long timeout)
setCachedArrayForKey
protected void setCachedArrayForKey(NSArray<EOGlobalID> gids,
Object key)
- Overrides:
setCachedArrayForKey in class ERXEnterpriseObjectArrayCache<EOEnterpriseObject>
cachedArrayForKey
protected NSArray<EOGlobalID> cachedArrayForKey(Object key)
- Overrides:
cachedArrayForKey in class ERXEnterpriseObjectArrayCache<EOEnterpriseObject>
reset
public void reset()
- Description copied from class:
ERXEnterpriseObjectArrayCache
- Resets the cache by clearing the internal map. When the next value
is accessed, the objects are refetched.
- Overrides:
reset in class ERXEnterpriseObjectArrayCache<EOEnterpriseObject>
Copyright © 2002 – 2011 Project Wonder.