Project Wonder 5.0

er.caching
Class ERCEnterpriseObjectArrayCache<T extends com.webobjects.eocontrol.EOEnterpriseObject>

java.lang.Object
  extended by er.extensions.eof.ERXEnterpriseObjectArrayCache<com.webobjects.eocontrol.EOEnterpriseObject>
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class er.extensions.eof.ERXEnterpriseObjectArrayCache
ERXEnterpriseObjectArrayCache.NotFoundArray
 
Field Summary
protected  ERCachingMap<java.lang.String,com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOGlobalID>> _cache
           
 
Fields inherited from class er.extensions.eof.ERXEnterpriseObjectArrayCache
NOT_FOUND_MARKER
 
Constructor Summary
ERCEnterpriseObjectArrayCache(java.lang.Class<? extends com.webobjects.eocontrol.EOEnterpriseObject> c)
           
ERCEnterpriseObjectArrayCache(java.lang.String entityName)
           
ERCEnterpriseObjectArrayCache(java.lang.String entityName, long timeout)
           
 
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
 

Field Detail

_cache

protected ERCachingMap<java.lang.String,com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOGlobalID>> _cache
Constructor Detail

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

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>

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.