org.gridvise.coherence.cache.entity
Class AbstractDateSensitiveCache<K,V>

java.lang.Object
  extended by org.gridvise.coherence.cache.entity.AbstractCache<K,V>
      extended by org.gridvise.coherence.cache.entity.AbstractDateSensitiveCache<K,V>
All Implemented Interfaces:
ICache<K,V>, IDateSensitiveCache<K,V>

public abstract class AbstractDateSensitiveCache<K,V>
extends AbstractCache<K,V>
implements IDateSensitiveCache<K,V>


Field Summary
 
Fields inherited from class org.gridvise.coherence.cache.entity.AbstractCache
PRESENT_FILTER
 
Constructor Summary
AbstractDateSensitiveCache()
           
AbstractDateSensitiveCache(boolean keyBased)
           
 
Method Summary
protected  void addIndexes(com.tangosol.net.NamedCache namedCache)
           
<E> Collection<E>
distictSetValuesForDate(Date effectiveDate, Enum<?> setExtractMethodName)
          Returns the a set of distinct values returned form the 'extractMethodName'-method which it self extracts a collection of objects only for the given date.
<E> Collection<E>
distictValuesForDate(Date effectiveDate, Enum<?> extractMethodName)
          Returns the a set of distinct values returned form the 'extractMethodName'-method on objects only for the given date.
 void evictDay(Date effectiveDate)
           
 void evictDaysOlderOrEquals(Date effectiveDate)
           
 Date getEarliestEffectiveDate()
           
 com.tangosol.util.ValueExtractor getEffectiveDateExtractor()
           
 com.tangosol.util.Filter getEffectiveDateFilter(Date effectiveDate)
           
 Set<Date> getEffectiveDates()
           
 Collection<K> getKeysForDate(Date effectiveDate)
           
 Date getLatestEffectiveDate()
           
 SortedSet<Date> getSortedEffectiveDates()
           
 Collection<V> getValuesForDate(Date effectiveDate)
           
 
Methods inherited from class org.gridvise.coherence.cache.entity.AbstractCache
addIndex, addIndex, addMapListener, addMapListener, addMapListener, addMapListener, addMapListener, aggregate, aggregate, clear, clearCache, distictSetValues, distictSetValues, distictSetValues, distictSetValues, distictSetValues, distictValues, distictValues, distictValues, distictValues, distictValues, distictValues, distictValues, entrySet, get, getAll, getCache, getCacheName, invoke, invokeAll, keySet, put, putAll, remove, remove, remove, removeMapListener, removeMapListener, removeMapListener, size, values, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gridvise.coherence.cache.entity.ICache
addIndex, addMapListener, addMapListener, addMapListener, addMapListener, addMapListener, aggregate, aggregate, clear, distictSetValues, distictSetValues, distictSetValues, distictValues, distictValues, distictValues, distictValues, distictValues, distictValues, distictValues, entrySet, get, getAll, getCache, invoke, invokeAll, keySet, put, putAll, remove, remove, remove, removeMapListener, removeMapListener, removeMapListener, size, values, values
 

Constructor Detail

AbstractDateSensitiveCache

public AbstractDateSensitiveCache()

AbstractDateSensitiveCache

public AbstractDateSensitiveCache(boolean keyBased)
Method Detail

evictDaysOlderOrEquals

public void evictDaysOlderOrEquals(Date effectiveDate)
Specified by:
evictDaysOlderOrEquals in interface IDateSensitiveCache<K,V>

getEffectiveDateExtractor

public com.tangosol.util.ValueExtractor getEffectiveDateExtractor()
Specified by:
getEffectiveDateExtractor in interface IDateSensitiveCache<K,V>

getEffectiveDateFilter

public com.tangosol.util.Filter getEffectiveDateFilter(Date effectiveDate)
Specified by:
getEffectiveDateFilter in interface IDateSensitiveCache<K,V>

evictDay

public void evictDay(Date effectiveDate)
Specified by:
evictDay in interface IDateSensitiveCache<K,V>

getValuesForDate

public Collection<V> getValuesForDate(Date effectiveDate)
Specified by:
getValuesForDate in interface IDateSensitiveCache<K,V>

getKeysForDate

public Collection<K> getKeysForDate(Date effectiveDate)
Specified by:
getKeysForDate in interface IDateSensitiveCache<K,V>

getLatestEffectiveDate

public Date getLatestEffectiveDate()
Specified by:
getLatestEffectiveDate in interface IDateSensitiveCache<K,V>

getEarliestEffectiveDate

public Date getEarliestEffectiveDate()
Specified by:
getEarliestEffectiveDate in interface IDateSensitiveCache<K,V>

getSortedEffectiveDates

public SortedSet<Date> getSortedEffectiveDates()
Specified by:
getSortedEffectiveDates in interface IDateSensitiveCache<K,V>

getEffectiveDates

public Set<Date> getEffectiveDates()
Specified by:
getEffectiveDates in interface IDateSensitiveCache<K,V>

addIndexes

protected void addIndexes(com.tangosol.net.NamedCache namedCache)
Specified by:
addIndexes in class AbstractCache<K,V>

distictValuesForDate

public <E> Collection<E> distictValuesForDate(Date effectiveDate,
                                              Enum<?> extractMethodName)
Description copied from interface: IDateSensitiveCache
Returns the a set of distinct values returned form the 'extractMethodName'-method on objects only for the given date.

Specified by:
distictValuesForDate in interface IDateSensitiveCache<K,V>
Returns:

distictSetValuesForDate

public <E> Collection<E> distictSetValuesForDate(Date effectiveDate,
                                                 Enum<?> setExtractMethodName)
Description copied from interface: IDateSensitiveCache
Returns the a set of distinct values returned form the 'extractMethodName'-method which it self extracts a collection of objects only for the given date.

Specified by:
distictSetValuesForDate in interface IDateSensitiveCache<K,V>
Returns:


Copyright © 2013. All Rights Reserved.