Project Wonder 5.0.0.8795

er.extensions.eof
Class ERXFetchResultCache

java.lang.Object
  extended by er.extensions.eof.ERXFetchResultCache

public class ERXFetchResultCache
extends Object

Transparent cache for fetch results, uses ERXFetchSpecifictation.identifier() as a key.

Author:
ak

Constructor Summary
ERXFetchResultCache()
           
 
Method Summary
protected  long cacheTime(NSArray eos, EOFetchSpecification fs)
          Returns the time the result should stay in the cache.
protected  NSArray<String> excludedEntities()
          Returns a list of entities that should not be cached.
 NSArray<? extends EOEnterpriseObject> objectsForFetchSpecification(EODatabaseContext dbc, EOEditingContext ec, EOFetchSpecification fs)
          Returns an array of EOs that where cached for the given fetch specification or null.
 void setObjectsForFetchSpecification(EODatabaseContext dbc, EOEditingContext ec, NSArray<?> eos, EOFetchSpecification fs)
          Registers eos for a given fetch spec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXFetchResultCache

public ERXFetchResultCache()
Method Detail

objectsForFetchSpecification

public NSArray<? extends EOEnterpriseObject> objectsForFetchSpecification(EODatabaseContext dbc,
                                                                          EOEditingContext ec,
                                                                          EOFetchSpecification fs)
Returns an array of EOs that where cached for the given fetch specification or null.

Parameters:
ec -
fs -

excludedEntities

protected NSArray<String> excludedEntities()
Returns a list of entities that should not be cached.


cacheTime

protected long cacheTime(NSArray eos,
                         EOFetchSpecification fs)
Returns the time the result should stay in the cache. Less or equal than zero means don't cache.

Parameters:
fs -

setObjectsForFetchSpecification

public void setObjectsForFetchSpecification(EODatabaseContext dbc,
                                            EOEditingContext ec,
                                            NSArray<?> eos,
                                            EOFetchSpecification fs)
Registers eos for a given fetch spec.

Parameters:
ec -
dbc -
eos -
fs -

Last updated: Fri, Jan 9, 2009 • 04:35 AM EST

Copyright © 2002 – 2007 Project Wonder.