Class LastModifiedCache

java.lang.Object
org.hibernate.cache.internal.EnabledCaching
org.pentaho.platform.plugin.services.cache.LastModifiedCache
All Implemented Interfaces:
jakarta.persistence.Cache, Serializable, org.hibernate.Cache, org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext, org.hibernate.cache.spi.CacheImplementor, org.hibernate.service.Service, org.pentaho.platform.api.cache.ILastModifiedCacheItem, HvCache

public class LastModifiedCache extends org.hibernate.cache.internal.EnabledCaching implements org.pentaho.platform.api.cache.ILastModifiedCacheItem, HvCache
User: rfellows Date: 10/25/11 Time: 3:53 PM
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.apache.commons.logging.Log
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    LastModifiedCache(org.hibernate.cache.spi.DirectAccessRegion directAccessRegion, org.hibernate.SessionFactory sessionFactory)
     
    LastModifiedCache(org.hibernate.cache.spi.DirectAccessRegion directAccessRegion, org.hibernate.SessionFactory sessionFactory, long lastModified)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    evictEntityData(String entityName)
     
    Return all keys for the region
     
    org.hibernate.cache.spi.DirectAccessRegion
    Return built in cache access
    long
     
    org.hibernate.cache.spi.support.StorageAccess
    Return the object that allows direct storage access
    void
    setLastModified(long lastModified)
     
    <T> T
    unwrap(Class<T> cls)
     

    Methods inherited from class org.hibernate.cache.internal.EnabledCaching

    close, contains, containsCollection, containsEntity, containsEntity, containsQuery, evict, evict, evictCollectionData, evictCollectionData, evictCollectionData, evictDefaultQueryRegion, evictEntityData, evictEntityData, evictEntityData, evictEntityData, evictEntityData, evictNaturalIdData, evictNaturalIdData, evictNaturalIdData, evictQueryRegion, evictQueryRegions, evictRegion, getCacheRegionNames, getCollectionRegionAccess, getDefaultQueryResultsCache, getEnforcedCacheKeysFactory, getEntityRegionAccess, getNaturalIdCacheRegionAccessStrategy, getQueryResultsCache, getQueryResultsCacheStrictly, getRegion, getRegionFactory, getSessionFactory, getTimestampsCache, makeQueryResultsRegion, makeQueryResultsRegionAccess, prime

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface jakarta.persistence.Cache

    contains, evict, evict

    Methods inherited from interface org.hibernate.Cache

    containsCollection, containsEntity, containsEntity, containsQuery, evictAll, evictAllRegions, evictCollectionData, evictCollectionData, evictCollectionData, evictDefaultQueryRegion, evictEntityData, evictEntityData, evictEntityData, evictEntityData, evictNaturalIdData, evictNaturalIdData, evictNaturalIdData, evictQueryRegion, evictQueryRegions, evictRegion

    Methods inherited from interface org.hibernate.cache.spi.CacheImplementor

    evictQueries
  • Field Details

    • LOGGER

      protected static final org.apache.commons.logging.Log LOGGER
  • Constructor Details

    • LastModifiedCache

      public LastModifiedCache(org.hibernate.cache.spi.DirectAccessRegion directAccessRegion, org.hibernate.SessionFactory sessionFactory)
    • LastModifiedCache

      public LastModifiedCache(org.hibernate.cache.spi.DirectAccessRegion directAccessRegion, org.hibernate.SessionFactory sessionFactory, long lastModified)
  • Method Details

    • getLastModified

      public long getLastModified()
      Specified by:
      getLastModified in interface org.pentaho.platform.api.cache.ILastModifiedCacheItem
    • getCacheKey

      public String getCacheKey()
      Specified by:
      getCacheKey in interface org.pentaho.platform.api.cache.ILastModifiedCacheItem
    • setLastModified

      public void setLastModified(long lastModified)
    • unwrap

      public <T> T unwrap(Class<T> cls)
      Specified by:
      unwrap in interface jakarta.persistence.Cache
      Overrides:
      unwrap in class org.hibernate.cache.internal.EnabledCaching
    • getAllKeys

      public Set<Object> getAllKeys()
      Description copied from interface: HvCache
      Return all keys for the region
      Specified by:
      getAllKeys in interface HvCache
      Returns:
    • getDirectAccessRegion

      public org.hibernate.cache.spi.DirectAccessRegion getDirectAccessRegion()
      Description copied from interface: HvCache
      Return built in cache access
      Specified by:
      getDirectAccessRegion in interface HvCache
      Returns:
    • getStorageAccess

      public org.hibernate.cache.spi.support.StorageAccess getStorageAccess()
      Description copied from interface: HvCache
      Return the object that allows direct storage access
      Specified by:
      getStorageAccess in interface HvCache
      Returns:
    • evictEntityData

      public void evictEntityData(String entityName)
      Specified by:
      evictEntityData in interface org.hibernate.Cache
      Overrides:
      evictEntityData in class org.hibernate.cache.internal.EnabledCaching