Project Wonder 5.0

er.extensions.eof
Class ERXFetchResultCache

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

public class ERXFetchResultCache
extends java.lang.Object

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

Author:
ak

Constructor Summary
ERXFetchResultCache()
           
 
Method Summary
protected  long cacheTime(com.webobjects.foundation.NSArray eos, com.webobjects.eocontrol.EOFetchSpecification fs)
          Returns the time the result should stay in the cache.
protected  com.webobjects.foundation.NSArray<java.lang.String> excludedEntities()
          Returns a list of entities that should not be cached.
 com.webobjects.foundation.NSArray<? extends com.webobjects.eocontrol.EOEnterpriseObject> objectsForFetchSpecification(com.webobjects.eoaccess.EODatabaseContext dbc, com.webobjects.eocontrol.EOEditingContext ec, com.webobjects.eocontrol.EOFetchSpecification fs)
          Returns an array of EOs that where cached for the given fetch specification or null.
 void setObjectsForFetchSpecification(com.webobjects.eoaccess.EODatabaseContext dbc, com.webobjects.eocontrol.EOEditingContext ec, com.webobjects.foundation.NSArray<?> eos, com.webobjects.eocontrol.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 com.webobjects.foundation.NSArray<? extends com.webobjects.eocontrol.EOEnterpriseObject> objectsForFetchSpecification(com.webobjects.eoaccess.EODatabaseContext dbc,
                                                                                                                             com.webobjects.eocontrol.EOEditingContext ec,
                                                                                                                             com.webobjects.eocontrol.EOFetchSpecification fs)
Returns an array of EOs that where cached for the given fetch specification or null.

Parameters:
ec -
fs -

excludedEntities

protected com.webobjects.foundation.NSArray<java.lang.String> excludedEntities()
Returns a list of entities that should not be cached.


cacheTime

protected long cacheTime(com.webobjects.foundation.NSArray eos,
                         com.webobjects.eocontrol.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(com.webobjects.eoaccess.EODatabaseContext dbc,
                                            com.webobjects.eocontrol.EOEditingContext ec,
                                            com.webobjects.foundation.NSArray<?> eos,
                                            com.webobjects.eocontrol.EOFetchSpecification fs)
Registers eos for a given fetch spec.

Parameters:
ec -
dbc -
eos -
fs -

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

Copyright © 2002 – 2007 Project Wonder.