er.caching
Class ERCEnterpriseObjectArrayCache<T extends com.webobjects.eocontrol.EOEnterpriseObject>
java.lang.Object
er.extensions.eof.ERXEnterpriseObjectArrayCache<com.webobjects.eocontrol.EOEnterpriseObject>
er.caching.ERCEnterpriseObjectArrayCache<T>
- Type Parameters:
T
-
public class ERCEnterpriseObjectArrayCache<T extends com.webobjects.eocontrol.EOEnterpriseObject>
- extends ERXEnterpriseObjectArrayCache<com.webobjects.eocontrol.EOEnterpriseObject>
Usage example:
ERCEnterpriseObjectArrayCache<Bug> cache = new
ERCEnterpriseObjectArrayCache<Bug>("Bug"); cache.setObjectsForKey(bugs,
"all"); NSArray<Bug> objects = cache.objectsForKey("all");
- Author:
- ak
Field Summary |
protected ERCachingMap<java.lang.String,com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOGlobalID>> |
_cache
|
Method Summary |
protected com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOGlobalID> |
cachedArrayForKey(java.lang.Object key)
|
void |
reset()
Resets the cache by clearing the internal map. |
protected void |
setCachedArrayForKey(com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOGlobalID> gids,
java.lang.Object key)
|
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<java.lang.String,com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOGlobalID>> _cache
ERCEnterpriseObjectArrayCache
public ERCEnterpriseObjectArrayCache(java.lang.String entityName)
ERCEnterpriseObjectArrayCache
public ERCEnterpriseObjectArrayCache(java.lang.Class<? extends com.webobjects.eocontrol.EOEnterpriseObject> c)
ERCEnterpriseObjectArrayCache
public ERCEnterpriseObjectArrayCache(java.lang.String entityName,
long timeout)
setCachedArrayForKey
protected void setCachedArrayForKey(com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOGlobalID> gids,
java.lang.Object key)
- Overrides:
setCachedArrayForKey
in class ERXEnterpriseObjectArrayCache<com.webobjects.eocontrol.EOEnterpriseObject>
cachedArrayForKey
protected com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOGlobalID> cachedArrayForKey(java.lang.Object key)
- Overrides:
cachedArrayForKey
in class ERXEnterpriseObjectArrayCache<com.webobjects.eocontrol.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<com.webobjects.eocontrol.EOEnterpriseObject>
Copyright © 2002 – 2007 Project Wonder.